polyglot.ast
Interface Formal
- All Superinterfaces:
- java.lang.Cloneable, Copy, JL, Node, NodeOps, Term, VarDecl
- All Known Implementing Classes:
- Formal_c
public interface Formal
- extends VarDecl
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.
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 |
flags
Formal flags(Flags flags)
- Set the declaration's flags.
type
Formal type(TypeNode type)
- Set the declaration's type.
name
Formal name(java.lang.String name)
- Set the declaration's name.
localInstance
Formal localInstance(LocalInstance li)
- Set the type object for the local we are declaring.