| Constructor and Description |
|---|
MStatement(MVM vm) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
cast(Class<T> clazz) |
Comment |
comment(String text)
Comments the statement.
|
Comment |
getComment()
Gets the comment for this
Codeable object. |
String |
getLabel()
Gets the label for the statement.
|
boolean |
isAbruptCompletionStatement()
Returns
true if the Statement is a statement
that completes abruptly (as defined in The Java language specification,
2nd Edition,Chapter 14.1 - see Normal and Abrupt Completion of Statements). |
boolean |
isBlockWithAbruptCompletion() |
net.sourceforge.jenesis4java.impl.MVM.MCodeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
MStatement |
setLabel(String label)
Sets the label for the statement.
|
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
String |
toString() |
void |
visit(IVisitor visitor)
walk through the code tree and alow every element to be excanged.
|
VirtualMachine |
vm()
Returns the virtual machine to which this
Codeable object
belongs. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcast, getComment, isBlockWithAbruptCompletion, setComment, vmpublic MStatement(MVM vm)
public Comment comment(String text)
Statementpublic String getLabel()
Statementpublic boolean isAbruptCompletionStatement()
Statementtrue if the Statement is a statement
that completes abruptly (as defined in The Java language specification,
2nd Edition,Chapter 14.1 - see Normal and Abrupt Completion of Statements).isAbruptCompletionStatement in interface Statementtrue if the Statement is a statement
that completes abruptlypublic MStatement setLabel(String label)
Statementpublic CodeWriter toCode(CodeWriter out)
Codeablepublic void visit(IVisitor visitor)
Codeablepublic <T> T cast(Class<T> clazz)
public Comment getComment()
CodeableCodeable object.getComment in interface Codeablepublic boolean isBlockWithAbruptCompletion()
isBlockWithAbruptCompletion in interface Codeablepublic net.sourceforge.jenesis4java.impl.MVM.MCodeable setComment(int type,
String text)
CodeablesetComment in interface Codeablepublic VirtualMachine vm()
CodeableCodeable object
belongs.Copyright © 2000–2015 jenesis4java. All rights reserved.