Package org.openjdk.jmc.common
Interface IMCType
-
- All Known Implementing Classes:
MCType
public interface IMCType
Represents 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 String
getFullName()
Java type name according to The Java Language Specification, Section 13.1.IMCPackage
getPackage()
Returns the package this type was declared in.String
getTypeName()
Returns the name of the type, without the package.default Boolean
isHidden()
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:
true
if hidden,false
if not
-
-