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.


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()
Get the flags of the formal.

Specified by:
flags in interface VarDecl

flags

Formal flags(Flags flags)
Set the flags of the formal.


type

TypeNode type()
Get the type node of the formal.

Specified by:
type in interface VarDecl

type

Formal type(TypeNode type)
Set the type node of the formal.


id

Id id()
Get the name of the formal.

Specified by:
id in interface VarDecl

id

Formal id(Id name)
Set the name of the formal.


name

java.lang.String name()
Get the name of the formal.

Specified by:
name in interface VarDecl

name

Formal name(java.lang.String name)
Set the name of the formal.


localInstance

LocalInstance localInstance()
Get the local instance of the formal.

Specified by:
localInstance in interface VarDecl

localInstance

Formal localInstance(LocalInstance li)
Set the local instance of the formal.