polyglot.ast
Interface CodeBlock

All Superinterfaces:
java.lang.Cloneable, CodeNode, Copy, JL, Node, NodeOps, Term
All Known Subinterfaces:
CodeDecl, ConstructorDecl, Initializer, MethodDecl, ProcedureDecl
All Known Implementing Classes:
ConstructorDecl_c, Initializer_c, MethodDecl_c

public interface CodeBlock
extends CodeNode

A code node. A "code" is the supertype of methods, constructors, and initalizers.


Field Summary
 
Fields inherited from interface polyglot.ast.Term
ENTRY, EXIT
 
Method Summary
 Block body()
          The body of the method, constructor, or initializer.
 CodeBlock body(Block body)
          Set the body.
 
Methods inherited from interface polyglot.ast.CodeNode
codeBody, codeInstance
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, exceptions, exceptions, firstChild, 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
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren
 
Methods inherited from interface polyglot.util.Copy
copy
 

Method Detail

body

Block body()
The body of the method, constructor, or initializer.


body

CodeBlock body(Block body)
Set the body.