Package jminusminus
Class ArrayTypeName
java.lang.Object
jminusminus.Type
jminusminus.ArrayTypeName
A representation of an array type. It is built by the Parser to stand in for a Type until the
analyze() phase, at which point it is resolved to an actual Type object (having a Class that
identifies it).
-
Field Summary
Fields inherited from class jminusminus.Type
ANY, BOOLEAN, BOXED_BOOLEAN, BOXED_CHAR, BOXED_DOUBLE, BOXED_INT, BOXED_LONG, CHAR, CONSTRUCTOR, DOUBLE, INT, LONG, NULLTYPE, OBJECT, STRING, VOID
-
Constructor Summary
ConstructorDescriptionArrayTypeName
(Type componentType) Constructs an ArrayTypeName given its component type. -
Method Summary
Modifier and TypeMethodDescriptionReturns an array type's component type.Resolves this type in the given context and returns the resolved type.Returns the JVM descriptor of this type.toString()
Returns a string representation of this type.Methods inherited from class jminusminus.Type
abstractMethods, argTypesAsString, argTypesMatch, argumentTypeForAppend, checkAccess, checkAccess, checkAccess, classRep, constructorFor, equals, fieldFor, isAbstract, isArray, isFinal, isInterface, isJavaAssignableFrom, isPrimitive, isReference, jvmName, matchesExpected, methodFor, mustMatchExpected, mustMatchOneOf, packageName, setClassRep, signatureFor, simpleName, superClass, typeFor
-
Constructor Details
-
ArrayTypeName
Constructs an ArrayTypeName given its component type.- Parameters:
componentType
- the type of the array's elements.
-
-
Method Details
-
componentType
Returns an array type's component type.- Overrides:
componentType
in classType
- Returns:
- an array type's component type.
-
toDescriptor
Returns the JVM descriptor of this type.- Overrides:
toDescriptor
in classType
- Returns:
- the JVM descriptor of this type.
-
toString
Returns a string representation of this type. -
resolve
Resolves this type in the given context and returns the resolved type.
-