polyglot.ext.jl.ast
Class FieldAssign_c

java.lang.Object
  extended by polyglot.ext.jl.ast.Node_c
      extended by polyglot.ext.jl.ast.Term_c
          extended by polyglot.ext.jl.ast.Expr_c
              extended by polyglot.ext.jl.ast.Assign_c
                  extended by polyglot.ext.jl.ast.FieldAssign_c
All Implemented Interfaces:
java.lang.Cloneable, Assign, Expr, FieldAssign, JL, Node, NodeOps, Prefix, Receiver, Term, Typed, Copy

public class FieldAssign_c
extends Assign_c
implements FieldAssign

A FieldAssign_c represents a Java assignment expression to a field. For instance, this.x = e. The class of the Expr returned by FieldAssign_c.left()is guaranteed to be a Field.


Nested Class Summary
 
Nested classes/interfaces inherited from interface polyglot.ast.Assign
Assign.Operator
 
Field Summary
 
Fields inherited from class polyglot.ext.jl.ast.Assign_c
left, op, right
 
Fields inherited from class polyglot.ext.jl.ast.Expr_c
type
 
Fields inherited from class polyglot.ext.jl.ast.Term_c
exceptions, reachable
 
Fields inherited from class polyglot.ext.jl.ast.Node_c
del, ext, position
 
Fields inherited from interface polyglot.ast.Assign
ADD_ASSIGN, ASSIGN, BIT_AND_ASSIGN, BIT_OR_ASSIGN, BIT_XOR_ASSIGN, DIV_ASSIGN, MOD_ASSIGN, MUL_ASSIGN, SHL_ASSIGN, SHR_ASSIGN, SUB_ASSIGN, USHR_ASSIGN
 
Constructor Summary
FieldAssign_c(Position pos, Field left, Assign.Operator op, Expr right)
           
 
Method Summary
protected  void acceptCFGAssign(CFGBuilder v)
          ###@@@DOCO TODO
protected  void acceptCFGOpAssign(CFGBuilder v)
          ###@@@DOCO TODO
 Term entry()
          Return the first (sub)term performed when evaluating this term.
 Assign left(Expr left)
          Set the left operand of the expression.
 java.util.List throwTypes(TypeSystem ts)
          List of Types of exceptions that might get thrown.
 
Methods inherited from class polyglot.ext.jl.ast.Assign_c
acceptCFG, childExpectedType, dump, left, operator, operator, precedence, prettyPrint, reconstruct, right, right, throwsArithmeticException, toString, typeCheck, visitChildren
 
Methods inherited from class polyglot.ext.jl.ast.Expr_c
booleanValue, buildTypes, byteValue, charValue, constantValue, doubleValue, floatValue, intValue, isConstant, longValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type
 
Methods inherited from class polyglot.ext.jl.ast.Term_c
exceptionCheck, exceptions, exceptions, listEntry, reachable, reachable
 
Methods inherited from class polyglot.ext.jl.ast.Node_c
addDecls, addMembers, addMembersEnter, addMembersOverride, buildTypesEnter, buildTypesOverride, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, enterScope, enterScope, exceptionCheckEnter, exceptionCheckOverride, ext, ext, ext, ext, init, node, position, position, print, printBlock, printSubStmt, translate, typeCheckEnter, typeCheckOverride, visit, visitChild, visitEdge, visitList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface polyglot.ast.Assign
left, operator, operator, right, right, 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, 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, exceptions, exceptions, reachable, reachable
 

Constructor Detail

FieldAssign_c

public FieldAssign_c(Position pos,
                     Field left,
                     Assign.Operator op,
                     Expr right)
Method Detail

left

public Assign left(Expr left)
Description copied from class: Assign_c
Set the left operand of the expression.

Specified by:
left in interface Assign
Overrides:
left in class Assign_c

entry

public Term entry()
Description copied from class: Term_c
Return the first (sub)term performed when evaluating this term.

Specified by:
entry in interface Term
Specified by:
entry in class Assign_c

acceptCFGAssign

protected void acceptCFGAssign(CFGBuilder v)
Description copied from class: Assign_c
###@@@DOCO TODO

Specified by:
acceptCFGAssign in class Assign_c

acceptCFGOpAssign

protected void acceptCFGOpAssign(CFGBuilder v)
Description copied from class: Assign_c
###@@@DOCO TODO

Specified by:
acceptCFGOpAssign in class Assign_c

throwTypes

public java.util.List throwTypes(TypeSystem ts)
Description copied from interface: NodeOps
List of Types of exceptions that might get thrown. The result is not necessarily correct until after type checking.

Specified by:
throwTypes in interface NodeOps
Overrides:
throwTypes in class Assign_c