| Modifier and Type | Field and Description |
|---|---|
| private int | arrayDims
If we are an array type this will be non zero and indicate the dimensionality of the array. |
| private Class | baseType
baseType is used during evaluation of full type and retained for the case where we are an array type. |
| pack-priv String | |
| private Class | type
Internal cache of the type. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public int | getArrayDims()
If we are an array type this will be non zero and indicate the dimensionality of the array. |
| public Class | getBaseType()
baseType is used during evaluation of full type and retained for the case where we are an array type. |
| public Class | |
| public String | getTypeDescriptor(CallStack callstack, Interpreter interpreter, String defaultPackage)
Returns a class descriptor for this type. |
| public static String | |
| pack-priv SimpleNode |
| arrayDims | back to summary |
|---|---|
| private int arrayDims If we are an array type this will be non zero and indicate the dimensionality of the array. e.g. 2 for String[][]; | |
| baseType | back to summary |
|---|---|
| private Class<T> baseType baseType is used during evaluation of full type and retained for the case where we are an array type. In the case where we are not an array this will be the same as type. | |
| descriptor | back to summary |
|---|---|
| pack-priv String descriptor | |
| type | back to summary |
|---|---|
| private Class<T> type Internal cache of the type. Cleared on classloader change. | |
| BSHType | back to summary |
|---|---|
| pack-priv BSHType(int id) | |
| addArrayDimension | back to summary |
|---|---|
| public void addArrayDimension() Used by the grammar to indicate dimensions of array types during parsing. | |
| classLoaderChanged | back to summary |
|---|---|
| public void classLoaderChanged() Implements bsh. | |
| getArrayDims | back to summary |
|---|---|
| public int getArrayDims() If we are an array type this will be non zero and indicate the dimensionality of the array. e.g. 2 for String[][]; | |
| getBaseType | back to summary |
|---|---|
| public Class baseType is used during evaluation of full type and retained for the case where we are an array type. In the case where we are not an array this will be the same as type. | |
| getType | back to summary |
|---|---|
| public Class | |
| getTypeDescriptor | back to summary |
|---|---|
| public String getTypeDescriptor(CallStack callstack, Interpreter interpreter, String defaultPackage) Returns a class descriptor for this type. If the type is an ambiguous name (object type) evaluation is attempted through the namespace in order to resolve imports. If it is not found and the name is non-compound we assume the default package for the name. | |
| getTypeDescriptor | back to summary |
|---|---|
| public static String getTypeDescriptor(Class<T> clas) | |
| getTypeNode | back to summary |
|---|---|
| pack-priv SimpleNode getTypeNode() | |