Esempio n. 1
0
 /**
  * Create an ASTConstant with same value as argument. *
  *
  * @throws ParseException
  */
 public ASTConstant buildConstantNode(ASTConstant node) throws ParseException {
   return buildConstantNode(node.getValue());
 }
Esempio n. 2
0
 /** Visit a constant node. The value of the constant is pushed onto the stack. */
 public Object visit(ASTConstant node, Object data) {
   stack.push(node.getValue());
   return data;
 }