RECODER 0.92

recoder.java
Class SingleLineComment

java.lang.Object
  extended by recoder.java.JavaSourceElement
      extended by recoder.java.Comment
          extended by recoder.java.SingleLineComment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, SourceElement

public class SingleLineComment
extends Comment

Any non-SingleLineComment is a multi line comment.

See Also:
Serialized Form

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
SingleLineComment()
          Single line comment.
SingleLineComment(java.lang.String text)
          Single line comment.
 
Method Summary
 void accept(SourceVisitor v)
          Receive a visitor, for instance a pretty printer.
 SingleLineComment deepClone()
          Deep clone.
 
Methods inherited from class recoder.java.Comment
getParent, getText, isContainerComment, isPrefixed, setContainerComment, setParent, setPrefixed, setText, 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

SingleLineComment

public SingleLineComment()
Single line comment.


SingleLineComment

public SingleLineComment(java.lang.String text)
Single line comment.

Parameters:
text - a string.
Method Detail

deepClone

public SingleLineComment deepClone()
Deep clone.

Specified by:
deepClone in interface SourceElement
Overrides:
deepClone in class Comment
Returns:
the object.

accept

public void accept(SourceVisitor v)
Description copied from interface: SourceElement
Receive a visitor, for instance a pretty printer.

Specified by:
accept in interface SourceElement
Overrides:
accept in class Comment
Parameters:
v - a source visitor.

RECODER 0.92