com.github.antlrjavaparser.api
Class Comment

java.lang.Object
  extended by com.github.antlrjavaparser.api.Comment
Direct Known Subclasses:
BlockComment, JavadocComment, LineComment

public abstract class Comment
extends Object

Abstract class for all AST nodes that represent comments.

Author:
Julio Vilmar Gesser
See Also:
BlockComment, LineComment, JavadocComment

Constructor Summary
Comment()
           
Comment(String content)
           
 
Method Summary
<A> void
accept(VoidVisitor<A> v, A arg)
           
 String getContent()
          Return the text of the comment.
 void setContent(String content)
          Sets the text of the comment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Comment

public Comment()

Comment

public Comment(String content)
Method Detail

getContent

public final String getContent()
Return the text of the comment.

Returns:
text of the comment

setContent

public void setContent(String content)
Sets the text of the comment.

Parameters:
content - the text of the comment to set

accept

public <A> void accept(VoidVisitor<A> v,
                       A arg)


Copyright © 2013. All Rights Reserved.