Package org.apache.fop.fo.expr
Class AbsFunction
- java.lang.Object
-
- org.apache.fop.fo.expr.FunctionBase
-
- org.apache.fop.fo.expr.AbsFunction
-
- All Implemented Interfaces:
Function
public class AbsFunction extends FunctionBase
Class modelling the abs Number Function. See Sec. 5.10.1 of the XSL-FO spec.
-
-
Constructor Summary
Constructors Constructor Description AbsFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Property
eval(Property[] args, PropertyInfo propInfo)
Evaluate the functionint
getRequiredArgsCount()
-
Methods inherited from class org.apache.fop.fo.expr.FunctionBase
getOptionalArgDefault, getOptionalArgsCount, getPercentBase, getPropertyName, hasVariableArgs
-
-
-
-
Method Detail
-
getRequiredArgsCount
public int getRequiredArgsCount()
- Returns:
- the number of required (non-optional) arguments that must be specified in the argument list
-
eval
public Property eval(Property[] args, PropertyInfo propInfo) throws PropertyException
Evaluate the function- Parameters:
args
- an array of Properties that should be evaluatedpropInfo
- property information instance that applies to property being evaluated- Returns:
- the Property satisfying the function
- Throws:
PropertyException
- for problems when evaluating the function
-
-