Package com.helger.css.parser
Class SimpleNode
java.lang.Object
com.helger.css.parser.SimpleNode
- All Implemented Interfaces:
Node,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voiddumpString(String s) 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.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 nodevoidjjtSetValue(Object aValue) toString()
-
Field Details
-
parent
-
children
-
id
protected int id -
value
-
parser
-
-
Constructor Details
-
SimpleNode
public SimpleNode(int i) -
SimpleNode
-
-
Method Details
-
jjtOpen
public void jjtOpen()Description copied from interface:NodeThis method is called after the node has been made the current node. It indicates that child nodes can now be added to it. -
jjtClose
public void jjtClose()Description copied from interface:NodeThis method is called after all the child nodes have been added. -
jjtSetParent
Description copied from interface:NodeSet the parent node of this node- Specified by:
jjtSetParentin interfaceNode- Parameters:
n- parent node to set
-
jjtGetParent
- Specified by:
jjtGetParentin interfaceNode- Returns:
- parent node
-
jjtAddChild
Description copied from interface:NodeThis method tells the node to add its argument to the node's list of children.- Specified by:
jjtAddChildin interfaceNode- Parameters:
n- node to add as a childi- zero-based index where to add the child
-
jjtGetChild
Description copied from interface:NodeThis method returns a child node. The children are numbered from zero, left to right.- Specified by:
jjtGetChildin interfaceNode- Parameters:
i- zero-baeed child index
-
jjtGetNumChildren
public int jjtGetNumChildren()- Specified by:
jjtGetNumChildrenin interfaceNode- Returns:
- the number of children the node has. Always ≥ 0.
-
jjtSetValue
-
jjtGetValue
-
toString
-
toString
-
dumpString
-
dump
-
getId
public int getId()
-