polyglot.ast
Interface CodeNode

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

public interface CodeNode
extends Term

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
 Term codeBody()
          The body of the method, constructor, initializer, or field initializer.
 CodeInstance codeInstance()
          The CodeInstance of the method, constructor, or initializer.
 
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

codeBody

Term codeBody()
The body of the method, constructor, initializer, or field initializer.


codeInstance

CodeInstance codeInstance()
The CodeInstance of the method, constructor, or initializer.