polyglot.ast
Interface Return

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

public interface Return
extends Stmt

A Return represents a return statement in Java. It may or may not return a value. If not expr() should return null.


Method Summary
 Expr expr()
          The expression to return.
 Return expr(Expr expr)
          Set the expression to return.
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 
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
 

Method Detail

expr

Expr expr()
The expression to return.


expr

Return expr(Expr expr)
Set the expression to return.