polyglot.types
Interface ParsedClassType

All Superinterfaces:
ClassType, java.lang.Cloneable, Copy, Declaration, Importable, MemberInstance, Named, ParsedTypeObject, Qualifier, ReferenceType, java.io.Serializable, Type, TypeObject
All Known Subinterfaces:
CofferParsedClassType
All Known Implementing Classes:
CofferParsedClassType_c, PaoParsedClassType_c, ParsedClassType_c

public interface ParsedClassType
extends ClassType, ParsedTypeObject

A ParsedClassType represents a class loaded from a source file. ParsedClassTypes are mutable.


Nested Class Summary
 
Nested classes/interfaces inherited from interface polyglot.types.ClassType
ClassType.Kind
 
Field Summary
 
Fields inherited from interface polyglot.types.ClassType
ANONYMOUS, LOCAL, MEMBER, TOP_LEVEL
 
Method Summary
 void addConstructor(ConstructorInstance ci)
          Add a constructor to the class.
 void addField(FieldInstance fi)
          Add a field to the class.
 void addInterface(Type 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 l)
          Set the class's constructors.
 void setFields(java.util.List l)
          Set the class's fields.
 void setInterfaces(java.util.List l)
          Set the class's interfaces.
 void setJob(Job job)
           
 void setMemberClasses(java.util.List l)
          Set the class's member classes.
 void setMembersAdded(boolean flag)
           
 void setMethods(java.util.List 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()
           
 
Methods inherited from interface polyglot.types.ClassType
constructors, fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, inStaticContext, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, kind, memberClasses, memberClassNamed, outer, resolver
 
Methods inherited from interface polyglot.types.Importable
package_
 
Methods inherited from interface polyglot.types.Named
fullName, name
 
Methods inherited from interface polyglot.types.ReferenceType
fields, hasMethod, hasMethodImpl, interfaces, members, methods, methods, methodsNamed, superType
 
Methods inherited from interface polyglot.types.Type
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
 
Methods inherited from interface polyglot.types.Qualifier
isPackage, isType, toPackage, toType
 
Methods inherited from interface polyglot.types.MemberInstance
container, flags, setContainer, setFlags
 
Methods inherited from interface polyglot.types.Declaration
declaration, setDeclaration
 
Methods inherited from interface polyglot.types.ParsedTypeObject
initializer, job, setInitializer
 

Method Detail

setJob

void setJob(Job job)

position

void position(Position pos)
Position of the type's declaration.


fromSource

Source fromSource()
The Source that this class type was loaded from. Should be null if it was not loaded from a Source during this compilation.


package_

void package_(Package p)
Set the class's package.


superType

void superType(Type t)
Set the class's super type.


addInterface

void addInterface(Type t)
Add an interface to the class.


setInterfaces

void setInterfaces(java.util.List l)
Set the class's interfaces.


addField

void addField(FieldInstance fi)
Add a field to the class.


setFields

void setFields(java.util.List l)
Set the class's fields.


addMethod

void addMethod(MethodInstance mi)
Add a method to the class.


setMethods

void setMethods(java.util.List l)
Set the class's methods.


addConstructor

void addConstructor(ConstructorInstance ci)
Add a constructor to the class.


setConstructors

void setConstructors(java.util.List l)
Set the class's constructors.


addMemberClass

void addMemberClass(ClassType t)
Add a member class to the class.


setMemberClasses

void setMemberClasses(java.util.List l)
Set the class's member classes.


flags

void flags(Flags flags)
Set the flags of the class.


outer

void outer(ClassType t)
Set the class's outer class.


name

void name(java.lang.String name)
Set the name of the class. Throws InternalCompilerError if called on an anonymous class.


kind

void kind(ClassType.Kind kind)
Set the class's kind.


inStaticContext

void inStaticContext(boolean inStaticContext)
Set whether the class was declared in a static context.


defaultConstructorNeeded

boolean defaultConstructorNeeded()

membersAdded

boolean membersAdded()

supertypesResolved

boolean supertypesResolved()

signaturesResolved

boolean signaturesResolved()

numSignaturesUnresolved

int numSignaturesUnresolved()

setMembersAdded

void setMembersAdded(boolean flag)

setSupertypesResolved

void setSupertypesResolved(boolean flag)

setSignaturesResolved

void setSignaturesResolved(boolean flag)

needSerialization

boolean needSerialization()

needSerialization

void needSerialization(boolean b)