com.gridsystems.beanfilter
Class AndNode

java.lang.Object
  extended by com.gridsystems.beanfilter.EvalValue
      extended by com.gridsystems.beanfilter.EvalNode
          extended by com.gridsystems.beanfilter.AndNode

public class AndNode
extends EvalNode

AND operation node.

Version:
1.0
Author:
Rodrigo Ruiz, Xmas

Field Summary
 
Fields inherited from class com.gridsystems.beanfilter.EvalValue
BOOLEAN, COLLECTION, NUMBER, STRING, UNKNOWN, VOID
 
Constructor Summary
AndNode(Token token, EvalValue lnode, EvalValue rnode)
          Creates a new instance.
 
Method Summary
 boolean eval(java.lang.Object src)
          Evaluates the node.
 EvalNode getLeftValue()
          Gets the left node.
 EvalNode getRightNode()
          Gets the right node.
 java.lang.String toString()
          
 
Methods inherited from class com.gridsystems.beanfilter.EvalNode
getClassValue, getValue
 
Methods inherited from class com.gridsystems.beanfilter.EvalValue
getCharPos, getLinePos
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AndNode

public AndNode(Token token,
               EvalValue lnode,
               EvalValue rnode)
Creates a new instance.

Parameters:
token - Token of AND expression
lnode - The left operand
rnode - The right operand
Method Detail

getLeftValue

public EvalNode getLeftValue()
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.