org.apache.expreval.expr.function
Class GenericFunction

java.lang.Object
  extended by org.apache.expreval.expr.GenericExpression
      extended by org.apache.expreval.expr.function.GenericFunction
All Implemented Interfaces:
Serializable, GenericValue
Direct Known Subclasses:
BooleanFunction, DateFunction, NumberFunction, StringFunction

public abstract class GenericFunction
extends GenericExpression

See Also:
Serialized Form

Nested Class Summary
static class GenericFunction.FunctionType
           
 
Field Summary
 
Fields inherited from interface org.apache.expreval.expr.node.GenericValue
serialVersionUID
 
Constructor Summary
GenericFunction(GenericFunction.FunctionType functionType, List<GenericValue> exprs)
           
 
Method Summary
 String asString()
           
protected  String getFunctionName()
           
protected  GenericFunction.FunctionType getFunctionType()
           
 GenericValue getOptimizedValue()
           
protected  FunctionTypeSignature getTypeSignature()
           
 boolean isAConstant()
           
 boolean isAnAggregateValue()
           
protected  boolean isConstantDate()
           
protected  boolean isIntervalDate()
           
 Class<? extends GenericValue> validateTypes(GenericValue parentExpr, boolean allowCollections)
           
 
Methods inherited from class org.apache.expreval.expr.GenericExpression
applyResultToAggregateValue, getConstantValue, getExprArg, getExpressionContext, getFilter, getGenericValueClass, getGenericValueList, getInvalidTypeMsg, getSubArgs, getValueWithCast, getValueWithCast, hasAColumnReference, initAggregateValue, isAColumnReference, isDefaultKeyword, newSingleColumnValueFilter, optimizeAllArgs, reset, setArg, setExpressionContext, useDecimal, validateNumericArgTypes, validateNumericTypes, validateParentClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.expreval.expr.node.GenericValue
getValue
 

Constructor Detail

GenericFunction

public GenericFunction(GenericFunction.FunctionType functionType,
                       List<GenericValue> exprs)
Method Detail

getFunctionType

protected GenericFunction.FunctionType getFunctionType()

getTypeSignature

protected FunctionTypeSignature getTypeSignature()
Overrides:
getTypeSignature in class GenericExpression

isIntervalDate

protected boolean isIntervalDate()

isAnAggregateValue

public boolean isAnAggregateValue()
Specified by:
isAnAggregateValue in interface GenericValue
Overrides:
isAnAggregateValue in class GenericExpression

isConstantDate

protected boolean isConstantDate()

isAConstant

public boolean isAConstant()
Specified by:
isAConstant in interface GenericValue
Overrides:
isAConstant in class GenericExpression

validateTypes

public Class<? extends GenericValue> validateTypes(GenericValue parentExpr,
                                                   boolean allowCollections)
                                            throws HBqlException
Specified by:
validateTypes in interface GenericValue
Overrides:
validateTypes in class GenericExpression
Throws:
HBqlException

getFunctionName

protected String getFunctionName()

getOptimizedValue

public GenericValue getOptimizedValue()
                               throws HBqlException
Specified by:
getOptimizedValue in interface GenericValue
Overrides:
getOptimizedValue in class GenericExpression
Throws:
HBqlException

asString

public String asString()
Specified by:
asString in interface GenericValue
Overrides:
asString in class GenericExpression


Copyright © 2011. All Rights Reserved.