org.usergrid.persistence.query.tree
Class FloatLiteral

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<Float>
              extended by org.usergrid.persistence.query.tree.FloatLiteral
All Implemented Interfaces:
org.antlr.runtime.tree.Tree, NumericLiteral

public class FloatLiteral
extends Literal<Float>
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
FloatLiteral(float f)
           
FloatLiteral(org.antlr.runtime.Token t)
           
 
Method Summary
 float getFloatValue()
          Return the value of this numeric literal as a float
 Float 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

FloatLiteral

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

FloatLiteral

public FloatLiteral(float f)
Method Detail

getValue

public Float getValue()
Specified by:
getValue in class Literal<Float>
Returns:
the value

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.