public abstract class JReferenceType extends JType implements CanBeAbstract
HasName.Util
Constructor and Description |
---|
JReferenceType(SourceInfo info,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeNull()
Returns
true if it's possible for this type to be
null . |
JLiteral |
getDefaultValue() |
String |
getJavahSignatureName() |
String |
getJsniSignatureName() |
JNonNullType |
getNonNull() |
String |
getShortName() |
JReferenceType |
getUnderlyingType()
If this type is a non-null type, returns the underlying (original) type.
|
boolean |
replaces(JType originalType)
Checks type replacement from an external type to a resolved canonical type.
|
getClassLiteralFactoryMethod, getName, isExternal
getSourceInfo, setSourceInfo, toSource, toString
isAbstract
isFinal
traverse
public JReferenceType(SourceInfo info, String name)
public boolean canBeNull()
true
if it's possible for this type to be
null
.JNonNullType
public final JLiteral getDefaultValue()
getDefaultValue
in class JType
public String getJavahSignatureName()
getJavahSignatureName
in class JType
public String getJsniSignatureName()
getJsniSignatureName
in class JType
public JNonNullType getNonNull()
public String getShortName()
public JReferenceType getUnderlyingType()
Copyright © 2018. All rights reserved.