|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcetus.hir.Statement
cetus.hir.ReturnStatement
public class ReturnStatement
| Field Summary |
|---|
| Fields inherited from class cetus.hir.Statement |
|---|
annotations, children, line_number, object_print_method, parent |
| Constructor Summary | |
|---|---|
ReturnStatement()
Creates a "return nothing" statement. |
|
ReturnStatement(Expression expr)
Creates a statement that returns an expression. |
|
| Method Summary | |
|---|---|
static void |
defaultPrint(ReturnStatement stmt,
java.io.OutputStream stream)
Prints a break statement to a stream. |
Expression |
getExpression()
Returns the expression that is being returned by this statement, or null if nothing is being returned. |
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created objects will use the supplied method. |
java.lang.String |
toString()
Returns a string representation of this statement; every child class should implement this method. |
| Methods inherited from class cetus.hir.Statement |
|---|
annotate, annotateAfter, annotateBefore, annotationToString, clone, containsAnnotation, detach, getAnnotation, getAnnotations, getAnnotations, getAnnotations, getChildren, getParent, getProcedure, print, removeAnnotations, removeAnnotations, removeChild, setChild, setLineNumber, setParent, setPrintMethod, swapWith, toAnnotatedString, verify, where |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ReturnStatement()
public ReturnStatement(Expression expr)
expr - The expression to return.| Method Detail |
|---|
public static void defaultPrint(ReturnStatement stmt,
java.io.OutputStream stream)
stmt - The statement to print.stream - The stream on which to print the statement.public java.lang.String toString()
Statement
toString in class Statementpublic Expression getExpression()
public static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||