|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A ConstructorDecl
is an immutable representation of a
constructor declaration as part of a class body.
Method Summary | |
ConstructorInstance |
constructorInstance()
The constructor type object. |
ConstructorDecl |
constructorInstance(ConstructorInstance ci)
Set the constructor's type object. |
Flags |
flags()
The constructor's flags. |
ConstructorDecl |
flags(Flags flags)
Set the constructor's flags. |
java.util.List |
formals()
The constructor's formal parameters. |
ConstructorDecl |
formals(java.util.List formals)
Set the constructor's formal parameters. |
java.lang.String |
name()
The constructor's name. |
ConstructorDecl |
name(java.lang.String name)
Set the constructor's name. |
java.util.List |
throwTypes()
The constructor's exception throw types. |
ConstructorDecl |
throwTypes(java.util.List throwTypes)
Set the constructor's exception throw types. |
Methods inherited from interface polyglot.ast.ProcedureDecl |
procedureInstance |
Methods inherited from interface polyglot.ast.CodeDecl |
body, body, codeInstance |
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 |
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 Flags flags()
flags
in interface ProcedureDecl
public ConstructorDecl flags(Flags flags)
public java.lang.String name()
name
in interface ProcedureDecl
public ConstructorDecl name(java.lang.String name)
public java.util.List formals()
formals
in interface ProcedureDecl
Formal
.public ConstructorDecl formals(java.util.List formals)
formals
- A list of Formal
.public java.util.List throwTypes()
throwTypes
in interface ProcedureDecl
TypeNode
.public ConstructorDecl throwTypes(java.util.List throwTypes)
throwTypes
- A list of TypeNode
.public ConstructorInstance constructorInstance()
public ConstructorDecl constructorInstance(ConstructorInstance ci)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |