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) booleanequals(AbstractJType other) inthashCode()(package private) StringGet the simple name of this type.toString()(package private) voidwriteDirect(SourceFileWriter sourceFileWriter)
-
Field Details
-
elementType
-
classExpr
-
-
Constructor Details
-
ArrayJType
ArrayJType(AbstractJType elementType)
-
-
Method Details
-
elementType
Description copied from interface:JTypeThe element type, if this an array (otherwisenull).- Specified by:
elementTypein interfaceJType- Overrides:
elementTypein classAbstractJType- Returns:
- the element type, or
nullif it is not an array
-
writeDirect
- Specified by:
writeDirectin classAbstractJType- Throws:
IOException
-
qualifiedName
String qualifiedName()- Overrides:
qualifiedNamein classAbstractJType
-
hashCode
public int hashCode()- Specified by:
hashCodein classAbstractJType
-
equals
- Specified by:
equalsin classAbstractJType
-
_new
Description copied from interface:JTypeConstruct a new instance of this array type. If the type is not an array type, an exception is thrown.- Specified by:
_newin interfaceJType- Overrides:
_newin classAbstractJType- Parameters:
dim- the array size- Returns:
- the construction call
-
_newArray
Description copied from interface:JTypeCreate a new array of this type which is inline-initialized.- Specified by:
_newArrayin interfaceJType- Overrides:
_newArrayin classAbstractJType- Returns:
- the array, initially with zero elements
-
simpleName
Description copied from interface:JTypeGet the simple name of this type.- Specified by:
simpleNamein interfaceJType- Specified by:
simpleNamein classAbstractJType- Returns:
- the type's simple name
-
toString
- Specified by:
toStringin classAbstractJType
-
_class
-