public abstract class JReferenceType extends JType implements CanBeAbstract
HasName.Util
Modifier and Type | Field and Description |
---|---|
static JReferenceType |
NULL_TYPE |
BY_NAME_COMPARATOR
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 . |
boolean |
canBeSubclass()
Returns
true if it's possible for this type to be
a subclass of the type denoted with this type. |
JLiteral |
getDefaultValue() |
String |
getJavahSignatureName() |
String |
getJsniSignatureName() |
JReferenceType |
getUnderlyingType()
If this type is a non-null type, returns the underlying (original) type.
|
boolean |
isPrimitiveType() |
boolean |
replaces(JType originalType)
Checks type replacement from an external type to a resolved canonical type.
|
JReferenceType |
strengthenToExact() |
JReferenceType |
strengthenToNonNull()
Returns a non nullable version of this type if possible.
|
JReferenceType |
weakenToNonExact() |
JReferenceType |
weakenToNullable() |
canBeImplementedExternally, canBeReferencedExternally, getCompoundName, getDescription, getName, getPackageName, getShortName, isArrayType, isEnumOrSubclass, isExternal, isJavaLangObject, isJsFunction, isJsFunctionImplementation, isJsNative, isJsoType, isJsType, isNullType
getSourceInfo, setSourceInfo, toSource, toString, traverse
isAbstract
isFinal
public static final JReferenceType NULL_TYPE
public JReferenceType(SourceInfo info, String name)
public final boolean canBeNull()
JType
true
if it's possible for this type to be
null
.public final boolean canBeSubclass()
JType
true
if it's possible for this type to be
a subclass of the type denoted with this type.canBeSubclass
in class JType
JAnalysisDecoratedType
public final JLiteral getDefaultValue()
getDefaultValue
in class JType
public String getJavahSignatureName()
getJavahSignatureName
in class JType
public String getJsniSignatureName()
getJsniSignatureName
in class JType
public boolean isPrimitiveType()
isPrimitiveType
in class JType
public JReferenceType weakenToNullable()
public JReferenceType weakenToNonExact()
public JReferenceType strengthenToNonNull()
JType
strengthenToNonNull
in class JType
JAnalysisDecoratedType
public JReferenceType strengthenToExact()
public JReferenceType getUnderlyingType()
getUnderlyingType
in class JType
Copyright © 2018. All rights reserved.