com.gridsystems.beanfilter
Class OrNode
java.lang.Object
com.gridsystems.beanfilter.EvalValue
com.gridsystems.beanfilter.EvalNode
com.gridsystems.beanfilter.OrNode
public class OrNode
- extends EvalNode
OR logic operation.
- Version:
- 1.0
- Author:
- Rodrigo Ruiz
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OrNode
public OrNode(Token token,
EvalValue lnode,
EvalValue rnode)
- Creates a new instance.
- Parameters:
lnode
- Left operandrnode
- Right operandtoken
- The token
getLeftNode
public EvalNode getLeftNode()
- Gets the left node.
- Returns:
- The left node
getRightNode
public EvalNode getRightNode()
- Gets the right node.
- Returns:
- The right node
toString
public java.lang.String toString()
-
- Overrides:
toString
in class java.lang.Object
eval
public boolean eval(java.lang.Object src)
throws EvalException
- Evaluates the node.
- Specified by:
eval
in class EvalNode
- Parameters:
src
- Data source, for dynamic nodes
- Returns:
true
if src makes true the node
- Throws:
EvalException
- If an error occurs
Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.