com.inxar.jenesis
Class MStatement

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

public abstract class MStatement
extends com.inxar.jenesis.MVM.MCodeable
implements Statement

Standard Statement implementations.


Constructor Summary
MStatement(MVM vm)
           
 
Method Summary
 Comment comment(java.lang.String text)
          Comments the statement.
 Comment getComment()
          Gets the comment for this Codeable object.
 java.lang.String getLabel()
          Gets the label for the statement.
 void setComment(int type, java.lang.String text)
          Sets the comment to the given type and text.
 void setLabel(java.lang.String label)
          Sets the label for the statement.
 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.Codeable
getComment, setComment, vm
 

Constructor Detail

MStatement

public MStatement(MVM vm)
Method Detail

comment

public Comment comment(java.lang.String text)
Description copied from interface: Statement
Comments the statement.
Specified by:
comment in interface Statement

setLabel

public void setLabel(java.lang.String label)
Description copied from interface: Statement
Sets the label for the statement.
Specified by:
setLabel in interface Statement

getLabel

public java.lang.String getLabel()
Description copied from interface: Statement
Gets the label for the statement.
Specified by:
getLabel in interface Statement

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