com.github.antlrjavaparser.api
Class Comment
java.lang.Object
com.github.antlrjavaparser.api.Node
com.github.antlrjavaparser.api.Comment
- Direct Known Subclasses:
- BlockComment, JavadocComment, LineComment
public abstract class Comment
- extends Node
Abstract class for all AST nodes that represent comments.
- Author:
- Julio Vilmar Gesser
- See Also:
BlockComment
,
LineComment
,
JavadocComment
Methods inherited from class com.github.antlrjavaparser.api.Node |
accept, accept, equals, getBeginColumn, getBeginLine, getData, getEndColumn, getEndLine, hashCode, setBeginColumn, setBeginLine, setData, setEndColumn, setEndLine, toString |
Comment
public Comment()
Comment
public Comment(String content)
Comment
public Comment(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String content)
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
Copyright © 2013. All Rights Reserved.