public interface ParsedClassType extends ClassType, ParsedTypeObject
ParsedClassType
represents a class loaded from a source file.
ParsedClassType
s are mutable.ClassType.Kind
Modifier and Type | Method and Description |
---|---|
void |
addConstructor(ConstructorInstance ci)
Add a constructor to the class.
|
void |
addField(FieldInstance fi)
Add a field to the class.
|
void |
addInterface(ReferenceType t)
Add an interface to the class.
|
void |
addMemberClass(ClassType t)
Add a member class to the class.
|
void |
addMethod(MethodInstance mi)
Add a method to the class.
|
boolean |
defaultConstructorNeeded() |
void |
flags(Flags flags)
Set the flags of the class.
|
Source |
fromSource()
The
Source that this class type
was loaded from. |
void |
inStaticContext(boolean inStaticContext)
Set whether the class was declared in a static context.
|
void |
kind(ClassType.Kind kind)
Set the class's kind.
|
boolean |
membersAdded() |
void |
name(java.lang.String name)
Set the name of the class.
|
boolean |
needSerialization() |
void |
needSerialization(boolean b) |
int |
numSignaturesUnresolved() |
void |
outer(ClassType t)
Set the class's outer class.
|
void |
package_(Package p)
Set the class's package.
|
void |
position(Position pos)
Position of the type's declaration.
|
void |
setConstructors(java.util.List<? extends ConstructorInstance> l)
Set the class's constructors.
|
void |
setFields(java.util.List<? extends FieldInstance> l)
Set the class's fields.
|
void |
setInterfaces(java.util.List<? extends ReferenceType> l)
Set the class's interfaces.
|
void |
setJob(Job job) |
void |
setMemberClasses(java.util.List<? extends ClassType> l)
Set the class's member classes.
|
void |
setMembersAdded(boolean flag) |
void |
setMethods(java.util.List<? extends MethodInstance> l)
Set the class's methods.
|
void |
setSignaturesResolved(boolean flag) |
void |
setSupertypesResolved(boolean flag) |
boolean |
signaturesResolved() |
void |
superType(Type t)
Set the class's super type.
|
boolean |
supertypesResolved() |
constructors, fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, inStaticContext, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, kind, memberClasses, memberClassNamed, outer, resolver
package_
fields, hasMethod, hasMethodImpl, interfaces, members, methods, methods, methodsNamed, superType
arrayOf, arrayOf, descendsFrom, descendsFromImpl, isArray, isBoolean, isByte, isCastValid, isCastValidImpl, isChar, isClass, isComparable, isDouble, isFloat, isImplicitCastValid, isImplicitCastValidImpl, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPrimitive, isReference, isShort, isSubtype, isSubtypeImpl, isThrowable, isUncheckedException, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, print, toArray, toClass, toNull, toPrimitive, toReference, toString, translate, typeEquals, typeEqualsImpl
equalsImpl, isCanonical, position, typeSystem
container, flags, setContainer, setFlags
declaration, setDeclaration
initializer, job, setInitializer
void setJob(Job job)
void position(Position pos)
Source fromSource()
Source
that this class type
was loaded from. Should be null
if it was not loaded from
a Source
during this compilation.void package_(Package p)
void superType(Type t)
void addInterface(ReferenceType t)
void setInterfaces(java.util.List<? extends ReferenceType> l)
void addField(FieldInstance fi)
void setFields(java.util.List<? extends FieldInstance> l)
void addMethod(MethodInstance mi)
void setMethods(java.util.List<? extends MethodInstance> l)
void addConstructor(ConstructorInstance ci)
void setConstructors(java.util.List<? extends ConstructorInstance> l)
void addMemberClass(ClassType t)
void setMemberClasses(java.util.List<? extends ClassType> l)
void flags(Flags flags)
void outer(ClassType t)
void name(java.lang.String name)
InternalCompilerError
if called on an anonymous class.void kind(ClassType.Kind kind)
void inStaticContext(boolean inStaticContext)
boolean defaultConstructorNeeded()
boolean membersAdded()
boolean supertypesResolved()
boolean signaturesResolved()
int numSignaturesUnresolved()
void setMembersAdded(boolean flag)
void setSupertypesResolved(boolean flag)
void setSignaturesResolved(boolean flag)
boolean needSerialization()
void needSerialization(boolean b)