private void findReferences(List references, Node node) { if (node instanceof ASTReference) { references.add(node); } int childCount = node.jjtGetNumChildren(); for (int i = 0; i < childCount; i++) { findReferences(references, node.jjtGetChild(i)); } }
public void closeNodeScope(Node n, int num) { mk = marks.remove(marks.size()-1); while (num-- > 0) { Node c = popNode(); c.jjtSetParent(n); n.jjtAddChild(c, num); } n.jjtClose(); pushNode(n); node_created = true; }
public void openNodeScope(Node n) { marks.add(mk); mk = sp; n.jjtOpen(); }
if (0 < newChild.jjtGetNumChildren()) { newNode.jjtAddChild(newChild, newIndex); newIndex++;
/** {@inheritDoc} */ public Object visit(ASTWhileStatement node, Object data) { Object result = null; /* first objectNode is the expression */ Node expressionNode = node.jjtGetChild(0); while (arithmetic.toBoolean(expressionNode.jjtAccept(this, data))) { if (isCancelled()) { throw new JexlException.Cancel(node); } // execute statement if (node.jjtGetNumChildren() > 1) { result = node.jjtGetChild(1).jjtAccept(this, data); } } return result; }
if (0 < newChild.jjtGetNumChildren()) { node.jjtAddChild(newChild, newIndex); newIndex++;
private void findReferences(List references, Node node) { if (node instanceof ASTReference) { references.add(node); } int childCount = node.jjtGetNumChildren(); for (int i = 0; i < childCount; i++) { findReferences(references, node.jjtGetChild(i)); } }
if (0 < newChild.jjtGetNumChildren()) { node.jjtAddChild(newChild, newIndex); newIndex++;
public void closeNodeScope(Node n, boolean condition) { if (condition) { int a = nodeArity(); mk = marks.remove(marks.size()-1); while (a-- > 0) { Node c = popNode(); c.jjtSetParent(n); n.jjtAddChild(c, a); } n.jjtClose(); pushNode(n); node_created = true; } else { mk = marks.remove(marks.size()-1); node_created = false; } } }
private void findReferences(List references, Node node) { if (node instanceof ASTReference) { references.add(node); } int childCount = node.jjtGetNumChildren(); for (int i = 0; i < childCount; i++) { findReferences(references, node.jjtGetChild(i)); } }
if (0 < newChild.jjtGetNumChildren()) { newNode.jjtAddChild(newChild, newIndex); newIndex++;
private String findCollectionProperties(JexlContext jexlContext, Node node) { int childCount = node.jjtGetNumChildren(); Node child; String subExpr = null; child = node.jjtGetChild(i); if (child instanceof ASTIdentifier) { ASTIdentifier ident = (ASTIdentifier) child;
if (0 < newChild.jjtGetNumChildren()) { newNode.jjtAddChild(newChild, newIndex); newIndex++;
private String findCollectionProperties(JexlContext jexlContext, Node node) { int childCount = node.jjtGetNumChildren(); Node child; String subExpr = null; child = node.jjtGetChild(i); if (child instanceof ASTIdentifier) { ASTIdentifier ident = (ASTIdentifier) child;
if (0 < newChild.jjtGetNumChildren()) { newNode.jjtAddChild(newChild, newIndex); newIndex++;
private String findCollectionProperties(JexlContext jexlContext, Node node) { int childCount = node.jjtGetNumChildren(); Node child; String subExpr = null; child = node.jjtGetChild(i); if (child instanceof ASTIdentifier) { ASTIdentifier ident = (ASTIdentifier) child;