© 2002 BEA Systems, Inc.


com.bea.p13n.expression.operator
Class Operator

java.lang.Object
  |
  +--com.bea.p13n.expression.internal.ComplexExpressionImpl
        |
        +--com.bea.p13n.expression.operator.Operator
Direct Known Subclasses:
ClassForName, ClassGetName, ClassNewInstance, CollectionOperator, ComparativeOperator, If, Instanceof, LogicalOperator, MathOperator, MethodCall, ObjectGetClass, ObjectHashCode, ObjectToString, PropertyRef, StringOperator, SystemCurrentTimeMillis, SystemGetProperty, Variable

public abstract class Operator
extends com.bea.p13n.expression.internal.ComplexExpressionImpl

Base class for all Operators in the expression package.

See Also:
Serialized Form

Constructor Summary
protected Operator()
          A default constructor that can used by multi-operand operators.
protected Operator(java.lang.Object unaryOperand)
          A constructor to be used by unary operators.
protected Operator(java.lang.Object lhs, java.lang.Object rhs)
          A constructor to be used by binary operators.
 
Method Summary
protected  java.lang.Object leftHandSide()
          Returns left hand side operand of a binary operator.
protected  java.lang.Object operand()
          Returns unary operand of an unary operator.
protected  java.lang.Object rightHandSide()
          Returns right hand side operand of a binary operator.
 
Methods inherited from class com.bea.p13n.expression.internal.ComplexExpressionImpl
accept, addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParameterSignature, 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
 

Constructor Detail

Operator

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

Operator

protected Operator(java.lang.Object unaryOperand)
A constructor to be used by unary operators.

Parameters:
unaryOperand - An operand to a unary operator.

Operator

protected Operator(java.lang.Object lhs,
                   java.lang.Object rhs)
A constructor to be used by binary operators.

Parameters:
lhs - The left hand side operand.
rhs - The right hand side operand.
Method Detail

operand

protected java.lang.Object operand()
Returns unary operand of an unary operator.

Returns:
An Object representing an operand of an unary operator.

leftHandSide

protected java.lang.Object leftHandSide()
Returns left hand side operand of a binary operator.

Returns:
An Object representing a left hand side operand of a binary operator.

rightHandSide

protected java.lang.Object rightHandSide()
Returns right hand side operand of a binary operator.

Returns:
An Object representing a right hand side operand of a binary operator.

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved