org.datanucleus.query.expression
Class Expression.Operator

java.lang.Object
  extended by org.datanucleus.query.expression.Expression.Operator
Direct Known Subclasses:
Expression.DyadicOperator, Expression.MonadicOperator
Enclosing class:
Expression

public static class Expression.Operator
extends java.lang.Object

Representation of an Operator.


Field Summary
protected  int precedence
           
protected  java.lang.String symbol
           
 
Constructor Summary
Expression.Operator(java.lang.String symbol, int precedence)
          Operator
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

symbol

protected final java.lang.String symbol

precedence

protected final int precedence
Constructor Detail

Expression.Operator

public Expression.Operator(java.lang.String symbol,
                           int precedence)
Operator

Parameters:
symbol - the source text or symbol of an operator. e.g =, ==, +, /, >, <, etc
precedence - the order of precedence where the expression is compiled
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.