public abstract class Comment extends Node
BlockComment,
LineComment,
JavadocComment,
Serialized Form| Constructor and Description |
|---|
Comment() |
Comment(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String content) |
Comment(String content) |
| Modifier and Type | Method and Description |
|---|---|
List<Node> |
getChildren() |
String |
getContent()
Return the text of the comment.
|
String |
getPrettySource(char indentationChar,
int indentationLevel,
int indentationSize) |
boolean |
removeChild(Node child) |
boolean |
replaceChildNode(Node oldChild,
Node newChild) |
void |
setContent(String content)
Sets the text of the comment.
|
accept, accept, check, clone, clone, clone, contains, diableConstraints, enableConstraints, equals, getBeginColumn, getBeginLine, getCommonAncestor, getConstraints, getData, getEndColumn, getEndLine, getParentNode, getPrettySource, hashCode, isAncestorOf, isInEqualLocation, isNewNode, isPreviousThan, remove, replaceChildNodeInList, setAsParentNodeOf, setAsParentNodeOf, setBeginColumn, setBeginLine, setConstraints, setData, setEndColumn, setEndLine, toString, updateReferencespublic Comment()
public Comment(String content)
public Comment(int beginLine,
int beginColumn,
int endLine,
int endColumn,
String content)
public boolean removeChild(Node child)
removeChild in class Nodepublic final String getContent()
public void setContent(String content)
content - the text of the comment to setpublic String getPrettySource(char indentationChar, int indentationLevel, int indentationSize)
getPrettySource in class Nodepublic boolean replaceChildNode(Node oldChild, Node newChild)
replaceChildNode in class Nodepublic List<Node> getChildren()
getChildren in class NodeCopyright © 2018. All rights reserved.