| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectnet.sf.saxon.expr.Expressionnet.sf.saxon.expr.FunctionCallnet.sf.saxon.functions.SystemFunctionnet.sf.saxon.functions.IsWholeNumberpublic class IsWholeNumberextends SystemFunctionsaxon:is-whole-number($arg as numeric?) as boolean
The result is true if $arg is not empty and is equal to some integer.
Field Summary |
Fields inherited from class net.sf.saxon.functions.SystemFunction | |
operation | |
Fields inherited from class net.sf.saxon.expr.FunctionCall | |
argument | |
Fields inherited from class net.sf.saxon.expr.Expression | |
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD, locationId, staticProperties | |
Method Summary | |
boolean |
|
Item |
|
Methods inherited from class net.sf.saxon.functions.SystemFunction | |
addContextDocumentArgument, addDocToPathMap, checkArguments, computeCardinality, computeSpecialProperties, copy, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, makeSystemFunction, optimize, setDetails, useContextItemAsDefault | |
Methods inherited from class net.sf.saxon.expr.FunctionCall | |
addExternalFunctionCallToPathMap, checkArgumentCount, checkArguments, equals, explain, getArguments, getDisplayName, getFunctionName, getNumberOfArguments, hashCode, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionName, simplify, simplifyArguments, toString, typeCheck | |
public boolean effectiveBooleanValue(XPathContext context) throws XPathException
Get the effective boolean value of the expression. This returns false if the value is the empty sequence, a zero-length string, a number equal to zero, or the boolean false. Otherwise it returns true.
- Overrides:
- effectiveBooleanValue in interface Expression
- Parameters:
context- The context in which the expression is to be evaluated
- Returns:
- the effective boolean value
- Throws:
XPathException- if any dynamic error occurs evaluating the expression
public Item evaluateItem(XPathContext context) throws XPathException
Evaluate in a general context
- Specified by:
- evaluateItem in interface EvaluableItem
- Overrides:
- evaluateItem in interface Expression