org.usergrid.persistence.query.tree
Class Operand

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
All Implemented Interfaces:
org.antlr.runtime.tree.Tree
Direct Known Subclasses:
BooleanOperand, EqualityOperand, NotOperand, WithinOperand

public abstract class Operand
extends org.antlr.runtime.tree.CommonTree

Any logical operation should subclass. Boolean logic, equality, not, contains, within and others are examples of operands

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
Operand(org.antlr.runtime.Token t)
          Default constructor to take a token
 
Method Summary
 Operand getParent()
          Get the pointer to the parent node
abstract  void visit(QueryVisitor visitor)
          Visitor method
 
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

Operand

public Operand(org.antlr.runtime.Token t)
Default constructor to take a token

Parameters:
t -
Method Detail

getParent

public Operand getParent()
Get the pointer to the parent node

Specified by:
getParent in interface org.antlr.runtime.tree.Tree
Overrides:
getParent in class org.antlr.runtime.tree.CommonTree

visit

public abstract void visit(QueryVisitor visitor)
                    throws PersistenceException
Visitor method

Parameters:
visitor -
Throws:
PersistenceException


Copyright © 2013. All Rights Reserved.