public abstract class MLiteral extends Object implements Literal
Literal
implementations.Modifier and Type | Method and Description |
---|---|
Codeable |
applyStyle(Style style) |
<T> T |
cast(Class<T> clazz) |
Comment |
getComment()
Gets the comment for this
Codeable object. |
Type |
getType()
Returns the return type of this
Expression . |
boolean |
isActive(Style style) |
boolean |
isBlockWithAbruptCompletion() |
MLiteral |
setComment(Comment comment) |
net.sourceforge.jenesis4java.impl.MVM.MCodeable |
setComment(int type,
String text)
Sets the comment to the given type and text.
|
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
Object |
toObject()
Returns the underlying
Object . |
String |
toString() |
void |
visit(ReplacingVisitor visitor)
walk through the code tree and allow every element to be exchanged.
|
VirtualMachine |
vm()
Returns the virtual machine to which this
Codeable object
belongs. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
applyStyle, cast, isActive, isBlockWithAbruptCompletion, setComment, vm
public Comment getComment()
Codeable
Codeable
object.getComment
in interface Codeable
public Type getType()
Expression
Expression
.getType
in interface Expression
public CodeWriter toCode(CodeWriter out)
Codeable
public Object toObject()
Literal
Object
.public void visit(ReplacingVisitor visitor)
Codeable
public <T> T cast(Class<T> clazz)
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.public Codeable applyStyle(Style style)
applyStyle
in interface Codeable
Copyright © 2000–2018 jenesis4java. All rights reserved.