polyglot.ast
Interface Assign

All Superinterfaces:
java.lang.Cloneable, Copy, Expr, JL, Node, NodeOps, Prefix, Receiver, Term, Typed
All Known Subinterfaces:
AmbAssign, ArrayAccessAssign, FieldAssign, LocalAssign
All Known Implementing Classes:
AmbAssign_c, ArrayAccessAssign_c, Assign_c, FieldAssign_c, LocalAssign_c

public interface Assign
extends Expr

An Assign represents a Java assignment expression.


Nested Class Summary
static class Assign.Operator
          Assignment operator.
 
Field Summary
static Assign.Operator ADD_ASSIGN
           
static Assign.Operator ASSIGN
           
static Assign.Operator BIT_AND_ASSIGN
           
static Assign.Operator BIT_OR_ASSIGN
           
static Assign.Operator BIT_XOR_ASSIGN
           
static Assign.Operator DIV_ASSIGN
           
static Assign.Operator MOD_ASSIGN
           
static Assign.Operator MUL_ASSIGN
           
static Assign.Operator SHL_ASSIGN
           
static Assign.Operator SHR_ASSIGN
           
static Assign.Operator SUB_ASSIGN
           
static Assign.Operator USHR_ASSIGN
           
 
Method Summary
 Expr left()
          Left child (target) of the assignment.
 Assign left(Expr left)
          Set the left child (target) of the assignment.
 Assign.Operator operator()
          The assignment's operator.
 Assign operator(Assign.Operator op)
          Set the assignment's operator.
 Expr right()
          Right child (source) of the assignment.
 Assign right(Expr right)
          Set the right child (source) of the assignment.
 boolean throwsArithmeticException()
           
 
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
 

Field Detail

ASSIGN

static final Assign.Operator ASSIGN

ADD_ASSIGN

static final Assign.Operator ADD_ASSIGN

SUB_ASSIGN

static final Assign.Operator SUB_ASSIGN

MUL_ASSIGN

static final Assign.Operator MUL_ASSIGN

DIV_ASSIGN

static final Assign.Operator DIV_ASSIGN

MOD_ASSIGN

static final Assign.Operator MOD_ASSIGN

BIT_AND_ASSIGN

static final Assign.Operator BIT_AND_ASSIGN

BIT_OR_ASSIGN

static final Assign.Operator BIT_OR_ASSIGN

BIT_XOR_ASSIGN

static final Assign.Operator BIT_XOR_ASSIGN

SHL_ASSIGN

static final Assign.Operator SHL_ASSIGN

SHR_ASSIGN

static final Assign.Operator SHR_ASSIGN

USHR_ASSIGN

static final Assign.Operator USHR_ASSIGN
Method Detail

left

Expr left()
Left child (target) of the assignment. The target must be a Variable, but this is not enforced statically to keep Polyglot backward compatible.


left

Assign left(Expr left)
Set the left child (target) of the assignment. The target must be a Variable, but this is not enforced statically to keep Polyglot backward compatible.


operator

Assign.Operator operator()
The assignment's operator.


operator

Assign operator(Assign.Operator op)
Set the assignment's operator.


right

Expr right()
Right child (source) of the assignment.


right

Assign right(Expr right)
Set the right child (source) of the assignment.


throwsArithmeticException

boolean throwsArithmeticException()