org.jfree.formula.function
Interface FunctionDescription
- AbsFunctionDescription, AbstractFunctionDescription, AndFunctionDescription, AverageFunctionDescription, ChooseFunctionDescription, DateDifFunctionDescription, DateFunctionDescription, DateValueFunctionDescription, DayFunctionDescription, DefaultFunctionDescription, EvenFunctionDescription, ExactFunctionDescription, FalseFunctionDescription, FindFunctionDescription, HasChangedFunctionDescription, HourFunctionDescription, IfFunctionDescription, IntFunctionDescription, IsBlankFunctionDescription, IsErrFunctionDescription, IsErrorFunctionDescription, IsEvenFunctionDescription, IsLogicalFunctionDescription, IsNaFunctionDescription, IsNonTextFunctionDescription, IsNumberFunctionDescription, IsOddFunctionDescription, IsRefFunctionDescription, IsTextFunctionDescription, LeftFunctionDescription, LenFunctionDescription, LowerFunctionDescription, MappedFunctionDescription, MidFunctionDescription, MonthFunctionDescription, NaFunctionDescription, NotFunctionDescription, NowFunctionDescription, NullFunctionDescription, OddFunctionDescription, OrFunctionDescription, ReplaceFunctionDescription, ReptFunctionDescription, RightFunctionDescription, SubstituteFunctionDescription, SumFunctionDescription, TextFunctionDescription, TFunctionDescription, TimeFunctionDescription, TodayFunctionDescription, TrimFunctionDescription, TrueFunctionDescription, UpperFunctionDescription, URLEncodeFunctionDescription, WeekDayFunctionDescription, XorFunctionDescription, YearFunctionDescription
A static definition of the function's parameters, return values etc.
This is a support class with emphasis on GUI tools.
However, the parameter declarations are also used when filling in the
parameter values.
Functions have a defined set of known parameters and can have a unlimited
number of optional parameters. If a function declares at least one parameter
and declares that its parameter list is infinite, then the last parameter
type is used on all remaining parameters.
getDefaultValue
public Object getDefaultValue(int position)
Returns the default value for an optional parameter. If the value returned
here is null, then this either means, that the parameter is mandatory or
that the default value is computed by the expression itself.
getParameterType
public Type getParameterType(int position)
Returns the parameter type at the given position using the function
metadata. The first parameter is at the position 0;
position
- The parameter index.
isParameterMandatory
public boolean isParameterMandatory(int position)
Defines, whether the parameter at the given position is mandatory. A
mandatory parameter must be filled in, while optional parameters need
not to be filled in.