public class CSSNode extends Object implements Node, Iterable<CSSNode>, Serializable
| Constructor and Description |
|---|
CSSNode(int nType) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendText(String sText) |
void |
dump(String prefix) |
int |
getId() |
int |
getNodeType() |
CSSSourceLocation |
getSourceLocation() |
String |
getText() |
Object |
getValue() |
boolean |
hasText() |
Iterator<CSSNode> |
iterator() |
void |
jjtAddChild(Node aNode,
int nIndex)
Called from the highest index to the lowest index!
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
CSSNode |
jjtGetChild(int nIndex)
This method returns a child node.
|
Token |
jjtGetFirstToken() |
Token |
jjtGetLastToken() |
int |
jjtGetNumChildren()
Return the number of children the node has.
|
Node |
jjtGetParent() |
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
jjtSetFirstToken(Token aFirstToken) |
void |
jjtSetLastToken(Token aLastToken) |
void |
jjtSetParent(Node aNode)
This pair of methods are used to inform the node of its
parent.
|
void |
setText(String sText) |
void |
setValue(Object aValue) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic void jjtOpen()
Nodepublic void jjtClose()
Nodepublic void jjtSetParent(@Nullable Node aNode)
NodejjtSetParent in interface Node@Nullable public Node jjtGetParent()
jjtGetParent in interface Nodepublic void jjtAddChild(Node aNode, int nIndex)
jjtAddChild in interface Nodepublic CSSNode jjtGetChild(int nIndex)
NodejjtGetChild in interface Node@Nonnegative public int jjtGetNumChildren()
NodejjtGetNumChildren in interface Nodepublic boolean hasText()
public int getNodeType()
@Nullable public CSSSourceLocation getSourceLocation()
null if
neither begin token nor end token is present.public void dump(String prefix)
Copyright © 2014–2016 Philip Helger. All rights reserved.