com.gridsystems.beanfilter
Class CollectionNode

java.lang.Object
  extended by com.gridsystems.beanfilter.EvalValue
      extended by com.gridsystems.beanfilter.EvalNode
          extended by com.gridsystems.beanfilter.CollectionNode
All Implemented Interfaces:
FilterParserConstants

public class CollectionNode
extends EvalNode
implements FilterParserConstants

Collection operations node (contains, in).

Version:
1.0
Author:
Rodrigo Ruiz

Field Summary
 
Fields inherited from class com.gridsystems.beanfilter.EvalValue
BOOLEAN, COLLECTION, NUMBER, STRING, UNKNOWN, VOID
 
Fields inherited from interface com.gridsystems.beanfilter.FilterParserConstants
ALLITEMS, AND, ANYITEMS, COMMA, CONTAINS, DEFAULT, DOT, EOF, EQ, ESCAPES, EXPONENT, FALSE, GE, GT, IDENTIFIER, IN, LBRACKET, LE, LIKE, LPAREN, LT, MATCHES, NE, NOT, NULL, NUMBER, OR, RBRACKET, RPAREN, SELECT, SIZEOF, STRING, STRING1, STRING2, THIS, tokenImage, TRUE, WHERE
 
Constructor Summary
CollectionNode(EvalValue lval, int op, EvalValue rval)
          Creates a new instance.
 
Method Summary
 boolean eval(java.lang.Object src)
          Evaluates the 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

CollectionNode

public CollectionNode(EvalValue lval,
                      int op,
                      EvalValue rval)
Creates a new instance.

Parameters:
lval - The left operand
op - The operation
rval - The right operand
Method Detail

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

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2007-2008 Grid Systems, S.A.. All Rights Reserved.