class TypeName extends Type
ANY, BOOLEAN, BOXED_BOOLEAN, BOXED_CHAR, BOXED_INT, CHAR, CONSTRUCTOR, INT, NULLTYPE, OBJECT, STRING, VOID
Constructor and Description |
---|
TypeName(int line,
String name)
Construct an TypeName given its line number, and string spelling out its
fully qualified name.
|
Modifier and Type | Method and Description |
---|---|
String |
jvmName()
Return the JVM name for this (identifier) type.
|
int |
line()
Return the line in which the identifier occurs in the source file.
|
Type |
resolve(Context context)
Resolve this type in the given context.
|
String |
simpleName()
Return the simple name for this type.
|
String |
toDescriptor()
Return the JVM descriptor for this type.
|
String |
toString()
Return the Java representation of this type.
|
abstractMethods, argTypesAsString, argTypesMatch, argumentTypeForAppend, checkAccess, checkAccess, checkAccess, classRep, componentType, constructorFor, equals, fieldFor, isAbstract, isArray, isFinal, isInterface, isJavaAssignableFrom, isPrimitive, isReference, matchesExpected, methodFor, mustMatchExpected, mustMatchOneOf, packageName, setClassRep, signatureFor, superClass, typeFor
public TypeName(int line, String name)
line
- the line in which the identifier occurs in the source file.name
- fully qualified name for the identifier.public int line()
public String jvmName()
public String toDescriptor()
toDescriptor
in class Type
public String toString()
public String simpleName()
simpleName
in class Type