|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xpath.expr.function.FunctionType
FunctionType provides meta-information about a Function.
Field Summary | |
int |
maxArgumentCount
|
int |
minArgumentCount
|
String |
name
|
Constructor Summary | |
FunctionType(String name)
Create a FunctionType with no arguments. |
|
FunctionType(String name,
int argumentCount)
Create a FunctionType with a fixed number of arguments. |
|
FunctionType(String name,
int minArgumentCount,
int maxArgumentCount)
Create a FunctionType with a variable number of arguments. |
Method Summary | |
boolean |
checkArgumentCount(int count)
Check if the given array of arguments fullfills the requirements for the number of arguments. |
Function |
copyFunction(Function function)
Create a copy of the function. |
int |
getContextDependencies(Expression[] arguments)
Return a bitfield indicating the dependencies of the function arguments. |
boolean |
isFunctionInstance(Expression expr)
Return if the given Expression is an instance of the function represented by this type. |
Expression[] |
normArguments(Expression[] arguments)
Check and norm the arguments. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final String name
public final int minArgumentCount
public final int maxArgumentCount
Constructor Detail |
public FunctionType(String name)
public FunctionType(String name, int argumentCount)
public FunctionType(String name, int minArgumentCount, int maxArgumentCount)
Method Detail |
public boolean checkArgumentCount(int count)
XPathException
- if the argument count does not match
the requirementspublic Expression[] normArguments(Expression[] arguments)
public int getContextDependencies(Expression[] arguments)
public boolean isFunctionInstance(Expression expr)
public Function copyFunction(Function function) throws InstantiationException, ClassNotFoundException, IllegalAccessException
InstantiationException
ClassNotFoundException
IllegalAccessException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |