com.acsinet_solutions.util.expr
Class AbstractExpression

java.lang.Object
  extended by com.acsinet_solutions.util.expr.AbstractExpression
All Implemented Interfaces:
Expression
Direct Known Subclasses:
SimpleExpression

public abstract class AbstractExpression
extends java.lang.Object
implements Expression

Abstract expression implementation

Author:
Santiago Arriaga

Constructor Summary
AbstractExpression(java.lang.String type)
          Public constructor
 
Method Summary
 java.lang.Object getExpression(int pos)
          Get the subexpression at the given position
 java.lang.String getType()
          Return the Condition type.
 int size()
          Return the expression list size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.acsinet_solutions.util.expr.Expression
getExpressions
 

Constructor Detail

AbstractExpression

public AbstractExpression(java.lang.String type)
Public constructor

Parameters:
type - A not-null not-empty String instance, typically from com.acsinet_solutions.cetia4.expr.ExpressionTypes
Method Detail

getType

public final java.lang.String getType()
Description copied from interface: Expression
Return the Condition type. Common condition types are listed in com.acsinet_solutions.util.expr.ExpressionTypes interface.

Specified by:
getType in interface Expression
Returns:
A not-null not-empty String instance

size

public final int size()
Description copied from interface: Expression
Return the expression list size

Specified by:
size in interface Expression
Returns:
A nonnegative int value

getExpression

public final java.lang.Object getExpression(int pos)
Description copied from interface: Expression
Get the subexpression at the given position

Specified by:
getExpression in interface Expression
Parameters:
pos - A nonnegative int value < size()
Returns:
A maybe-null Object instance