Package jminusminus
Class TypeName
java.lang.Object
jminusminus.Type
jminusminus.TypeName
A representation of any reference type that can be denoted as a (possibly qualified) identifier.
- 
Field SummaryFields inherited from class jminusminus.TypeANY, BOOLEAN, BOXED_BOOLEAN, BOXED_CHAR, BOXED_DOUBLE, BOXED_INT, BOXED_LONG, CHAR, CONSTRUCTOR, DOUBLE, INT, LONG, NULLTYPE, OBJECT, STRING, VOID
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionjvmName()Returns the JVM representation of this type's name.intline()Returns the line in which the identifier occurs in the source file.Resolves this type in the given context and returns the resolved type.Returns the simple (unqualified) name of this type.Returns the JVM descriptor of this type.toString()Returns a string representation of this type.Methods inherited from class jminusminus.TypeabstractMethods, 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
- 
Constructor Details- 
TypeNameConstructs a TypeName.- Parameters:
- line- the line in which the identifier occurs in the source file.
- name- fully qualified name for the identifier.
 
 
- 
- 
Method Details- 
linepublic int line()Returns the line in which the identifier occurs in the source file.- Returns:
- the line in which the identifier occurs in the source file.
 
- 
jvmNameReturns the JVM representation of this type's name.
- 
toDescriptorReturns the JVM descriptor of this type.- Overrides:
- toDescriptorin class- Type
- Returns:
- the JVM descriptor of this type.
 
- 
toStringReturns a string representation of this type.
- 
simpleNameReturns the simple (unqualified) name of this type.- Overrides:
- simpleNamein class- Type
- Returns:
- the simple (unqualified) name of this type.
 
- 
resolveResolves this type in the given context and returns the resolved type.
 
-