© 2005 BEA Systems, Inc.

com.bea.p13n.expression.operator.logical
Class LogicalOperator

java.lang.Object
  extended bycom.bea.p13n.expression.internal.ComplexExpressionImpl
      extended bycom.bea.p13n.expression.operator.Operator
          extended bycom.bea.p13n.expression.operator.logical.LogicalOperator
All Implemented Interfaces:
Cloneable, Expression, com.bea.p13n.expression.ExpressionEvents, Serializable
Direct Known Subclasses:
LogicalAnd, LogicalMultiAnd, LogicalMultiOr, LogicalNot, LogicalOr

public abstract class LogicalOperator
extends Operator

Implementation of the LogicalOperator operator. Base class for all LogicalOperators.

See Also:
Serialized Form

Field Summary
protected static Class[] BINARY_PARAMETER_SIGNATURE
           
protected static Class[] UNARY_PARAMETER_SIGNATURE
           
 
Constructor Summary
protected LogicalOperator()
          A default constructor that can used by multi-operand operators.
protected LogicalOperator(Object operand)
          Allocates a LogicalOperator by associating the given single operand.
  LogicalOperator(Object[] operands)
          Allocates a LogicalOperator by associating the given array of of operands.
protected LogicalOperator(Object lhs, Object rhs)
          Allocates a LogicalOperator by associating the given two operands.
 
Method Summary
protected static Class[] updateParameterSignature(int subExpressionCount, Class[] oldSignature)
          Returns a new parameter signature array for the given sub-expression count and old parameter signature array.
 
Methods inherited from class com.bea.p13n.expression.operator.Operator
leftHandSide, operand, rightHandSide
 
Methods inherited from class com.bea.p13n.expression.internal.ComplexExpressionImpl
addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.bea.p13n.expression.Expression
getParameterSignature
 

Field Detail

BINARY_PARAMETER_SIGNATURE

protected static final Class[] BINARY_PARAMETER_SIGNATURE

UNARY_PARAMETER_SIGNATURE

protected static final Class[] UNARY_PARAMETER_SIGNATURE
Constructor Detail

LogicalOperator

protected LogicalOperator()
A default constructor that can used by multi-operand operators.


LogicalOperator

protected LogicalOperator(Object operand)
Allocates a LogicalOperator by associating the given single operand.


LogicalOperator

public LogicalOperator(Object[] operands)
Allocates a LogicalOperator by associating the given array of of operands.


LogicalOperator

protected LogicalOperator(Object lhs,
                          Object rhs)
Allocates a LogicalOperator by associating the given two operands.

Method Detail

updateParameterSignature

protected static Class[] updateParameterSignature(int subExpressionCount,
                                                  Class[] oldSignature)
Returns a new parameter signature array for the given sub-expression count and old parameter signature array.

Parameters:
subExpressionCount - The new number of sub-expressions.
oldSignature - The Class array representing the the old parameter signature for the given operator.

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved