public class FunctionNameImpl extends OperatorImpl implements FunctionName
Constructor and Description |
---|
FunctionNameImpl(FunctionName copy) |
FunctionNameImpl(Name name,
Class<?> returnType,
Parameter<?>... arguments) |
FunctionNameImpl(Name name,
int argumentCount) |
FunctionNameImpl(Name name,
int argumentCount,
List<String> argumentsNames) |
FunctionNameImpl(Name name,
int argumentCount,
String... argumentsNames) |
FunctionNameImpl(Name name,
List<String> argumentsNames) |
FunctionNameImpl(Name name,
Parameter<?> retern,
List<Parameter<?>> arguments) |
FunctionNameImpl(Name name,
Parameter<?> retern,
Parameter<?>... arguments) |
FunctionNameImpl(Name name,
String... argumentsNames) |
FunctionNameImpl(String name,
Class<?> returnType,
Parameter<?>... arguments) |
FunctionNameImpl(String name,
int argumentCount) |
FunctionNameImpl(String name,
int argumentCount,
List<String> argumentsNames) |
FunctionNameImpl(String name,
int argumentCount,
String... argumentsNames) |
FunctionNameImpl(String name,
List<String> argumentsNames) |
FunctionNameImpl(String name,
Parameter<?> retern,
List<Parameter<?>> arguments) |
FunctionNameImpl(String name,
Parameter<?> retern,
Parameter<?>... arguments) |
FunctionNameImpl(String name,
String... argumentsNames) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Equals should be implemented simply in terms of getName()
|
int |
getArgumentCount()
Number of arguments the function accepts.
|
List<String> |
getArgumentNames()
Optional ArgumentNames.
|
List<Parameter<?>> |
getArguments()
Arguments for the function accepts.
|
Name |
getFunctionName()
The qualified name of the function.
|
String |
getName()
Name of supported Operator.
|
Parameter<?> |
getReturn()
Return type of the function.
|
int |
hashCode()
HashCode should be implemented simply in terms of getName().
|
static <T> Parameter<T> |
parameter(String name,
Class<T> type)
Named parameter (argument or result).
|
static <T> Parameter<T> |
parameter(String name,
Class<T> type,
int min,
int max)
Named parameter (argument or result).
|
static <T> Parameter<T> |
parameter(String name,
Class<T> type,
String title,
String description) |
setName, toString
public FunctionNameImpl(String name, int argumentCount)
public FunctionNameImpl(Name name, int argumentCount)
public FunctionNameImpl(String name, int argumentCount, List<String> argumentsNames)
public FunctionNameImpl(FunctionName copy)
public FunctionNameImpl(String name, Class<?> returnType, Parameter<?>... arguments)
public FunctionNameImpl(String name, Parameter<?> retern, Parameter<?>... arguments)
public FunctionNameImpl(String name, Parameter<?> retern, List<Parameter<?>> arguments)
public Name getFunctionName()
FunctionName
Client code should this method over Operator.getName()
to handle qualified names.
getFunctionName
in interface FunctionName
public String getName()
Operator
Each filter subclass has an associated name (such as BBOX or EqualsTo), you can use this name to determine if a matching Operator is defined as part of FilterCapabilities.
getName
in interface Operator
getName
in class OperatorImpl
public int getArgumentCount()
FunctionName
add( number1, number2 ) = 2
concat( str1, str2,... ) has -2
<xsd:attribute name="nArgs" type="xsd:string" use="required"/>
This value is derived from FunctionName.getArguments()
getArgumentCount
in interface FunctionName
public List<Parameter<?>> getArguments()
FunctionName
getArguments
in interface FunctionName
public Parameter<?> getReturn()
FunctionName
getReturn
in interface FunctionName
public int hashCode()
Operator
hashCode
in interface Operator
hashCode
in class OperatorImpl
public boolean equals(Object obj)
Operator
equals
in interface Operator
equals
in class OperatorImpl
public List<String> getArgumentNames()
This is a fixed length list the same size as getArgumentCount().
getArgumentNames
in interface FunctionName
public static <T> Parameter<T> parameter(String name, Class<T> type)
name
- name of parametertype
- type of parameterpublic static <T> Parameter<T> parameter(String name, Class<T> type, int min, int max)
name
- name of parametertype
- type of parametermin
- multiplicitymax
- multiplicityCopyright © 1996–2023 Geotools. All rights reserved.