|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ConstructorDecl
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, exceptions, exceptions, 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 |
|---|
Flags flags()
flags in interface ProcedureDeclConstructorDecl flags(Flags flags)
java.lang.String name()
name in interface ProcedureDeclConstructorDecl name(java.lang.String name)
java.util.List formals()
formals in interface ProcedureDeclFormal.ConstructorDecl formals(java.util.List formals)
formals - A list of Formal.java.util.List throwTypes()
throwTypes in interface ProcedureDeclTypeNode.ConstructorDecl throwTypes(java.util.List throwTypes)
throwTypes - A list of TypeNode.ConstructorInstance constructorInstance()
ConstructorDecl constructorInstance(ConstructorInstance ci)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||