com.acsinet_solutions.util.expr
Interface Expression

All Known Implementing Classes:
AbstractExpression, SimpleExpression

public interface Expression

Object representation of a generic expression.

Expressions include simple and composite conditions, functions, aggregates and operators.

Author:
Santiago Arriaga

Method Summary
 java.lang.Object getExpression(int pos)
          Get the subexpression at the given position
 java.util.List<java.lang.Object> getExpressions()
          Return a copy of the expressions that are operated by this condition.
 java.lang.String getType()
          Return the Condition type.
 int size()
          Return the expression list size
 

Method Detail

getType

java.lang.String getType()
Return the Condition type. Common condition types are listed in com.acsinet_solutions.util.expr.ExpressionTypes interface.

Returns:
A not-null not-empty String instance

getExpressions

java.util.List<java.lang.Object> getExpressions()
Return a copy of the expressions that are operated by this condition.

Returns:
A not-null maybe-empty immutable List of java.lang.Object instances.

size

int size()
Return the expression list size

Returns:
A nonnegative int value

getExpression

java.lang.Object getExpression(int pos)
Get the subexpression at the given position

Parameters:
pos - A nonnegative int value < size()
Returns:
A maybe-null Object instance