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
Since:
1.3
See Also:
Subinterface PrimitiveType
,
Subinterface ReferenceType
,
Value - for relationship between Type and Value
,
Field.type() - for usage examples
Method Summary
All Methods Instance Methods Abstract Methods
Returns the name of this type.
Returns the type signature for this type.
Method Details
signature
Returns the type signature for this type. The result is of the same
form as the string returned by
Class.descriptorString()
.
The returned string is a type descriptor conforming to JVMS
4.3.2
if this type can be described nominally. Otherwise, the returned string
is not a type descriptor.
Returns:
the type signature
name
Returns the name of this type. The result is of the same form as
the name returned by
Class.getName()
.
The returned name may not be a
binary name .
Returns:
the name of this type
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .