public abstract static class FunctionResolver.AbstractSelfDescribingFunction extends Object implements FunctionResolver.SelfDescribingFunction
Modifier | Constructor and Description |
---|---|
protected |
FunctionResolver.AbstractSelfDescribingFunction(QName qname,
int minArgs,
int maxArgs) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(FunctionResolver.SelfDescribingFunction that) |
boolean |
equals(Object obj) |
int |
getMaxArgCount()
Returns the maximum number of arguments handled by this function.
|
int |
getMinArgCount()
Returns the minimum number of arguments handled by this function.
|
String |
getName()
Returns the name of this function.
|
String |
getNamespaceUri()
Returns the namespace URI for this function.
|
QName |
getQName()
Returns the qualified name of this function, consisting of name and
namespace (but not prefix).
|
int |
hashCode() |
boolean |
isArityMatch(int arity)
Determines whether this function can handle the specified number of
arguments.
|
boolean |
isMatch(QName qname,
int arity)
Determines whether this function is a match for a call to
XPathFunctionResolver.resolveFunction() . |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
evaluate
protected FunctionResolver.AbstractSelfDescribingFunction(QName qname, int minArgs, int maxArgs)
public QName getQName()
FunctionResolver.SelfDescribingFunction
getQName
in interface FunctionResolver.SelfDescribingFunction
public String getNamespaceUri()
FunctionResolver.SelfDescribingFunction
getNamespaceUri
in interface FunctionResolver.SelfDescribingFunction
public String getName()
FunctionResolver.SelfDescribingFunction
getName
in interface FunctionResolver.SelfDescribingFunction
public int getMinArgCount()
FunctionResolver.SelfDescribingFunction
getMinArgCount
in interface FunctionResolver.SelfDescribingFunction
public int getMaxArgCount()
FunctionResolver.SelfDescribingFunction
getMaxArgCount
in interface FunctionResolver.SelfDescribingFunction
public boolean isMatch(QName qname, int arity)
FunctionResolver.SelfDescribingFunction
XPathFunctionResolver.resolveFunction()
.isMatch
in interface FunctionResolver.SelfDescribingFunction
public boolean isArityMatch(int arity)
FunctionResolver.SelfDescribingFunction
isArityMatch
in interface FunctionResolver.SelfDescribingFunction
public int compareTo(FunctionResolver.SelfDescribingFunction that)
compareTo
in interface Comparable<FunctionResolver.SelfDescribingFunction>