public class JClassType extends JDeclaredType implements CanBeSetFinal
HasName.Util
artificialRescues, fields, methods
Constructor and Description |
---|
JClassType(SourceInfo info,
String name,
boolean isAbstract,
boolean isFinal) |
Modifier and Type | Method and Description |
---|---|
String |
getClassLiteralFactoryMethod() |
JClassType |
getSuperClass()
Returns this type's super class, or
null if this type is
Object or an interface. |
boolean |
isAbstract() |
JEnumType |
isEnumOrSubclass() |
boolean |
isFinal() |
void |
setFinal() |
void |
setSuperClass(JClassType superClass)
Sets this type's super class.
|
void |
traverse(JVisitor visitor,
Context ctx)
Causes this object to have the visitor visit itself and its children.
|
protected Object |
writeReplace()
Subclasses must replace themselves with a shallow reference when
JDeclaredType.isExternal() is true . |
addArtificialRescue, addField, addImplements, addMethod, checkClinitTo, findSubtype, getArtificialRescues, getClinitMethod, getClinitTarget, getEnclosingType, getFields, getImplements, getInitMethod, getJavahSignatureName, getJsniSignatureName, getMethods, getShortName, hasClinit, isExternal, removeField, removeMethod, resetClinitTarget, resolve, setEnclosingType, setExternal, sortFields, sortMethods
canBeNull, getDefaultValue, getNonNull, getUnderlyingType, replaces
getSourceInfo, setSourceInfo, toSource, toString
public JClassType(SourceInfo info, String name, boolean isAbstract, boolean isFinal)
public String getClassLiteralFactoryMethod()
getClassLiteralFactoryMethod
in class JType
public final JClassType getSuperClass()
JDeclaredType
null
if this type is
Object
or an interface.getSuperClass
in class JDeclaredType
public boolean isAbstract()
isAbstract
in interface CanBeAbstract
public JEnumType isEnumOrSubclass()
public boolean isFinal()
isFinal
in interface CanBeFinal
public void setFinal()
setFinal
in interface CanBeSetFinal
public final void setSuperClass(JClassType superClass)
public void traverse(JVisitor visitor, Context ctx)
JVisitable
traverse
in interface JVisitable
visitor
- the visitor that should traverse this nodectx
- the context of an existing traversalprotected Object writeReplace()
JDeclaredType
JDeclaredType.isExternal()
is true
.writeReplace
in class JDeclaredType
Copyright © 2018. All rights reserved.