public abstract class FunctionBase extends java.lang.Object implements Function
Constructor and Description |
---|
FunctionBase() |
Modifier and Type | Method and Description |
---|---|
Property |
getOptionalArgDefault(int index,
PropertyInfo pi) |
int |
getOptionalArgsCount() |
PercentBase |
getPercentBase() |
protected Property |
getPropertyName(PropertyInfo pi) |
boolean |
hasVariableArgs()
Determine if function allows variable arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
eval, getRequiredArgsCount
public int getOptionalArgsCount()
getOptionalArgsCount
in interface Function
public Property getOptionalArgDefault(int index, PropertyInfo pi) throws PropertyException
getOptionalArgDefault
in interface Function
index
- of optional argumentpi
- property information instance that applies to property being evaluatedPropertyException
- if index is greater than or equal to optional args countpublic boolean hasVariableArgs()
hasVariableArgs
in interface Function
public PercentBase getPercentBase()
getPercentBase
in interface Function
protected final Property getPropertyName(PropertyInfo pi)
pi
- property information instance that applies to property being evaluatedCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.