| Modifier and Type | Field and Description |
|---|---|
protected Node[] |
children |
Token |
firstToken |
protected int |
id |
Token |
lastToken |
protected Node |
parent |
protected CSSParser |
parser |
| Constructor and Description |
|---|
SimpleNode(CSSParser p,
int i) |
SimpleNode(int i) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(String prefix) |
SimpleNode |
getChild(int i) |
int |
getId() |
SimpleNode |
getParent() |
String |
getText() |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
|
void |
jjtClose()
This method is called after all the child nodes have been
added.
|
Node |
jjtGetChild(int i) |
int |
jjtGetNumChildren() |
Node |
jjtGetParent() |
void |
jjtOpen()
This method is called after the node has been made the current
node.
|
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its
parent.
|
String |
toString() |
String |
toString(String prefix) |
protected Node parent
protected Node[] children
protected final int id
protected CSSParser parser
public Token firstToken
public Token lastToken
public SimpleNode(int i)
public SimpleNode(CSSParser p, int i)
public int getId()
public void jjtOpen()
Nodepublic void jjtClose()
Nodepublic void jjtSetParent(Node n)
NodejjtSetParent in interface Noden - nodepublic Node jjtGetParent()
jjtGetParent in interface Nodepublic SimpleNode getParent()
public void jjtAddChild(Node n, int i)
NodejjtAddChild in interface Noden - nodei - pospublic Node jjtGetChild(int i)
jjtGetChild in interface Nodei - pospublic SimpleNode getChild(int i)
public int jjtGetNumChildren()
jjtGetNumChildren in interface Nodepublic void dump(String prefix)
public String getText()
Copyright © 2008–2018 Ultreia.io. All rights reserved.