Class SpreaderGeometryFunction
- java.lang.Object
-
- org.locationtech.jtstest.geomfunction.SpreaderGeometryFunction
-
- All Implemented Interfaces:
GeometryFunction
public class SpreaderGeometryFunction extends Object implements GeometryFunction
-
-
Constructor Summary
Constructors Constructor Description SpreaderGeometryFunction(GeometryFunction fun, boolean eachA, boolean eachB)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()Gets the category name of this functionStringgetDescription()Gets the description of this functionStringgetName()Gets the name of this functionString[]getParameterNames()Gets the parameter names for this functionClass<?>[]getParameterTypes()Gets the types of the other function arguments, if any.Class<?>getReturnType()Gets the return type of this functionStringgetSignature()Gets a string representing the signature of this function.Objectinvoke(Geometry geom, Object[] args)Invokes this function.booleanisBinary()booleanisRequiredB()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.locationtech.jtstest.geomfunction.GeometryFunction
equals
-
-
-
-
Constructor Detail
-
SpreaderGeometryFunction
public SpreaderGeometryFunction(GeometryFunction fun, boolean eachA, boolean eachB)
-
-
Method Detail
-
getCategory
public String getCategory()
Description copied from interface:GeometryFunctionGets the category name of this function- Specified by:
getCategoryin interfaceGeometryFunction- Returns:
- the category name of the function
-
getName
public String getName()
Description copied from interface:GeometryFunctionGets the name of this function- Specified by:
getNamein interfaceGeometryFunction- Returns:
- the name of the function
-
getDescription
public String getDescription()
Description copied from interface:GeometryFunctionGets the description of this function- Specified by:
getDescriptionin interfaceGeometryFunction- Returns:
- the name of the function
-
getParameterNames
public String[] getParameterNames()
Description copied from interface:GeometryFunctionGets the parameter names for this function- Specified by:
getParameterNamesin interfaceGeometryFunction- Returns:
- the names of the function parameters
-
getParameterTypes
public Class<?>[] getParameterTypes()
Description copied from interface:GeometryFunctionGets the types of the other function arguments, if any.- Specified by:
getParameterTypesin interfaceGeometryFunction- Returns:
- the types
-
getReturnType
public Class<?> 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
public String 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
public Object invoke(Geometry geom, Object[] args)
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
-
-