public class JArrayType extends JReferenceType
HasName.Util
NULL_TYPE
BY_NAME_COMPARATOR
Constructor and Description |
---|
JArrayType(JType elementType) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeImplementedExternally() |
boolean |
canBeReferencedExternally() |
int |
getDims() |
JType |
getElementType() |
String |
getJavahSignatureName() |
String |
getJsniSignatureName() |
JType |
getLeafType() |
boolean |
isAbstract() |
boolean |
isArrayType() |
JEnumType |
isEnumOrSubclass()
Returns the (closest) enum supertype if the type is a subclass of an enum; it returns
this if this is a JEnumType and null otherwise. |
boolean |
isExternal()
True if this class is provided externally to the program by the program's
host execution environment.
|
boolean |
isFinal() |
boolean |
isJavaLangObject() |
boolean |
isJsFunction() |
boolean |
isJsFunctionImplementation() |
boolean |
isJsNative() |
boolean |
isJsoType()
Returns
true if this is a JavaScriptObject type. |
boolean |
isJsType() |
boolean |
isPrimitiveType() |
boolean |
replaces(JType originalType)
Checks type replacement from an external type to a resolved canonical type.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
canBeNull, canBeSubclass, getDefaultValue, getUnderlyingType, strengthenToExact, strengthenToNonNull, weakenToNonExact, weakenToNullable
getCompoundName, getDescription, getName, getPackageName, getShortName, isNullType
getSourceInfo, setSourceInfo, toSource, toString
public JArrayType(JType elementType)
public int getDims()
public JType getElementType()
public String getJavahSignatureName()
getJavahSignatureName
in class JReferenceType
public String getJsniSignatureName()
getJsniSignatureName
in class JReferenceType
public JEnumType isEnumOrSubclass()
JType
this
if this
is a JEnumType
and null
otherwise.isEnumOrSubclass
in class JType
public JType getLeafType()
public boolean isArrayType()
isArrayType
in class JType
public boolean isPrimitiveType()
isPrimitiveType
in class JReferenceType
public boolean isAbstract()
public boolean isExternal()
JType
isExternal
in class JType
public boolean isFinal()
public boolean canBeImplementedExternally()
canBeImplementedExternally
in class JType
public boolean isJsFunction()
isJsFunction
in class JType
public boolean isJsFunctionImplementation()
isJsFunctionImplementation
in class JType
public boolean isJsNative()
isJsNative
in class JType
public boolean isJsoType()
JType
true
if this is a JavaScriptObject type.public boolean canBeReferencedExternally()
canBeReferencedExternally
in class JType
public boolean isJavaLangObject()
isJavaLangObject
in class JType
public boolean replaces(JType originalType)
JType
replaces
in class JReferenceType
Copyright © 2018. All rights reserved.