com.inxar.jenesis
Class MComment
java.lang.Object
|
+--com.inxar.jenesis.MVM.MCodeable
|
+--com.inxar.jenesis.MComment
- All Implemented Interfaces:
- Codeable, Comment
- public abstract class MComment
- extends com.inxar.jenesis.MVM.MCodeable
- implements Comment
Standard Comment
implementations.
Fields inherited from interface org.inxar.jenesis.Comment |
D, M, S |
Method Summary |
Comment |
getComment()
Gets the comment for this Codeable object. |
java.lang.String |
getText()
Gets the text for this comment. |
void |
setComment(int type,
java.lang.String text)
Sets the comment to the given type and text. |
void |
setText(java.lang.String text)
Sets the text for this comment. |
CodeWriter |
toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it. |
java.lang.String |
toString()
|
int |
type()
Returns the type of this comment. |
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 |
S_COMMENT_LENGTH
public static final int S_COMMENT_LENGTH
M_COMMENT_LENGTH
public static final int M_COMMENT_LENGTH
D_COMMENT_LENGTH
public static final int D_COMMENT_LENGTH
type
public int type()
- Description copied from interface:
Comment
- Returns the type of this comment.
- Specified by:
type
in interface Comment
setText
public void setText(java.lang.String text)
- Description copied from interface:
Comment
- Sets the text for this comment.
- Specified by:
setText
in interface Comment
getText
public java.lang.String getText()
- Description copied from interface:
Comment
- Gets the text for this comment.
- Specified by:
getText
in interface Comment
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
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
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