public class JNonNullType extends JReferenceType
null
.HasName.Util
BY_NAME_COMPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
canBeNull()
Returns
true if it's possible for this type to be
null . |
String |
getJavahSignatureName() |
String |
getJsniSignatureName() |
JNonNullType |
getNonNull() |
JReferenceType |
getUnderlyingType()
If this type is a non-null type, returns the underlying (original) type.
|
boolean |
isAbstract() |
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() |
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
getDefaultValue, replaces
getCompoundName, getName, getPackageName, getShortName
getSourceInfo, setSourceInfo, toSource, toString
public boolean canBeNull()
JReferenceType
true
if it's possible for this type to be
null
.canBeNull
in class JReferenceType
JNonNullType
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 JNonNullType getNonNull()
getNonNull
in class JReferenceType
public JReferenceType getUnderlyingType()
JReferenceType
getUnderlyingType
in class JReferenceType
public boolean isAbstract()
public boolean isExternal()
JType
isExternal
in class JType
public boolean isFinal()
public void traverse(JVisitor visitor, Context ctx)
JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2016. All rights reserved.