org.apache.uima.ruta.example.extensions
Class ExampleNumberFunction

java.lang.Object
  extended by org.apache.uima.ruta.RutaElement
      extended by org.apache.uima.ruta.expression.RutaExpression
          extended by org.apache.uima.ruta.expression.string.AbstractStringExpression
              extended by org.apache.uima.ruta.expression.number.AbstractNumberExpression
                  extended by org.apache.uima.ruta.expression.number.NumberFunctionExpression
                      extended by org.apache.uima.ruta.example.extensions.ExampleNumberFunction
All Implemented Interfaces:
org.apache.uima.ruta.expression.IRutaExpression, org.apache.uima.ruta.expression.number.INumberExpression, org.apache.uima.ruta.expression.string.IStringExpression

public class ExampleNumberFunction
extends org.apache.uima.ruta.expression.number.NumberFunctionExpression


Constructor Summary
ExampleNumberFunction(org.apache.uima.ruta.expression.type.TypeExpression expr)
           
 
Method Summary
 double getDoubleValue(org.apache.uima.ruta.RutaBlock parent, org.apache.uima.cas.text.AnnotationFS annotation, org.apache.uima.ruta.RutaStream stream)
           
 org.apache.uima.ruta.expression.type.TypeExpression getExpr()
           
 float getFloatValue(org.apache.uima.ruta.RutaBlock parent, org.apache.uima.cas.text.AnnotationFS annotation, org.apache.uima.ruta.RutaStream stream)
           
 int getIntegerValue(org.apache.uima.ruta.RutaBlock parent, org.apache.uima.cas.text.AnnotationFS annotation, org.apache.uima.ruta.RutaStream stream)
           
 String getStringValue(org.apache.uima.ruta.RutaBlock parent, org.apache.uima.cas.text.AnnotationFS annotation, org.apache.uima.ruta.RutaStream stream)
           
 
Methods inherited from class org.apache.uima.ruta.expression.number.AbstractNumberExpression
calculate, calculate, calculate, getDoubleValue, getFloatValue, getIntegerValue
 
Methods inherited from class org.apache.uima.ruta.expression.string.AbstractStringExpression
getStringValue
 
Methods inherited from class org.apache.uima.ruta.expression.RutaExpression
getTargetAnnotation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.uima.ruta.expression.string.IStringExpression
getStringValue
 

Constructor Detail

ExampleNumberFunction

public ExampleNumberFunction(org.apache.uima.ruta.expression.type.TypeExpression expr)
Method Detail

getExpr

public org.apache.uima.ruta.expression.type.TypeExpression getExpr()

getStringValue

public String getStringValue(org.apache.uima.ruta.RutaBlock parent,
                             org.apache.uima.cas.text.AnnotationFS annotation,
                             org.apache.uima.ruta.RutaStream stream)
Specified by:
getStringValue in interface org.apache.uima.ruta.expression.string.IStringExpression
Specified by:
getStringValue in class org.apache.uima.ruta.expression.string.AbstractStringExpression

getIntegerValue

public int getIntegerValue(org.apache.uima.ruta.RutaBlock parent,
                           org.apache.uima.cas.text.AnnotationFS annotation,
                           org.apache.uima.ruta.RutaStream stream)

getDoubleValue

public double getDoubleValue(org.apache.uima.ruta.RutaBlock parent,
                             org.apache.uima.cas.text.AnnotationFS annotation,
                             org.apache.uima.ruta.RutaStream stream)

getFloatValue

public float getFloatValue(org.apache.uima.ruta.RutaBlock parent,
                           org.apache.uima.cas.text.AnnotationFS annotation,
                           org.apache.uima.ruta.RutaStream stream)


Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.