at.dms.kjc
Class CParseClassContext

java.lang.Object
  extended by at.dms.kjc.CParseClassContext
All Implemented Interfaces:
DeepCloneable

public class CParseClassContext
extends Object
implements DeepCloneable


Method Summary
 void addBlockInitializer(JClassBlock block)
           
 void addFieldDeclaration(JFieldDeclaration decl)
           
 void addInnerDeclaration(JTypeDeclaration decl)
           
 void addMethodDeclaration(JMethodDeclaration decl)
           
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(CParseClassContext other)
          Clones all fields of this into
 JPhylum[] getBody()
           
 JFieldDeclaration[] getFields()
           
 JTypeDeclaration[] getInnerClasses()
           
static CParseClassContext getInstance()
           
 JMethodDeclaration[] getMethods()
           
 void release()
           
static void release(CParseClassContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static CParseClassContext getInstance()

release

public void release()

release

public static void release(CParseClassContext context)

addFieldDeclaration

public void addFieldDeclaration(JFieldDeclaration decl)

addMethodDeclaration

public void addMethodDeclaration(JMethodDeclaration decl)

addInnerDeclaration

public void addInnerDeclaration(JTypeDeclaration decl)

addBlockInitializer

public void addBlockInitializer(JClassBlock block)

getFields

public JFieldDeclaration[] getFields()

getMethods

public JMethodDeclaration[] getMethods()

getInnerClasses

public JTypeDeclaration[] getInnerClasses()

getBody

public JPhylum[] getBody()

deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable

deepCloneInto

protected void deepCloneInto(CParseClassContext other)
Clones all fields of this into
other