Style Intelligence v12.0

inetsoft.uql.path.expr
Class ListComparisonExpr

java.lang.Object
  extended by inetsoft.uql.path.ConditionExpression
      extended by inetsoft.uql.path.expr.Expr
          extended by inetsoft.uql.path.expr.ListComparisonExpr
All Implemented Interfaces:
Serializable

public class ListComparisonExpr
extends Expr

Compare a value with a list of values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.path.ConditionExpression
ALL, ANY, SOME
 
Constructor Summary
ListComparisonExpr(Expr expr1, Expr expr2, String op, int type)
          Create a list comparison expression.
 
Method Summary
 Object execute(XNode tree, VariableTable vars)
          Execute the expression on a data tree.
 Expr getExpression()
          Get the value expression.
 Expr[] getExpressions()
          Get the expressions used in this expr.
 Expr getListExpression()
          Get the list expression.
 String getOperator()
          Get the comparison operator.
 int getType()
          Get the comparison type, ALL or ANY.
 String[] getVariables()
          Get all variables used in the condition.
 String toString()
           
 
Methods inherited from class inetsoft.uql.path.expr.Expr
aggregate, append, booleanValue, compare, compare, doubleValue, getScalar, getScalarString, toArray, toString, toStringNot, toVector
 
Methods inherited from class inetsoft.uql.path.ConditionExpression
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ListComparisonExpr

public ListComparisonExpr(Expr expr1,
                          Expr expr2,
                          String op,
                          int type)
Create a list comparison expression.

Parameters:
expr1 - the value to compare.
expr2 - list value.
op - comparison operator.
type - a constant of ALL, ANY, or SOME.
Method Detail

getExpression

public Expr getExpression()
Get the value expression.


getOperator

public String getOperator()
Get the comparison operator.


getListExpression

public Expr getListExpression()
Get the list expression.


getType

public int getType()
Get the comparison type, ALL or ANY.


getVariables

public String[] getVariables()
Get all variables used in the condition.

Overrides:
getVariables in class Expr

execute

public Object execute(XNode tree,
                      VariableTable vars)
               throws Exception
Execute the expression on a data tree.

Specified by:
execute in class ConditionExpression
Parameters:
tree - data tree.
vars - variable table.
Throws:
Exception

getExpressions

public Expr[] getExpressions()
Get the expressions used in this expr. This is used for traversal down the expr tree.

Specified by:
getExpressions in class Expr

toString

public String toString()
Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.