Package org.jboss.jdeparser
Class ArrayJType
java.lang.Object
org.jboss.jdeparser.AbstractJType
org.jboss.jdeparser.ArrayJType
- All Implemented Interfaces:
JType
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_class()
An expression of the formThisType.class
.Construct a new instance of this array type.Create a new array of this type which is inline-initialized.The element type, if this an array (otherwisenull
).(package private) boolean
equals
(AbstractJType other) int
hashCode()
(package private) String
Get the simple name of this type.toString()
(package private) void
writeDirect
(SourceFileWriter sourceFileWriter)
-
Field Details
-
elementType
-
classExpr
-
-
Constructor Details
-
ArrayJType
ArrayJType(AbstractJType elementType)
-
-
Method Details
-
elementType
Description copied from interface:JType
The element type, if this an array (otherwisenull
).- Specified by:
elementType
in interfaceJType
- Overrides:
elementType
in classAbstractJType
- Returns:
- the element type, or
null
if it is not an array
-
writeDirect
- Specified by:
writeDirect
in classAbstractJType
- Throws:
IOException
-
qualifiedName
String qualifiedName()- Overrides:
qualifiedName
in classAbstractJType
-
hashCode
public int hashCode()- Specified by:
hashCode
in classAbstractJType
-
equals
- Specified by:
equals
in classAbstractJType
-
_new
Description copied from interface:JType
Construct a new instance of this array type. If the type is not an array type, an exception is thrown.- Specified by:
_new
in interfaceJType
- Overrides:
_new
in classAbstractJType
- Parameters:
dim
- the array size- Returns:
- the construction call
-
_newArray
Description copied from interface:JType
Create a new array of this type which is inline-initialized.- Specified by:
_newArray
in interfaceJType
- Overrides:
_newArray
in classAbstractJType
- Returns:
- the array, initially with zero elements
-
simpleName
Description copied from interface:JType
Get the simple name of this type.- Specified by:
simpleName
in interfaceJType
- Specified by:
simpleName
in classAbstractJType
- Returns:
- the type's simple name
-
toString
- Specified by:
toString
in classAbstractJType
-
_class
Description copied from interface:JType
An expression of the formThisType.class
.- Specified by:
_class
in interfaceJType
- Overrides:
_class
in classAbstractJType
- Returns:
- the expression
-