Package org.eclipse.wst.xml.xpath2.api
public class Function extendsSupport for functions.
Method Summary | |
public boolean | canMatchArity(int actualArity)Checks if this function has an to the |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | computeReturnType(java.util.Collection args
,
org.eclipse.wst.xml.xpath2.api.StaticContext sc)Evaluate the exact result type. |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | evaluate(java.util.Collection args
,
org.eclipse.wst.xml.xpath2.api.EvaluationContext evaluationContext)Evaluate arguments. |
public java.lang.String | getArgumentNameHint(int index)Name hint for the index'th argument, starting at 0. |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getArgumentType(int index)Returns the type of the argument at position index, starting at 0. |
public int | getMaxArity()Maximum number of allowed arguments. |
public int | getMinArity()Minimal number of allowed arguments. |
public java.lang.String | getName()Support for QName interface. |
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition | getResultType()Gets the return type for the function. |
public boolean | isVariableArgument()Maximum number of allowed arguments. |
Methods Detail |
public boolean canMatchArity(int actualArity)
Checks if this function has an to the
actualArity
boolean
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition computeReturnType(java.util.Collection args
,
org.eclipse.wst.xml.xpath2.api.StaticContext sc)
Evaluate the exact result type.
args - argument expressions.
sc
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - Result of evaluation.
public org.eclipse.wst.xml.xpath2.api.ResultSequence evaluate(java.util.Collection args
,
org.eclipse.wst.xml.xpath2.api.EvaluationContext evaluationContext)
Evaluate arguments.
args - argument expressions.
evaluationContext
org.eclipse.wst.xml.xpath2.api.ResultSequence - Result of evaluation.
public java.lang.String getArgumentNameHint(int index)
Name hint for the index'th argument, starting at 0.
index
java.lang.String - TypeDefinition for the argument
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getArgumentType(int index)
Returns the type of the argument at position index, starting at 0.
index
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - TypeDefinition for the argument
public int getMaxArity()
Maximum number of allowed arguments.
int - The highest number of arguments possible
public int getMinArity()
Minimal number of allowed arguments.
int - The smallest number of arguments possible
public java.lang.String getName()
Support for QName interface.
java.lang.String - Result of QName operation.
public org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition getResultType()
Gets the return type for the function.
org.eclipse.wst.xml.xpath2.api.typesystem.TypeDefinition - TypeDefinition for the argument
public boolean isVariableArgument()
Maximum number of allowed arguments.
boolean - The highest number of arguments possible