|
|||||||||
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.
Field Summary |
---|
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
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. |
Id |
id()
The constructor's name. |
ConstructorDecl |
id(Id name)
Set the constructor's name. |
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.CodeBlock |
---|
body, body |
Methods inherited from interface polyglot.ast.CodeNode |
---|
codeBody, codeInstance |
Methods inherited from interface polyglot.ast.Term |
---|
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable |
Methods inherited from interface polyglot.ast.Node |
---|
childExpectedType, del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
---|
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
---|
addDecls, buildTypes, buildTypesEnter, checkConstants, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChildren |
Methods inherited from interface polyglot.util.Copy |
---|
copy |
Methods inherited from interface polyglot.ast.ClassMember |
---|
memberInstance |
Method Detail |
---|
Flags flags()
flags
in interface ProcedureDecl
ConstructorDecl flags(Flags flags)
Id id()
ConstructorDecl id(Id name)
java.lang.String name()
name
in interface ProcedureDecl
ConstructorDecl name(java.lang.String name)
java.util.List formals()
formals
in interface ProcedureDecl
Formal
.ConstructorDecl formals(java.util.List formals)
formals
- A list of Formal
.java.util.List throwTypes()
throwTypes
in interface ProcedureDecl
TypeNode
.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 |