|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ClassDecl
represents a top-level, member, or local class
declaration.
Method Summary | |
ClassBody |
body()
The class's body. |
ClassDecl |
body(ClassBody body)
Set the class's body. |
Flags |
flags()
The class declaration's flags. |
ClassDecl |
flags(Flags flags)
Set the class declaration's flags. |
java.util.List |
interfaces()
The class's interface list. |
ClassDecl |
interfaces(java.util.List interfaces)
Set the class's interface list. |
java.lang.String |
name()
The class declaration's name. |
ClassDecl |
name(java.lang.String name)
Set the class declaration's name. |
TypeNode |
superClass()
The class's super class. |
ClassDecl |
superClass(TypeNode superClass)
Set the class's super class. |
ParsedClassType |
type()
The type of the class declaration. |
ClassDecl |
type(ParsedClassType type)
Set the type of the class declaration. |
Methods inherited from interface polyglot.ast.Term |
acceptCFG, entry, reachable, reachable |
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 |
Method Detail |
public ParsedClassType type()
public ClassDecl type(ParsedClassType type)
public Flags flags()
flags
in interface TopLevelDecl
public ClassDecl flags(Flags flags)
public java.lang.String name()
name
in interface TopLevelDecl
public ClassDecl name(java.lang.String name)
public TypeNode superClass()
public ClassDecl superClass(TypeNode superClass)
public java.util.List interfaces()
TypeNode
.public ClassDecl interfaces(java.util.List interfaces)
interfaces
- A list of TypeNode
.public ClassBody body()
public ClassDecl body(ClassBody body)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |