public class RepeaterGeometryFunction extends java.lang.Object implements GeometryFunction
Modifier and Type | Field and Description |
---|---|
private int |
count |
private GeometryFunction |
fun |
Constructor and Description |
---|
RepeaterGeometryFunction(GeometryFunction fun,
int count) |
Modifier and Type | Method and Description |
---|---|
private java.lang.Object[] |
copyArgs(java.lang.Object[] args,
int replaceIndex,
double val) |
java.lang.String |
getCategory()
Gets the category name of this function
|
java.lang.String |
getDescription()
Gets the description of this function
|
java.lang.String |
getName()
Gets the name of this function
|
java.lang.String[] |
getParameterNames()
Gets the parameter names for this function
|
java.lang.Class[] |
getParameterTypes()
Gets the types of the other function arguments,
if any.
|
java.lang.Class |
getReturnType()
Gets the return type of this function
|
java.lang.String |
getSignature()
Gets a string representing the signature of this function.
|
java.lang.Object |
invoke(Geometry geom,
java.lang.Object[] args)
Invokes this function.
|
private java.lang.Object |
invokeRepeated(Geometry geom,
java.lang.Object[] args,
double argStart) |
boolean |
isBinary() |
static boolean |
isRepeatable(GeometryFunction fun) |
static int |
repeatableArgIndex(GeometryFunction fun) |
private java.lang.String |
repeatAnnotation() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals
private GeometryFunction fun
private int count
public RepeaterGeometryFunction(GeometryFunction fun, int count)
public java.lang.String getCategory()
GeometryFunction
getCategory
in interface GeometryFunction
public java.lang.String getName()
GeometryFunction
getName
in interface GeometryFunction
public java.lang.String getDescription()
GeometryFunction
getDescription
in interface GeometryFunction
public java.lang.String[] getParameterNames()
GeometryFunction
getParameterNames
in interface GeometryFunction
public java.lang.Class[] getParameterTypes()
GeometryFunction
getParameterTypes
in interface GeometryFunction
public java.lang.Class getReturnType()
GeometryFunction
getReturnType
in interface GeometryFunction
public java.lang.String getSignature()
GeometryFunction
getSignature
in interface GeometryFunction
private java.lang.String repeatAnnotation()
public boolean isBinary()
isBinary
in interface GeometryFunction
public java.lang.Object invoke(Geometry geom, java.lang.Object[] args)
GeometryFunction
RuntimeException
s.invoke
in interface GeometryFunction
geom
- the target geometryargs
- the other arguments to the functionpublic static boolean isRepeatable(GeometryFunction fun)
public static int repeatableArgIndex(GeometryFunction fun)
private java.lang.Object invokeRepeated(Geometry geom, java.lang.Object[] args, double argStart)
private java.lang.Object[] copyArgs(java.lang.Object[] args, int replaceIndex, double val)