org.usergrid.persistence.query.tree
Class LongLiteral

java.lang.Object
  extended by org.antlr.runtime.tree.BaseTree
      extended by org.antlr.runtime.tree.CommonTree
          extended by org.usergrid.persistence.query.tree.Literal<Long>
              extended by org.usergrid.persistence.query.tree.LongLiteral
All Implemented Interfaces:
org.antlr.runtime.tree.Tree, NumericLiteral

public class LongLiteral
extends Literal<Long>
implements NumericLiteral

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
LongLiteral(long value)
           
LongLiteral(org.antlr.runtime.Token t)
           
 
Method Summary
 float getFloatValue()
          Return the value of this numeric literal as a float
 Long getValue()
           
 
Methods inherited from class org.antlr.runtime.tree.CommonTree
dupNode, getCharPositionInLine, getChildIndex, getLine, getParent, 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

LongLiteral

public LongLiteral(org.antlr.runtime.Token t)
Parameters:
t -

LongLiteral

public LongLiteral(long value)
Parameters:
value -
Method Detail

getValue

public Long getValue()
Specified by:
getValue in class Literal<Long>
Returns:

getFloatValue

public float getFloatValue()
Description copied from interface: NumericLiteral
Return the value of this numeric literal as a float

Specified by:
getFloatValue in interface NumericLiteral
Returns:


Copyright © 2013. All Rights Reserved.