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, wait
cast, getComment, isBlockWithAbruptCompletion, setComment, vm
public MStatement(MVM vm)
public Comment comment(String text)
Statement
public String getLabel()
Statement
public boolean isAbruptCompletionStatement()
Statement
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).isAbruptCompletionStatement
in interface Statement
true
if the Statement
is a statement
that completes abruptlypublic MStatement setLabel(String label)
Statement
public CodeWriter toCode(CodeWriter out)
Codeable
public void visit(IVisitor visitor)
Codeable
public <T> T cast(Class<T> clazz)
public Comment getComment()
Codeable
Codeable
object.getComment
in interface Codeable
public boolean isBlockWithAbruptCompletion()
isBlockWithAbruptCompletion
in interface Codeable
public net.sourceforge.jenesis4java.impl.MVM.MCodeable setComment(int type, String text)
Codeable
setComment
in interface Codeable
public VirtualMachine vm()
Codeable
Codeable
object
belongs.Copyright © 2000–2015 jenesis4java. All rights reserved.