Package org.plumelib.reflection
Class Signatures.ClassnameAndDimensions
java.lang.Object
org.plumelib.reflection.Signatures.ClassnameAndDimensions
- Enclosing class:
- Signatures
A representation of an array: A pair of class name (a binary name or primitive) and the number
of array dimensions.
-
Field Summary
Modifier and TypeFieldDescriptionfinal @BinaryNameOrPrimitiveType String
The class name.final int
The number of array dimensions. -
Constructor Summary
ConstructorDescriptionClassnameAndDimensions
(@BinaryNameOrPrimitiveType String classname, int dimensions) Create a new ClassnameAndDimensions. -
Method Summary
Modifier and TypeMethodDescriptionparseFqBinaryName
(@FqBinaryName String typename) Constructs a new ClassnameAndDimensions by parsing a fully-qualified binary name.
-
Field Details
-
classname
The class name. It is a binary name or a primitive. -
dimensions
public final int dimensionsThe number of array dimensions.
-
-
Constructor Details
-
ClassnameAndDimensions
Create a new ClassnameAndDimensions.- Parameters:
classname
- the class name: a binary name or a primitivedimensions
- the number of array dimensions
-
-
Method Details
-
parseFqBinaryName
Constructs a new ClassnameAndDimensions by parsing a fully-qualified binary name.- Parameters:
typename
- the type name to parse, as a fully-qualified binary name (= fully-qualified name, but with $ separating outer from inner types)- Returns:
- the result of parsing the type name
-