Modifier and Type | Field and Description |
---|---|
private java.lang.String |
text |
Constructor and Description |
---|
Comment(java.lang.String text) |
Comment(Token token) |
Modifier and Type | Method and Description |
---|---|
Comment |
copy()
Simulate clone()
|
Comment |
createClone()
Simulate clone()
|
java.lang.String |
getText()
Get the text from the node
|
Comment |
setText(java.lang.String text)
Change the text of the node.
|
public Comment(Token token)
public Comment(java.lang.String text)
public Comment setText(java.lang.String text)
TextNode
public java.lang.String getText()
TextNode
public Comment createClone()
Node
createClone
in interface Node
createClone
in class BasicNode