Package org.openjdk.jmc.common
Interface IMCType
-
- All Known Implementing Classes:
MCType
public interface IMCTypeRepresents a Java type. This can be a class (including arrays and enumerations), an interface, or a primitive type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description StringgetFullName()Java type name according to The Java Language Specification, Section 13.1.IMCPackagegetPackage()Returns the package this type was declared in.StringgetTypeName()Returns the name of the type, without the package.default BooleanisHidden()Returns whether or not the type is hidden.
-
-
-
Method Detail
-
getTypeName
String getTypeName()
Returns the name of the type, without the package.Examples are "String" and "Tread$TreadState".
- Returns:
- the type name
-
getPackage
IMCPackage getPackage()
Returns the package this type was declared in.- Returns:
- declaring package
-
getFullName
String getFullName()
Java type name according to The Java Language Specification, Section 13.1.An example is "java.lang.String".
- Returns:
- the fully qualified name (both package and type name)
-
isHidden
default Boolean isHidden()
Returns whether or not the type is hidden.- Returns:
trueif hidden,falseif not
-
-