polyglot.ast
Interface ArrayAccess

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

public interface ArrayAccess
extends Variable

An ArrayAccess is an immutable representation of an access of an array member.


Method Summary
 Expr array()
          Array to access.
 ArrayAccess array(Expr array)
          Set the array to access.
 Expr index()
          Index into the array.
 ArrayAccess index(Expr index)
          Set the index into the array.
 
Methods inherited from interface polyglot.ast.Variable
flags
 
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
 
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
 
Methods inherited from interface polyglot.ast.Typed
type
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 

Method Detail

array

Expr array()
Array to access.


array

ArrayAccess array(Expr array)
Set the array to access.


index

Expr index()
Index into the array.


index

ArrayAccess index(Expr index)
Set the index into the array.