org.usergrid.persistence.query.tree
Class EqualityOperand

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.usergrid.persistence.query.tree.Operand
              extended by org.usergrid.persistence.query.tree.EqualityOperand
All Implemented Interfaces:
org.antlr.runtime.tree.Tree
Direct Known Subclasses:
ContainsOperand, Equal, GreaterThan, GreaterThanEqual, LessThan, LessThanEqual

public abstract class EqualityOperand
extends Operand

A base class for any equality expression. Expressions must have a property and a value. Examples are >=, >, =, <, <=,

Author:
tnine

Field Summary
 
Fields inherited from class org.antlr.runtime.tree.CommonTree
childIndex, parent, startIndex, stopIndex, token
 
Fields inherited from class org.antlr.runtime.tree.BaseTree
children
 
Fields inherited from interface org.antlr.runtime.tree.Tree
INVALID_NODE
 
Constructor Summary
EqualityOperand(String propName, Literal<?> value)
           
EqualityOperand(org.antlr.runtime.Token t)
           
 
Method Summary
 Literal<?> getLiteral()
           
 Property getProperty()
           
 void setLiteral(Object value)
          Set the literal on this operand from the given value
 void setProperty(String name)
          Set the property on this operand
 
Methods inherited from class org.usergrid.persistence.query.tree.Operand
getParent, visit
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getText, getToken, getTokenStartIndex, getTokenStopIndex, getType, isNil, setChildIndex, setParent, setTokenStartIndex, setTokenStopIndex, setUnknownTokenBoundaries, toString
 
Methods inherited from class org.antlr.runtime.tree.BaseTree
addChild, addChildren, createChildrenList, deleteChild, freshenParentAndChildIndexes, freshenParentAndChildIndexes, freshenParentAndChildIndexesDeeply, freshenParentAndChildIndexesDeeply, getAncestor, getAncestors, getChild, getChildCount, getChildren, getFirstChildWithType, hasAncestor, insertChild, replaceChildren, sanityCheckParentAndChildIndexes, sanityCheckParentAndChildIndexes, setChild, toStringTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EqualityOperand

public EqualityOperand(org.antlr.runtime.Token t)
Parameters:
property -
literal -

EqualityOperand

public EqualityOperand(String propName,
                       Literal<?> value)
Method Detail

setProperty

public void setProperty(String name)
Set the property on this operand

Parameters:
name -

setLiteral

public void setLiteral(Object value)
Set the literal on this operand from the given value

Parameters:
literal -

getProperty

public Property getProperty()
Returns:
the property

getLiteral

public Literal<?> getLiteral()
Returns:
the literal


Copyright © 2013. All Rights Reserved.