com.saxonica.codegen
Class IsWholeNumberCompiler
java.lang.Object
com.saxonica.codegen.IntegratedFunctionCompiler
com.saxonica.codegen.IsWholeNumberCompiler
public class IsWholeNumberCompiler
- extends IntegratedFunctionCompiler
Generate Java code for a call on saxon:is-whole-number()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IsWholeNumberCompiler
public IsWholeNumberCompiler()
compile
public String compile(CompilerService compiler,
ExtensionFunctionCall expr,
Expression[] arguments,
String[] variables)
- Description copied from class:
IntegratedFunctionCompiler
- Generate Java code to evaluate the expression as a SequenceIterator
- Specified by:
compile
in class IntegratedFunctionCompiler
- Parameters:
compiler
- the compiler serviceexpr
- the integrated function call to be compiledarguments
- the arguments supplied to the function callvariables
- an array of strings each being the Java name of a variable that
holds the value of the corresponding argument, either as a SequenceIterator in the case
of an argument that allows more than one value, or as an Item if the argument only
allows a singleton
- Returns:
- a simple Java expression (usually the name of a variable that
has been declared). If the result type of the function is boolean, this variable
will hold a Java boolean. If the result type is an optional item, it will hold
an Item (using null to represent an empty sequence). If it is any other type, the
variable will hold a
SequenceIterator
,
In each case the Java variable will at run-time hold the value of the XPath expression
Copyright (c) Saxonica Limited. All rights reserved.