org.apache.expreval.expr.function
Class GenericFunction
java.lang.Object
org.apache.expreval.expr.GenericExpression
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
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 |
GenericFunction
public GenericFunction(GenericFunction.FunctionType functionType,
List<GenericValue> exprs)
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.