polyglot.ext.jl.types
Class InitializerInstance_c

java.lang.Object
  extended by polyglot.ext.jl.types.TypeObject_c
      extended by polyglot.ext.jl.types.InitializerInstance_c
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, CodeInstance, InitializerInstance, MemberInstance, TypeObject, Copy

public class InitializerInstance_c
extends TypeObject_c
implements InitializerInstance

A InitializerInstance contains the type information for a static or anonymous initializer.

See Also:
Serialized Form

Field Summary
protected  ClassType container
           
protected  Flags flags
           
 
Fields inherited from class polyglot.ext.jl.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.
 java.lang.String toString()
           
 
Methods inherited from class polyglot.ext.jl.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
 

Field Detail

container

protected ClassType container

flags

protected Flags flags
Constructor Detail

InitializerInstance_c

protected InitializerInstance_c()
Used for deserializing types.


InitializerInstance_c

public InitializerInstance_c(TypeSystem ts,
                             Position pos,
                             ClassType container,
                             Flags flags)
Method Detail

container

public ReferenceType container()
Description copied from interface: MemberInstance
Return the member's containing type.

Specified by:
container in interface MemberInstance

container

public InitializerInstance container(ClassType container)
Description copied from interface: InitializerInstance
Set the initializer's containing class.

Specified by:
container in interface InitializerInstance

flags

public Flags flags()
Description copied from interface: MemberInstance
Return the member's flags.

Specified by:
flags in interface MemberInstance

flags

public InitializerInstance flags(Flags flags)
Description copied from interface: InitializerInstance
Set the initializer's flags.

Specified by:
flags in interface InitializerInstance

hashCode

public int hashCode()
Overrides:
hashCode in class TypeObject_c

equalsImpl

public boolean equalsImpl(TypeObject o)
Description copied from class: TypeObject_c
Default implementation is pointer equality.

Specified by:
equalsImpl in interface TypeObject
Overrides:
equalsImpl in class TypeObject_c
See Also:
TypeObject_c.equalsImpl(TypeObject), Object.hashCode()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isCanonical

public boolean isCanonical()
Description copied from interface: TypeObject
Return true if the type object contains no unknown/ambiguous types.

Specified by:
isCanonical in interface TypeObject