polyglot.ast
Interface TopLevelDecl
- All Superinterfaces:
- java.lang.Cloneable, Copy, JL, Node, NodeOps
- All Known Subinterfaces:
- ClassDecl, CofferClassDecl
- All Known Implementing Classes:
- ClassDecl_c, CofferClassDecl_c
- public interface TopLevelDecl
- extends Node
A top-level declaration. This is any declaration that can appear in the
outermost scope of a source file.
Method Summary |
Named |
declaration()
The type object being declared. |
Flags |
flags()
The declaration's flags. |
java.lang.String |
name()
The declaration's name. |
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 |
flags
public Flags flags()
- The declaration's flags.
name
public java.lang.String name()
- The declaration's name.
declaration
public Named declaration()
- The type object being declared.