polyglot.ast
Class LocalAssign_c
java.lang.Object
polyglot.ast.Node_c
polyglot.ast.Term_c
polyglot.ast.Expr_c
polyglot.ast.Assign_c
polyglot.ast.LocalAssign_c
- All Implemented Interfaces:
- java.lang.Cloneable, Assign, Expr, JL, LocalAssign, Node, NodeOps, Prefix, Receiver, Term, Typed, Copy
public class LocalAssign_c
- extends Assign_c
- implements LocalAssign
A LocalAssign_c represents a Java assignment expression
to a local variable. For instance, x = e.
The class of the Expr returned by
LocalAssign_c.left()is guaranteed to be an Local.
| Fields inherited from class polyglot.ast.Expr_c |
type |
| 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 |
| Methods inherited from class polyglot.ast.Assign_c |
acceptCFG, childExpectedType, copy, dump, left, operator, operator, precedence, prettyPrint, reconstruct, right, right, throwsArithmeticException, throwTypes, toString, typeCheck, visitChildren |
| Methods inherited from class polyglot.ast.Expr_c |
booleanValue, buildTypes, byteValue, charValue, constantValue, constantValueSet, doubleValue, floatValue, intValue, isConstant, isTypeChecked, longValue, printSubExpr, printSubExpr, shortValue, stringValue, type, type |
| Methods inherited from class polyglot.ast.Node_c |
addDecls, buildTypesEnter, checkConstants, copy, copy, del, del, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, enterChildScope, enterScope, error, error, exceptionCheckEnter, ext, ext, ext, ext, init, isDisambiguated, node, position, position, prettyPrint, prettyPrint, 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.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 |
LocalAssign_c
public LocalAssign_c(Position pos,
Local left,
Assign.Operator op,
Expr right)
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
firstChild
public Term firstChild()
- Description copied from interface:
Term
- Return the first direct subterm performed when evaluating this term. If
this term has no subterms, this should return null.
This method is similar to the deprecated entry(), but it should *not*
recursively drill down to the innermost subterm. The direct child visited
first in this term's dataflow should be returned.
- Specified by:
firstChild in interface Term- Specified by:
firstChild 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