|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpolyglot.ext.jl.types.TypeObject_c
polyglot.ext.jl.types.Type_c
polyglot.ext.jl.types.ReferenceType_c
polyglot.ext.jl.types.ClassType_c
polyglot.ext.jl.types.ParsedClassType_c
ParsedClassType Overview: A ParsedClassType represents a information that has been parsed (but not necessarily type checked) from a .java file.
| Nested Class Summary |
| Nested classes inherited from class polyglot.types.ClassType |
ClassType.Kind |
| Field Summary | |
protected java.util.List |
constructors
|
protected java.util.List |
fields
|
protected Flags |
flags
|
protected Source |
fromSource
|
protected LazyClassInitializer |
init
|
protected boolean |
inStaticContext
Was the class declared in a static context? |
protected java.util.List |
interfaces
|
protected ClassType.Kind |
kind
|
protected java.util.List |
memberClasses
|
protected java.util.List |
methods
|
protected java.lang.String |
name
|
protected ClassType |
outer
|
protected Package |
package_
|
protected Type |
superType
|
| Fields inherited from class polyglot.ext.jl.types.TypeObject_c |
position, ts |
| Fields inherited from interface polyglot.types.ClassType |
ANONYMOUS, LOCAL, MEMBER, TOP_LEVEL |
| Constructor Summary | |
protected |
ParsedClassType_c()
|
|
ParsedClassType_c(TypeSystem ts,
LazyClassInitializer init,
Source fromSource)
|
| 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. |
java.util.List |
constructors()
Return a mutable list of constructors |
java.util.List |
fields()
Return a mutable list of fields |
Flags |
flags()
Get the class's flags. |
void |
flags(Flags flags)
Set the flags of the class. |
protected void |
freeInit()
Free the initializer object if we no longer need it. |
Source |
fromSource()
The Source that this class type
was loaded from. |
protected boolean |
initialized()
Return true if we no longer need the initializer object. |
boolean |
inStaticContext()
Return true if the class declaration occurs in a static context. |
void |
inStaticContext(boolean inStaticContext)
Set whether the class was declared in a static context. |
java.util.List |
interfaces()
Return a mutable list of interfaces |
ClassType.Kind |
kind()
Get the class's kind. |
void |
kind(ClassType.Kind kind)
Set the class's kind. |
java.util.List |
memberClasses()
Return a mutable list of member classes |
java.util.List |
methods()
Return a mutable list of methods |
java.lang.String |
name()
Simple name of the type object. |
void |
name(java.lang.String name)
Set the name of the class. |
ClassType |
outer()
The class's outer class if this is a nested class, or null. |
void |
outer(ClassType outer)
Set the class's outer class. |
Package |
package_()
Get the class's package. |
void |
package_(Package p)
Set the class's package. |
void |
position(Position pos)
Position of the type's declaration. |
Type |
superType()
Get the class's super type. |
void |
superType(Type t)
Set the class's super type. |
| Methods inherited from class polyglot.ext.jl.types.ClassType_c |
container, descendsFromImpl, fieldNamed, fullName, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isCanonical, isCastValidImpl, isClass, isEnclosed, isEnclosedImpl, isImplicitCastValidImpl, isInner, isInnerClass, isLocal, isMember, isNested, isThrowable, isTopLevel, isUncheckedException, memberClassNamed, toClass, toString, translate |
| Methods inherited from class polyglot.ext.jl.types.ReferenceType_c |
hasMethod, hasMethodImpl, isReference, methods, methodsNamed, toReference |
| Methods inherited from class polyglot.ext.jl.types.Type_c |
arrayOf, arrayOf, descendsFrom, isArray, isBoolean, isByte, isCastValid, isChar, isComparable, isDouble, isFloat, isImplicitCastValid, isInt, isIntOrLess, isLong, isLongOrLess, isNull, isNumeric, isPackage, isPrimitive, isShort, isSubtype, isSubtypeImpl, isType, isVoid, numericConversionValid, numericConversionValid, numericConversionValidImpl, numericConversionValidImpl, toArray, toNull, toPackage, toPrimitive, toType |
| Methods inherited from class polyglot.ext.jl.types.TypeObject_c |
copy, equals, equalsImpl, position, typeSystem |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.types.ClassType |
fieldNamed, hasEnclosingInstance, hasEnclosingInstanceImpl, isAnonymous, isEnclosed, isEnclosedImpl, isInner, isInnerClass, isLocal, isMember, isNested, isTopLevel, memberClassNamed |
| Methods inherited from interface polyglot.types.Named |
fullName |
| Methods inherited from interface polyglot.types.TypeObject |
equalsImpl, isCanonical, position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
copy |
| Methods inherited from interface polyglot.types.ReferenceType |
hasMethod, hasMethodImpl, methods, methodsNamed |
| 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, toArray, toClass, toNull, toPrimitive, toReference, toString, translate |
| Methods inherited from interface polyglot.types.Qualifier |
isPackage, isType, toPackage, toType |
| Methods inherited from interface polyglot.types.MemberInstance |
container |
| Field Detail |
protected transient LazyClassInitializer init
protected transient Source fromSource
protected Type superType
protected java.util.List interfaces
protected java.util.List methods
protected java.util.List fields
protected java.util.List constructors
protected java.util.List memberClasses
protected Package package_
protected Flags flags
protected ClassType.Kind kind
protected java.lang.String name
protected ClassType outer
protected boolean inStaticContext
| Constructor Detail |
protected ParsedClassType_c()
public ParsedClassType_c(TypeSystem ts,
LazyClassInitializer init,
Source fromSource)
| Method Detail |
public Source fromSource()
ParsedClassTypeSource that this class type
was loaded from. Should be null if it was not loaded from
a Source during this compilation.
fromSource in interface ParsedClassTypepublic ClassType.Kind kind()
ClassType
kind in interface ClassTypekind in class ClassType_cpublic void inStaticContext(boolean inStaticContext)
ParsedClassType
inStaticContext in interface ParsedClassTypepublic boolean inStaticContext()
ClassType
inStaticContext in interface ClassTypepublic ClassType outer()
ClassType
outer in interface ClassTypeouter in class ClassType_cpublic java.lang.String name()
Named
name in interface Namedname in class ClassType_cpublic Type superType()
superType in interface ReferenceTypesuperType in class ClassType_cpublic Package package_()
package_ in interface Importablepackage_ in class ClassType_cpublic Flags flags()
flags in interface MemberInstanceflags in class ClassType_cprotected boolean initialized()
protected void freeInit()
public void flags(Flags flags)
ParsedClassType
flags in interface ParsedClassTypepublic void kind(ClassType.Kind kind)
ParsedClassType
kind in interface ParsedClassTypepublic void outer(ClassType outer)
ParsedClassType
outer in interface ParsedClassTypepublic void name(java.lang.String name)
ParsedClassTypeInternalCompilerError
if called on an anonymous class.
name in interface ParsedClassTypepublic void position(Position pos)
ParsedClassType
position in interface ParsedClassTypepublic void package_(Package p)
ParsedClassType
package_ in interface ParsedClassTypepublic void superType(Type t)
ParsedClassType
superType in interface ParsedClassTypepublic void addInterface(Type t)
ParsedClassType
addInterface in interface ParsedClassTypepublic void addMethod(MethodInstance mi)
ParsedClassType
addMethod in interface ParsedClassTypepublic void addConstructor(ConstructorInstance ci)
ParsedClassType
addConstructor in interface ParsedClassTypepublic void addField(FieldInstance fi)
ParsedClassType
addField in interface ParsedClassTypepublic void addMemberClass(ClassType t)
ParsedClassType
addMemberClass in interface ParsedClassTypepublic java.util.List constructors()
constructors in interface ClassTypeconstructors in class ClassType_cpublic java.util.List memberClasses()
memberClasses in interface ClassTypememberClasses in class ClassType_cpublic java.util.List methods()
methods in interface ReferenceTypemethods in class ClassType_cpublic java.util.List fields()
fields in interface ReferenceTypefields in class ClassType_cpublic java.util.List interfaces()
interfaces in interface ReferenceTypeinterfaces in class ClassType_c
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||