|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpolyglot.types.TypeObject_c
polyglot.types.InitializerInstance_c
public class InitializerInstance_c
A InitializerInstance contains the type information for a
static or anonymous initializer.
| Field Summary | |
|---|---|
protected ClassType |
container
|
protected Flags |
flags
|
| Fields inherited from class polyglot.types.TypeObject_c |
|---|
position, ts |
| Constructor Summary | |
|---|---|
protected |
InitializerInstance_c()
Used for deserializing types. |
|
InitializerInstance_c(TypeSystem ts,
Position pos,
ClassType container,
Flags flags)
|
| Method Summary | |
|---|---|
ReferenceType |
container()
Return the member's containing type. |
InitializerInstance |
container(ClassType container)
Set the initializer's containing class. |
boolean |
equalsImpl(TypeObject o)
Default implementation is pointer equality. |
Flags |
flags()
Return the member's flags. |
InitializerInstance |
flags(Flags flags)
Set the initializer's flags. |
int |
hashCode()
|
boolean |
isCanonical()
Return true if the type object contains no unknown/ambiguous types. |
void |
setContainer(ClassType container)
|
void |
setContainer(ReferenceType container)
Destructively set the member's container. |
void |
setFlags(Flags flags)
Destructively set the member's flags. |
java.lang.String |
toString()
|
| Methods inherited from class polyglot.types.TypeObject_c |
|---|
copy, equals, position, typeSystem |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface polyglot.types.TypeObject |
|---|
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Methods inherited from interface polyglot.types.TypeObject |
|---|
position, typeSystem |
| Methods inherited from interface polyglot.util.Copy |
|---|
copy |
| Field Detail |
|---|
protected ClassType container
protected Flags flags
| Constructor Detail |
|---|
protected InitializerInstance_c()
public InitializerInstance_c(TypeSystem ts,
Position pos,
ClassType container,
Flags flags)
| Method Detail |
|---|
public ReferenceType container()
MemberInstance
container in interface MemberInstancepublic InitializerInstance container(ClassType container)
InitializerInstance
container in interface InitializerInstancepublic void setContainer(ReferenceType container)
MemberInstance
setContainer in interface MemberInstancepublic Flags flags()
MemberInstance
flags in interface CodeInstanceflags in interface MemberInstancepublic InitializerInstance flags(Flags flags)
InitializerInstance
flags in interface InitializerInstancepublic void setContainer(ClassType container)
container - The container to set.public void setFlags(Flags flags)
MemberInstance
setFlags in interface MemberInstanceflags - The flags to set.public int hashCode()
hashCode in class TypeObject_cpublic boolean equalsImpl(TypeObject o)
TypeObject_c
equalsImpl in interface TypeObjectequalsImpl in class TypeObject_cTypeObject_c.equalsImpl(TypeObject),
Object.hashCode()public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isCanonical()
TypeObject
isCanonical in interface TypeObject
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||