polyglot.ast
Interface Eval

All Superinterfaces:
java.lang.Cloneable, Copy, ForInit, ForUpdate, JL, Node, NodeOps, Stmt, Term
All Known Implementing Classes:
Eval_c

public interface Eval
extends ForInit, ForUpdate

An Eval is a statement that evaluates an expression then discards the result.


Method Summary
 Expr expr()
          Expression to evaluate.
 Eval expr(Expr expr)
          Set the expression to evaluate.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, reachable, reachable
 
Methods inherited from interface polyglot.ast.Node
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge
 
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
 

Method Detail

expr

public Expr expr()
Expression to evaluate.


expr

public Eval expr(Expr expr)
Set the expression to evaluate.