class ArrayJType extends AbstractJType
| Modifier and Type | Field and Description |
|---|---|
private StaticRefJExpr |
classExpr |
private AbstractJType |
elementType |
| Constructor and Description |
|---|
ArrayJType(AbstractJType elementType) |
| Modifier and Type | Method and Description |
|---|---|
JExpr |
_class()
An expression of the form
ThisType.class. |
JExpr |
_new(JExpr dim)
Construct a new instance of this array type.
|
JArrayExpr |
_newArray()
Create a new array of this type which is inline-initialized.
|
JType |
elementType()
The element type, if this an array (otherwise
null). |
(package private) java.lang.String |
qualifiedName(SourceFileWriter writer) |
java.lang.String |
simpleName()
Get the simple name of this type.
|
java.lang.String |
toString() |
(package private) void |
writeDirect(SourceFileWriter sourceFileWriter) |
private final AbstractJType elementType
private StaticRefJExpr classExpr
ArrayJType(AbstractJType elementType)
public JType elementType()
JTypenull).elementType in interface JTypeelementType in class AbstractJTypenull if it is not an arrayvoid writeDirect(SourceFileWriter sourceFileWriter) throws java.io.IOException
writeDirect in class AbstractJTypejava.io.IOExceptionjava.lang.String qualifiedName(SourceFileWriter writer)
qualifiedName in class AbstractJTypepublic JExpr _new(JExpr dim)
JType_new in interface JType_new in class AbstractJTypedim - the array sizepublic JArrayExpr _newArray()
JType_newArray in interface JType_newArray in class AbstractJTypepublic java.lang.String simpleName()
JTypesimpleName in interface JTypesimpleName in class AbstractJTypepublic java.lang.String toString()
toString in class AbstractJType