Class RepeaterGeometryFunction
java.lang.Object
org.locationtech.jtstest.geomfunction.RepeaterGeometryFunction
- All Implemented Interfaces:
GeometryFunction
Repeats a function a given number of times.
If the function has a single numeric argument,
the argument will be multiplied by the repeat counter for every call,
and the function results will be accumulated
into a collection to provide the final result.
- Author:
- Martin Davis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the category name of this functionGets the description of this functiongetName()Gets the name of this functionString[]Gets the parameter names for this functionClass<?>[]Gets the types of the other function arguments, if any.Class<?> Gets the return type of this functionGets a string representing the signature of this function.static booleanInvokes this function.booleanisBinary()static booleanbooleanstatic intMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GeometryFunction
equals
-
Constructor Details
-
RepeaterGeometryFunction
-
-
Method Details
-
getCategory
Description copied from interface:GeometryFunctionGets the category name of this function- Specified by:
getCategoryin interfaceGeometryFunction- Returns:
- the category name of the function
-
getName
Description copied from interface:GeometryFunctionGets the name of this function- Specified by:
getNamein interfaceGeometryFunction- Returns:
- the name of the function
-
getDescription
Description copied from interface:GeometryFunctionGets the description of this function- Specified by:
getDescriptionin interfaceGeometryFunction- Returns:
- the name of the function
-
getParameterNames
Description copied from interface:GeometryFunctionGets the parameter names for this function- Specified by:
getParameterNamesin interfaceGeometryFunction- Returns:
- the names of the function parameters
-
getParameterTypes
Description copied from interface:GeometryFunctionGets the types of the other function arguments, if any.- Specified by:
getParameterTypesin interfaceGeometryFunction- Returns:
- the types
-
getReturnType
Description copied from interface:GeometryFunctionGets the return type of this function- Specified by:
getReturnTypein interfaceGeometryFunction- Returns:
- the type of the value returned by this function
-
getSignature
Description copied from interface:GeometryFunctionGets a string representing the signature of this function.- Specified by:
getSignaturein interfaceGeometryFunction- Returns:
- the string for the function signature
-
isBinary
public boolean isBinary()- Specified by:
isBinaryin interfaceGeometryFunction
-
isRequiredB
public boolean isRequiredB()- Specified by:
isRequiredBin interfaceGeometryFunction
-
invoke
Description copied from interface:GeometryFunctionInvokes this function. Note that any exceptions returned must beRuntimeExceptions.- Specified by:
invokein interfaceGeometryFunction- Parameters:
geom- the target geometryargs- the other arguments to the function- Returns:
- the value computed by the function
-
isRepeatable
-
hasRepeatableArg
-
repeatableArgIndex
-