jrun.ejb.ejbql
Class BinaryOperatorExpression

java.lang.Object
  |
  +--jrun.ejb.ejbql.ExpressionBase
        |
        +--jrun.ejb.ejbql.BinaryOperatorExpression
All Implemented Interfaces:
Element, Expression, OperatorExpression

public class BinaryOperatorExpression
extends ExpressionBase
implements OperatorExpression

An expression composed of two expressions and a binary operator.

Author:
Enrique Duvos

Fields inherited from interface jrun.ejb.ejbql.Element
UNSPECIFIED_TRAVERSAL_ORDER
 
Constructor Summary
BinaryOperatorExpression(Expression firstExpression, Expression secondExpression, BinaryOperator operator)
           
 
Method Summary
 void accept(Visitor visitor)
           
 boolean equals(java.lang.Object other)
           
 java.util.ListIterator getChildren(int traversalType)
          Provide default implementation that returns 0 children.
 Expression getFirstExpression()
           
 java.lang.String getJavaType()
           
 Operator getOperator()
           
 java.util.Iterator getPrintStrings()
           
 Expression getSecondExpression()
           
 boolean isOperatorExpression()
           
 
Methods inherited from class jrun.ejb.ejbql.ExpressionBase
isCmpField, isCmrField, isIdentificationVar, isInputParam, isNavigationExpression
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jrun.ejb.ejbql.Expression
isCmpField, isCmrField, isIdentificationVar, isInputParam, isNavigationExpression
 

Constructor Detail

BinaryOperatorExpression

public BinaryOperatorExpression(Expression firstExpression,
                                Expression secondExpression,
                                BinaryOperator operator)
Method Detail

isOperatorExpression

public boolean isOperatorExpression()
Specified by:
isOperatorExpression in interface Expression
Overrides:
isOperatorExpression in class ExpressionBase

getOperator

public Operator getOperator()
Specified by:
getOperator in interface OperatorExpression

getFirstExpression

public Expression getFirstExpression()

getSecondExpression

public Expression getSecondExpression()

getJavaType

public java.lang.String getJavaType()
Specified by:
getJavaType in interface Expression

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Element

getChildren

public java.util.ListIterator getChildren(int traversalType)
Description copied from class: ExpressionBase
Provide default implementation that returns 0 children.
Specified by:
getChildren in interface Element
Overrides:
getChildren in class ExpressionBase

getPrintStrings

public java.util.Iterator getPrintStrings()
Specified by:
getPrintStrings in interface OperatorExpression

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object


Copyright � 2002 Macromedia Corporation. All Rights Reserved.