Interface GeometryFunction
- All Known Implementing Classes:
BaseGeometryFunction, StaticMethodGeometryFunction
public interface GeometryFunction
A reification of a function which can be executed on a
Geometry, possibly with other arguments.
The function may return a Geometry or a scalar value.- Author:
- Martin Davis
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTwo functions are the same if they have the same name, parameter types and return type.getName()Gets the name of this functionString[]Gets the parameter names for this functionClass[]Gets the types of the other function arguments, if any.Gets the return type of this functionInvokes this function.booleanisBinary()
-
Method Details
-
getName
-
getParameterNames
String[] getParameterNames()Gets the parameter names for this function- Returns:
- the names of the function parameters
-
getParameterTypes
Class[] getParameterTypes()Gets the types of the other function arguments, if any.- Returns:
- the types
-
getReturnType
Class getReturnType()Gets the return type of this function- Returns:
- the type of the value returned by this function
-
invoke
Invokes this function. Note that any exceptions returned must beRuntimeExceptions.- Parameters:
geom- the target geometryargs- the other arguments to the function- Returns:
- the value computed by the function
-
equals
-
isBinary
boolean isBinary()
-