|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectrecoder.java.JavaSourceElement
recoder.java.Comment
public class Comment
A comment, possibly with multiple lines.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface recoder.java.SourceElement |
|---|
SourceElement.Position |
| Field Summary |
|---|
| Fields inherited from class recoder.java.JavaSourceElement |
|---|
factory |
| Constructor Summary | |
|---|---|
|
Comment()
Create a new empty comment. |
protected |
Comment(Comment proto)
Comment. |
|
Comment(java.lang.String text)
Create a new comment with the given content. |
|
Comment(java.lang.String text,
boolean prefixed)
Create a new comment with the given content. |
| Method Summary | |
|---|---|
void |
accept(SourceVisitor v)
Receive a visitor, for instance a pretty printer. |
Comment |
deepClone()
Deep clone. |
ProgramElement |
getParent()
Get parent of the comment. |
java.lang.String |
getText()
Get the comment text. |
boolean |
isContainerComment()
|
boolean |
isPrefixed()
Check if this comment should be prefixed in front of the parent element, or if it should follow it. |
void |
setContainerComment(boolean isContainerComment)
Define if this comment should be a container comment. |
void |
setParent(ProgramElement p)
Set parent of the comment. |
void |
setPrefixed(boolean prefixed)
Define if this comment should be prefixed in front of the parent element, or if it should follow it. |
void |
setText(java.lang.String text)
Set text, including all markers. |
java.lang.String |
toString()
|
| Methods inherited from class recoder.java.JavaSourceElement |
|---|
getEndPosition, getFactory, getFirstElement, getLastElement, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Comment()
public Comment(java.lang.String text)
text - the text of the comment.
public Comment(java.lang.String text,
boolean prefixed)
text - the text of the comment.protected Comment(Comment proto)
proto - a comment.| Method Detail |
|---|
public Comment deepClone()
public boolean isPrefixed()
public boolean isContainerComment()
public void setPrefixed(boolean prefixed)
prefixed - the boolean value.public void setContainerComment(boolean isContainerComment)
isContainerComment - public void setParent(ProgramElement p)
p - a program element.public ProgramElement getParent()
public java.lang.String getText()
public void setText(java.lang.String text)
text - a string.public void accept(SourceVisitor v)
SourceElement
v - a source visitor.public java.lang.String toString()
toString in class java.lang.Object
|
RECODER 0.92 | |||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||