class ChildTextElement extends TextElement
Modifier and Type | Field and Description |
---|---|
private Node |
child |
private LexicalPreservingPrinter |
lexicalPreservingPrinter |
Constructor and Description |
---|
ChildTextElement(LexicalPreservingPrinter lexicalPreservingPrinter,
Node child) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
(package private) java.lang.String |
expand() |
(package private) Node |
getChild() |
(package private) NodeText |
getNodeTextForWrappedNode() |
int |
hashCode() |
boolean |
isChildOfClass(java.lang.Class<? extends Node> nodeClass)
Is this TextElement representing a child of the given class?
|
boolean |
isComment() |
boolean |
isNewline() |
(package private) boolean |
isNode(Node node) |
boolean |
isSpaceOrTab() |
(package private) boolean |
isToken(int tokenKind) |
boolean |
isWhiteSpace() |
java.lang.String |
toString() |
isCommentToken, isWhiteSpaceOrComment, match
private final LexicalPreservingPrinter lexicalPreservingPrinter
private final Node child
ChildTextElement(LexicalPreservingPrinter lexicalPreservingPrinter, Node child)
java.lang.String expand()
expand
in class TextElement
Node getChild()
boolean isToken(int tokenKind)
isToken
in class TextElement
boolean isNode(Node node)
isNode
in class TextElement
NodeText getNodeTextForWrappedNode()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isWhiteSpace()
isWhiteSpace
in class TextElement
public boolean isSpaceOrTab()
isSpaceOrTab
in class TextElement
public boolean isNewline()
isNewline
in class TextElement
public boolean isComment()
isComment
in class TextElement
public boolean isChildOfClass(java.lang.Class<? extends Node> nodeClass)
TextElement
isChildOfClass
in class TextElement