polyglot.ast
Interface CodeDecl
- All Superinterfaces:
- ClassMember, java.lang.Cloneable, Copy, JL, Node, NodeOps, Term
- All Known Subinterfaces:
- CofferConstructorDecl, CofferMethodDecl, ConstructorDecl, Initializer, MethodDecl, ProcedureDecl
- All Known Implementing Classes:
- CofferConstructorDecl_c, CofferMethodDecl_c, ConstructorDecl_c, Initializer_c, MethodDecl_c
public interface CodeDecl
- extends ClassMember
A code declaration. A "code" is the supertype of methods,
constructors, and initalizers.
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
body
Block body()
- The body of the method, constructor, or initializer.
body
CodeDecl body(Block body)
- Set the body.
codeInstance
CodeInstance codeInstance()
- The CodeInstance of the method, constructor, or initializer.