Package com.helger.css.parser
Interface Node
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CSSNode,SimpleNode
public interface Node extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetId()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.NodejjtGetChild(int i)This method returns a child node.intjjtGetNumChildren()NodejjtGetParent()voidjjtOpen()This method is called after the node has been made the current node.voidjjtSetParent(Node n)Set the parent node of this node
-
-
-
Method Detail
-
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
void jjtSetParent(Node n)
Set the parent node of this node- Parameters:
n- parent node to set
-
jjtGetParent
Node jjtGetParent()
- Returns:
- parent node
-
jjtAddChild
void jjtAddChild(Node n, int i)
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
Node jjtGetChild(int i)
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()
-
-