Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.query.sql.model
Class Expression

java.lang.Object
  extended by org.nuxeo.ecm.core.query.sql.model.Expression
All Implemented Interfaces:
Serializable, ASTNode, Operand
Direct Known Subclasses:
Predicate

public class Expression
extends Object
implements Operand

An infix expression.

Author:
Bogdan Stefanescu
See Also:
Serialized Form

Field Summary
 Operand lvalue
           
 Operator operator
           
 Operand rvalue
           
 
Constructor Summary
Expression(Operand lvalue, Operator operator, Operand rvalue)
           
 
Method Summary
 void accept(IVisitor visitor)
          Accept the given visitor.
 boolean equals(Object obj)
           
 int hashCode()
           
 boolean isPathExpression()
           
 boolean isSuffix()
          Is the unary operator pretty-printed after the operand?
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

operator

public final Operator operator

lvalue

public final Operand lvalue

rvalue

public final Operand rvalue
Constructor Detail

Expression

public Expression(Operand lvalue,
                  Operator operator,
                  Operand rvalue)
Method Detail

accept

public void accept(IVisitor visitor)
Description copied from interface: ASTNode
Accept the given visitor.

Specified by:
accept in interface ASTNode
Parameters:
visitor - the AST node visitor

isSuffix

public boolean isSuffix()
Is the unary operator pretty-printed after the operand?


toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isPathExpression

public boolean isPathExpression()

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.