public class JInterfaceType extends JDeclaredType
HasName.Util
artificialRescues, fields, methods
Constructor and Description |
---|
JInterfaceType(SourceInfo info,
String name) |
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() |
boolean |
isFinal() |
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 JInterfaceType(SourceInfo info, String name)
public String getClassLiteralFactoryMethod()
getClassLiteralFactoryMethod
in class JType
public JClassType getSuperClass()
JDeclaredType
null
if this type is
Object
or an interface.getSuperClass
in class JDeclaredType
public boolean isAbstract()
public boolean isFinal()
public void traverse(JVisitor visitor, Context ctx)
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.