com.inxar.jenesis
Class MLiteral

java.lang.Object
  |
  +--com.inxar.jenesis.MVM.MCodeable
        |
        +--com.inxar.jenesis.MLiteral
All Implemented Interfaces:
Codeable, Expression, Literal

public abstract class MLiteral
extends com.inxar.jenesis.MVM.MCodeable
implements Literal

Standard Literal implementations.


Method Summary
 Comment getComment()
          Gets the comment for this Codeable object.
 Type getType()
          Returns the return type of this Expression.
 void setComment(Comment comment)
           
 void setComment(int type, java.lang.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.
 java.lang.Object toObject()
          Returns the underlying Object.
 java.lang.String toString()
           
 VirtualMachine vm()
          Returns the virtual machine to which this Codeable object belongs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.inxar.jenesis.Codeable
setComment, vm
 

Method Detail

toObject

public java.lang.Object toObject()
Description copied from interface: Literal
Returns the underlying Object.
Specified by:
toObject in interface Literal

getType

public Type getType()
Description copied from interface: Expression
Returns the return type of this Expression.
Specified by:
getType in interface Expression

toCode

public CodeWriter toCode(CodeWriter out)
Description copied from interface: Codeable
Renders the codeable object to the given writer and returns it.
Specified by:
toCode in interface Codeable
Overrides:
toCode in class com.inxar.jenesis.MVM.MCodeable

setComment

public void setComment(Comment comment)

getComment

public Comment getComment()
Description copied from interface: Codeable
Gets the comment for this Codeable object.
Specified by:
getComment in interface Codeable
Overrides:
getComment in class com.inxar.jenesis.MVM.MCodeable

setComment

public void setComment(int type,
                       java.lang.String text)
Description copied from interface: Codeable
Sets the comment to the given type and text.
Specified by:
setComment in interface Codeable

vm

public VirtualMachine vm()
Description copied from interface: Codeable
Returns the virtual machine to which this Codeable object belongs.
Specified by:
vm in interface Codeable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object