|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Formal
A Formal
represents a formal parameter to a method
or constructor or to a catch block. It consists of a type and a variable
identifier.
Field Summary |
---|
Fields inherited from interface polyglot.ast.Term |
---|
ENTRY, EXIT |
Method Summary | |
---|---|
Flags |
flags()
Get the flags of the formal. |
Formal |
flags(Flags flags)
Set the flags of the formal. |
Id |
id()
Get the name of the formal. |
Formal |
id(Id name)
Set the name of the formal. |
LocalInstance |
localInstance()
Get the local instance of the formal. |
Formal |
localInstance(LocalInstance li)
Set the local instance of the formal. |
java.lang.String |
name()
Get the name of the formal. |
Formal |
name(java.lang.String name)
Set the name of the formal. |
TypeNode |
type()
Get the type node of the formal. |
Formal |
type(TypeNode type)
Set the type node of the formal. |
Methods inherited from interface polyglot.ast.VarDecl |
---|
declType |
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 |
Method Detail |
---|
Flags flags()
flags
in interface VarDecl
Formal flags(Flags flags)
TypeNode type()
type
in interface VarDecl
Formal type(TypeNode type)
Id id()
id
in interface VarDecl
Formal id(Id name)
java.lang.String name()
name
in interface VarDecl
Formal name(java.lang.String name)
LocalInstance localInstance()
localInstance
in interface VarDecl
Formal localInstance(LocalInstance li)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |