/** * @see org.apache.velocity.runtime.parser.node.SimpleNode#value(org.apache.velocity.context.InternalContextAdapter) */ public Object value(InternalContextAdapter context) throws MethodInvocationException { return evaluate(context) ? Boolean.TRUE : Boolean.FALSE; } }
/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTEQNode, java.lang.Object) */ public Object visit(ASTEQNode node, Object data) { data = node.childrenAccept(this, data); return data; }
throws MethodInvocationException Object left = jjtGetChild(0).value(context); Object right = jjtGetChild(1).value(context); log.debug("Both right (" + getLiteral(false) + " and left " + getLiteral(true) + " sides of '==' operation returned null." + "If references, they may not be in the context." + getLocation(context)); + " side (" + getLiteral(left == null) + ") of '==' operation has null value. If it is a " + "reference, it may not be in the context or its " + "toString() returned null. " + getLocation(context));
case LOGICAL_EQUALS: jj_consume_token(LOGICAL_EQUALS); ASTEQNode jjtn001 = new ASTEQNode(this, JJTEQNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001);
private String getLiteral(boolean left) { return jjtGetChild(left ? 0 : 1).literal(); }
throws MethodInvocationException Object left = jjtGetChild(0).value(context); Object right = jjtGetChild(1).value(context); log.debug("Both right (" + getLiteral(false) + " and left " + getLiteral(true) + " sides of '==' operation returned null." + "If references, they may not be in the context." + getLocation(context)); + " side (" + getLiteral(left == null) + ") of '==' operation has null value. If it is a " + "reference, it may not be in the context or its " + "toString() returned null. " + getLocation(context));
case LOGICAL_EQUALS: jj_consume_token(LOGICAL_EQUALS); ASTEQNode jjtn001 = new ASTEQNode(this, JJTEQNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001);
private String getLiteral(boolean left) { return jjtGetChild(left ? 0 : 1).literal(); }
/** * {@inheritDoc} */ @Override public boolean evaluate(InternalContextAdapter context) throws MethodInvocationException { return !super.evaluate(context); }
case LOGICAL_EQUALS: jj_consume_token(LOGICAL_EQUALS); ASTEQNode jjtn001 = new ASTEQNode(this, JJTEQNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001);
/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTEQNode, java.lang.Object) */ public Object visit(ASTEQNode node, Object data) { data = node.childrenAccept(this, data); return data; }
public Object value(InternalContextAdapter context) throws MethodInvocationException { boolean val = evaluate(context); return val ? Boolean.TRUE : Boolean.FALSE; }
case LOGICAL_EQUALS: jj_consume_token(LOGICAL_EQUALS); ASTEQNode jjtn001 = new ASTEQNode(this, JJTEQNODE); boolean jjtc001 = true; jjtree.openNodeScope(jjtn001);
/** * @see org.apache.velocity.runtime.parser.node.ParserVisitor#visit(org.apache.velocity.runtime.parser.node.ASTEQNode, java.lang.Object) */ public Object visit(ASTEQNode node, Object data) { data = node.childrenAccept(this, data); return data; }
/** * @see org.apache.velocity.runtime.parser.node.SimpleNode#value(org.apache.velocity.context.InternalContextAdapter) */ public Object value(InternalContextAdapter context) throws MethodInvocationException { return evaluate(context) ? Boolean.TRUE : Boolean.FALSE; } }