polyglot.ast
Interface Local

All Superinterfaces:
java.lang.Cloneable, Copy, Expr, JL, NamedVariable, Node, NodeOps, Prefix, Receiver, Term, Typed, Variable
All Known Implementing Classes:
Local_c

public interface Local
extends NamedVariable

A local variable expression.


Field Summary
 
Fields inherited from interface polyglot.ast.Term
ENTRY, EXIT
 
Method Summary
 Id id()
          Get the name of the local variable.
 Local id(Id name)
          Set the name of the local variable.
 LocalInstance localInstance()
          Get the type object for the local.
 Local localInstance(LocalInstance li)
          Set the type object for the local.
 java.lang.String name()
          Get the name of the local variable.
 Local name(java.lang.String name)
          Set the name of the local variable.
 
Methods inherited from interface polyglot.ast.NamedVariable
flags, varInstance
 
Methods inherited from interface polyglot.ast.Expr
constantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type
 
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.Typed
type
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, exceptions, exceptions, firstChild, reachable, reachable
 

Method Detail

id

Id id()
Get the name of the local variable.


id

Local id(Id name)
Set the name of the local variable.


name

java.lang.String name()
Get the name of the local variable.

Specified by:
name in interface NamedVariable

name

Local name(java.lang.String name)
Set the name of the local variable.


localInstance

LocalInstance localInstance()
Get the type object for the local. This field may not be valid until after type checking.


localInstance

Local localInstance(LocalInstance li)
Set the type object for the local.