Modifier and Type | Field and Description |
---|---|
static int |
COMMENT_LENGTH_UNLIMITED |
static int |
D_COMMENT_LENGTH |
static int |
M_COMMENT_LENGTH |
static int |
S_COMMENT_LENGTH |
Modifier and Type | Method and Description |
---|---|
<T> T |
cast(Class<T> clazz) |
Comment |
getComment()
Gets the comment for this
Codeable object. |
String |
getText()
Gets the text for this comment.
|
boolean |
isBlockWithAbruptCompletion() |
net.sourceforge.jenesis4java.impl.MVM.MCodeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
MComment |
setText(String text)
Sets the text for this comment.
|
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
String |
toString() |
int |
type()
Returns the type of this comment.
|
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, toCode, vm
public static final int S_COMMENT_LENGTH
public static final int M_COMMENT_LENGTH
public static final int D_COMMENT_LENGTH
public static final int COMMENT_LENGTH_UNLIMITED
public String getText()
Comment
public MComment setText(String text)
Comment
public int type()
Comment
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 CodeWriter toCode(CodeWriter out)
Codeable
public VirtualMachine vm()
Codeable
Codeable
object
belongs.Copyright © 2000–2015 jenesis4java. All rights reserved.