public class LocalClassDecl_c extends Stmt_c implements LocalClassDecl
Term.Instance
Modifier and Type | Field and Description |
---|---|
protected ClassDecl |
decl |
exceptions, reachable
Constructor and Description |
---|
LocalClassDecl_c(Position pos,
ClassDecl decl) |
LocalClassDecl_c(Position pos,
ClassDecl decl,
Ext ext) |
Modifier and Type | Method and Description |
---|---|
<T> java.util.List<T> |
acceptCFG(CFGBuilder<?> v,
java.util.List<T> succs)
Visit this term in evaluation order, calling v.edge() for each successor
in succs, if data flows on that edge.
|
void |
addDecls(Context c)
Add any declarations to the context that should be in scope when
visiting later sibling nodes.
|
Node |
copy(NodeFactory nf)
Produce a copy of this node using the given NodeFactory.
|
ClassDecl |
decl()
The class declaration.
|
LocalClassDecl |
decl(ClassDecl decl)
Set the class declaration.
|
protected <N extends LocalClassDecl_c> |
decl(N n,
ClassDecl decl) |
Term |
firstChild()
Return the first direct subterm performed when evaluating this term.
|
void |
prettyPrint(CodeWriter w,
PrettyPrinter tr)
Pretty-print the AST using the given
CodeWriter . |
protected <N extends LocalClassDecl_c> |
reconstruct(N n,
ClassDecl decl)
Reconstruct the statement.
|
java.lang.String |
toString() |
Node |
visitChildren(NodeVisitor v)
Visit the children of the node.
|
exceptionCheck, exceptions, exceptions, exceptions, extRewrite, listChild, reachable, reachable, reachable
buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, copyIfNeeded, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, dump, enterChildScope, enterScope, error, error, error, exceptionCheckEnter, ext, ext, ext, ext, extRewriteEnter, isDisambiguated, isTypeChecked, lang, position, position, position, prettyPrint, prettyPrint, prettyPrint, prettyPrint, print, printBlock, printSubStmt, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
exceptions, exceptions, reachable, reachable
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitList
protected ClassDecl decl
public ClassDecl decl()
LocalClassDecl
decl
in interface LocalClassDecl
public LocalClassDecl decl(ClassDecl decl)
LocalClassDecl
decl
in interface LocalClassDecl
protected <N extends LocalClassDecl_c> N decl(N n, ClassDecl decl)
protected <N extends LocalClassDecl_c> N reconstruct(N n, ClassDecl decl)
public Node visitChildren(NodeVisitor v)
NodeOps
visitChildren
in interface NodeOps
visitChildren
in class Node_c
v
- The visitor that will traverse/rewrite the AST.this
.public Term firstChild()
TermOps
firstChild
in interface TermOps
firstChild
in class Term_c
public <T> java.util.List<T> acceptCFG(CFGBuilder<?> v, java.util.List<T> succs)
TermOps
public void addDecls(Context c)
Node_c
public void prettyPrint(CodeWriter w, PrettyPrinter tr)
Node_c
CodeWriter
.prettyPrint
in interface NodeOps
prettyPrint
in class Node_c
w
- The code writer to which to write.tr
- The pretty printer. This is not a visitor.