polyglot.ast
Interface NamedVariable

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

public interface NamedVariable
extends Variable

An interface representing a variable. A Variable is any expression that can appear on the left-hand-side of an assignment.


Field Summary
 
Fields inherited from interface polyglot.ast.Term
ENTRY, EXIT
 
Method Summary
 Flags flags()
          Return the access flags of the variable, or Flags.NONE
 java.lang.String name()
          Return the name of the variable.
 VarInstance varInstance()
          Return the type object for the variable.
 
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

flags

Flags flags()
Return the access flags of the variable, or Flags.NONE

Specified by:
flags in interface Variable

name

java.lang.String name()
Return the name of the variable.


varInstance

VarInstance varInstance()
Return the type object for the variable.