net.sourceforge.esw.service.log.expression
Class CompoundAndFilterExpression

java.lang.Object
  |
  +--net.sourceforge.esw.service.log.expression.CompoundAndFilterExpression
All Implemented Interfaces:
IFilterExpression, java.io.Serializable

public class CompoundAndFilterExpression
extends java.lang.Object
implements IFilterExpression

A Default FilterExpression

This expression will always return false when evaluated... i wonder how to encode it into a string. should false be a valid string encode?

See Also:
Serialized Form

Field Summary
protected  IFilterExpression firstExp
           
protected  IFilterExpression secondExp
           
 
Constructor Summary
CompoundAndFilterExpression()
          Creates a new CompoundAndFilterExpression.
CompoundAndFilterExpression(IFilterExpression tFirst, IFilterExpression tSecond)
          Creates a new CompoundAndFilterExpression.
 
Method Summary
 boolean evaluate(INode aNode)
          Evaluates this CompoundAndFilterExpression in respect to this INode of data
 java.lang.String stringEncode()
          Encode this expression into a string form.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

firstExp

protected IFilterExpression firstExp

secondExp

protected IFilterExpression secondExp
Constructor Detail

CompoundAndFilterExpression

public CompoundAndFilterExpression(IFilterExpression tFirst,
                                   IFilterExpression tSecond)
Creates a new CompoundAndFilterExpression.

CompoundAndFilterExpression

public CompoundAndFilterExpression()
Creates a new CompoundAndFilterExpression.
Method Detail

evaluate

public boolean evaluate(INode aNode)
                 throws UncomparableExpressionObjectException
Evaluates this CompoundAndFilterExpression in respect to this INode of data

Specified by:
evaluate in interface IFilterExpression
Parameters:
infoDatum - the data to check
Returns:
boolean always returns false

stringEncode

public java.lang.String stringEncode()
Encode this expression into a string form. Just returns a 0 length string right now

Specified by:
stringEncode in interface IFilterExpression
Returns:
String this Expression in string form


Copyright 2002 Free Software Foundation. All Rights Reserved.