polyglot.ast
Class LocalClassDecl_c

java.lang.Object
  extended by polyglot.ast.Node_c
      extended by polyglot.ast.Term_c
          extended by polyglot.ast.Stmt_c
              extended by polyglot.ast.LocalClassDecl_c
All Implemented Interfaces:
java.lang.Cloneable, CompoundStmt, JL, LocalClassDecl, Node, NodeOps, Stmt, Term, Copy

public class LocalClassDecl_c
extends Stmt_c
implements LocalClassDecl

A local class declaration statement. The node is just a wrapper around a class declaration.


Field Summary
protected  ClassDecl decl
           
 
Fields inherited from class polyglot.ast.Term_c
exceptions, reachable
 
Fields inherited from class polyglot.ast.Node_c
del, error, ext, position
 
Constructor Summary
LocalClassDecl_c(Position pos, ClassDecl decl)
           
 
Method Summary
 java.util.List acceptCFG(CFGBuilder v, java.util.List succs)
          Visit this term in evaluation order.
 void addDecls(Context c)
          Add any declarations to the context that should be in scope when visiting later sibling nodes.
 ClassDecl decl()
          Get the class declaration.
 LocalClassDecl decl(ClassDecl decl)
          Set the class declaration.
 Term entry()
          Return the first (sub)term performed when evaluating this term.
 void prettyPrint(CodeWriter w, PrettyPrinter tr)
          Write the statement to an output file.
protected  LocalClassDecl_c reconstruct(ClassDecl decl)
          Reconstruct the statement.
 java.lang.String toString()
           
 Node visitChildren(NodeVisitor v)
          Visit the children of the statement.
 
Methods inherited from class polyglot.ast.Term_c
exceptionCheck, exceptions, exceptions, listEntry, reachable, reachable
 
Methods inherited from class polyglot.ast.Node_c
buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, enterChildScope, enterScope, error, error, exceptionCheckEnter, ext, ext, ext, ext, init, isDisambiguated, isTypeChecked, node, position, position, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ast.Term
exceptions, exceptions, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList
 
Methods inherited from interface polyglot.ast.JL
init, node
 
Methods inherited from interface polyglot.ast.NodeOps
buildTypes, buildTypesEnter, checkConstants, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride
 
Methods inherited from interface polyglot.util.Copy
copy
 

Field Detail

decl

protected ClassDecl decl
Constructor Detail

LocalClassDecl_c

public LocalClassDecl_c(Position pos,
                        ClassDecl decl)
Method Detail

decl

public ClassDecl decl()
Get the class declaration.

Specified by:
decl in interface LocalClassDecl

decl

public LocalClassDecl decl(ClassDecl decl)
Set the class declaration.


reconstruct

protected LocalClassDecl_c reconstruct(ClassDecl decl)
Reconstruct the statement.


entry

public Term entry()
Return the first (sub)term performed when evaluating this term.

Specified by:
entry in interface Term
Specified by:
entry in class Term_c

acceptCFG

public java.util.List acceptCFG(CFGBuilder v,
                                java.util.List succs)
Visit this term in evaluation order.

Specified by:
acceptCFG in interface Term
Specified by:
acceptCFG in class Term_c

visitChildren

public Node visitChildren(NodeVisitor v)
Visit the children of the statement.

Specified by:
visitChildren in interface NodeOps
Overrides:
visitChildren in class Node_c
Parameters:
v - The visitor that will traverse/rewrite the AST.
Returns:
A new AST if a change was made, or this.

addDecls

public void addDecls(Context c)
Description copied from class: Node_c
Add any declarations to the context that should be in scope when visiting later sibling nodes.

Specified by:
addDecls in interface NodeOps
Overrides:
addDecls in class Node_c
Parameters:
c - The context to which to add declarations.

toString

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

prettyPrint

public void prettyPrint(CodeWriter w,
                        PrettyPrinter tr)
Write the statement to an output file.

Specified by:
prettyPrint in interface NodeOps
Overrides:
prettyPrint in class Node_c
Parameters:
w - The code writer to which to write.
tr - The pretty printer. This is not a visitor.