-
- All Superinterfaces:
Mirror
- All Known Subinterfaces:
ArrayType,BooleanType,ByteType,CharType,ClassType,DoubleType,FloatType,IntegerType,InterfaceType,LongType,PrimitiveType,ReferenceType,ShortType,VoidType
public interface Type extends Mirror
The mirror for a type in the target VM. This interface is the root of a type hierarchy encompassing primitive types and reference types.A Type may be used to represent a run-time type:
or a compile-time type:Value.type()Field.type()
Method.returnType()
Method.argumentTypes()
LocalVariable.type()
ArrayType.componentType()The following tables illustrate which subinterfaces of Type are used to mirror types in the target VM --
Subinterfaces of PrimitiveTypeType declared in target as Is mirrored as an instance of booleanBooleanTypebyteByteTypecharCharTypedoubleDoubleTypefloatFloatTypeintIntegerTypelongLongTypeshortShortTypevoidVoidTypeSubinterfaces of ReferenceTypeType declared in target as For example Is mirrored as an instance of a class DateClassTypean interface RunnableInterfaceTypean array (any) ArrayTypeint[]ArrayTypewhosecomponentType()isIntegerTypeDate[]ArrayTypewhosecomponentType()isClassTypeRunnable[]ArrayTypewhosecomponentType()isInterfaceType
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringname()Stringsignature()Returns the JNI-style signature for this type.-
Methods declared in interface com.sun.jdi.Mirror
toString, virtualMachine
-
-
-
-
Method Detail
-
signature
String signature()
Returns the JNI-style signature for this type.For primitive classes the returned signature is the signature of the corresponding primitive type; for example, "I" is returned as the signature of the class represented by
Integer.TYPE.- Returns:
- the string containing the type signature.
- See Also:
- Type Signatures
-
name
String name()
- Returns:
- a text representation of this type.
-
-