Package com.helger.css.parser
Interface Node
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CSSNode,SimpleNode
-
Method Summary
Modifier and TypeMethodDescriptionintgetId()voidjjtAddChild(Node n, int i) This method tells the node to add its argument to the node's list of children.voidjjtClose()This method is called after all the child nodes have been added.jjtGetChild(int i) This method returns a child node.intvoidjjtOpen()This method is called after the node has been made the current node.voidjjtSetParent(Node n) Set the parent node of this node
-
Method Details
-
jjtOpen
void jjtOpen()This method is called after the node has been made the current node. It indicates that child nodes can now be added to it. -
jjtClose
void jjtClose()This method is called after all the child nodes have been added. -
jjtSetParent
Set the parent node of this node- Parameters:
n- parent node to set
-
jjtGetParent
Node jjtGetParent()- Returns:
- parent node
-
jjtAddChild
This method tells the node to add its argument to the node's list of children.- Parameters:
n- node to add as a childi- zero-based index where to add the child
-
jjtGetChild
This method returns a child node. The children are numbered from zero, left to right.- Parameters:
i- zero-baeed child index
-
jjtGetNumChildren
int jjtGetNumChildren()- Returns:
- the number of children the node has. Always ≥ 0.
-
getId
int getId()
-