com.inxar.jenesis
Class MType

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

public abstract class MType
extends com.inxar.jenesis.MVM.MCodeable

Standard Type implementations.


Constructor Summary
MType(MVM vm, int type, java.lang.String name)
           
 
Method Summary
 Comment getComment()
          Gets the comment for this Codeable object.
 boolean isArray()
           
 boolean isPrimitive()
           
 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()
           
 int type()
           
 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
 

Constructor Detail

MType

public MType(MVM vm,
             int type,
             java.lang.String name)
Method Detail

type

public int type()

isPrimitive

public boolean isPrimitive()

isArray

public boolean isArray()

toCode

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

toString

public java.lang.String toString()
Overrides:
toString 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