com.inxar.jenesis
Class MExpression

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

public abstract class MExpression
extends com.inxar.jenesis.MVM.MCodeable
implements Expression

Standard Expression implementations.


Method Summary
 Comment getComment()
          Gets the comment for this Codeable object.
 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.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.Expression
getType
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, vm
 

Method Detail

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(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

getComment

public Comment getComment()
Description copied from interface: Codeable
Gets the comment for this Codeable object.
Specified by:
getComment 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