jrun.ejb.ejbql
Class UnaryOperatorExpression

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

public class UnaryOperatorExpression
extends ExpressionBase
implements OperatorExpression

An expression composed of an expression and a unary operator.

Author:
Enrique Duvos

Fields inherited from interface jrun.ejb.ejbql.Element
UNSPECIFIED_TRAVERSAL_ORDER
 
Constructor Summary
UnaryOperatorExpression(Expression expression, UnaryOperator 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 getExpression()
           
 java.lang.String getJavaType()
           
 Operator getOperator()
           
 java.util.Iterator getPrintStrings()
           
 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

UnaryOperatorExpression

public UnaryOperatorExpression(Expression expression,
                               UnaryOperator operator)
Method Detail

getExpression

public Expression getExpression()

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

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.