Methods Summary |
---|
void | clearNodeScope(com.sun.el.parser.Node n)
while (sp > mk) {
popNode();
}
mk = ((Integer)marks.pop()).intValue();
|
void | closeNodeScope(com.sun.el.parser.Node n, int num)
mk = ((Integer)marks.pop()).intValue();
while (num-- > 0) {
Node c = popNode();
c.jjtSetParent(n);
n.jjtAddChild(c, num);
}
n.jjtClose();
pushNode(n);
node_created = true;
|
void | closeNodeScope(com.sun.el.parser.Node n, boolean condition)
if (condition) {
int a = nodeArity();
mk = ((Integer)marks.pop()).intValue();
while (a-- > 0) {
Node c = popNode();
c.jjtSetParent(n);
n.jjtAddChild(c, a);
}
n.jjtClose();
pushNode(n);
node_created = true;
} else {
mk = ((Integer)marks.pop()).intValue();
node_created = false;
}
|
int | nodeArity()
return sp - mk;
|
boolean | nodeCreated()
return node_created;
|
void | openNodeScope(com.sun.el.parser.Node n)
marks.push(Integer.valueOf(mk));
mk = sp;
n.jjtOpen();
|
com.sun.el.parser.Node | peekNode()
return (Node)nodes.peek();
|
com.sun.el.parser.Node | popNode()
if (--sp < mk) {
mk = ((Integer)marks.pop()).intValue();
}
return (Node)nodes.pop();
|
void | pushNode(com.sun.el.parser.Node n)
nodes.push(n);
++sp;
|
void | reset()
nodes.removeAllElements();
marks.removeAllElements();
sp = 0;
mk = 0;
|
com.sun.el.parser.Node | rootNode()
return (Node)nodes.elementAt(0);
|