Package org.eclipse.wst.xml.xpath2.processor.internal.types
public class NumericType extends org.eclipse.wst.xml.xpath2.processor.internal.types.CtrTypeA representation of the NumericType datatype
Constructor Summary |
NumericType() |
Method Summary | |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | abs()Absolutes the number stored |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | ceiling()Returns the smallest integer greater than the number stored |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | floor()Returns the largest integer smaller than the number stored |
protected org.eclipse.wst.xml.xpath2.api.Item | get_single_arg(org.eclipse.wst.xml.xpath2.api.ResultSequence rs) |
public static org.eclipse.wst.xml.xpath2.api.Item | get_single_type(org.eclipse.wst.xml.xpath2.api.Item at
,
java.lang.Class type)Check whether the supplied node is of the supplied type |
public static org.eclipse.wst.xml.xpath2.api.Item | get_single_type(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at
,
java.lang.Class type) |
public static org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType | get_single_type(org.eclipse.wst.xml.xpath2.api.ResultSequence rs
,
java.lang.Class type)Check whether first node in supplied ResultSequence is of the supplied type |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | round()Returns the closest integer of the number stored. |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | round_half_to_even()Returns the closest integer of the number stored. |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType | round_half_to_even(int precision) |
public org.eclipse.wst.xml.xpath2.api.ResultSequence | unary_minus()Creates a new ResultSequence representing the negation of the number stored |
public boolean | zero()Check whether node represnts 0 |
Constructor Detail |
public NumericType()
Methods Detail |
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType abs()
Absolutes the number stored
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - New NumericType representing the absolute of the number stored
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType ceiling()
Returns the smallest integer greater than the number stored
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - A NumericType representing the smallest integer greater than the number stored
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType floor()
Returns the largest integer smaller than the number stored
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - A NumericType representing the largest integer smaller than the number stored
protected org.eclipse.wst.xml.xpath2.api.Item get_single_arg(org.eclipse.wst.xml.xpath2.api.ResultSequence rs)
rs
org.eclipse.wst.xml.xpath2.api.Item
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.api.Item get_single_type(org.eclipse.wst.xml.xpath2.api.Item at
,
java.lang.Class type)
Check whether the supplied node is of the supplied type
at - The node being tested
type - The type expected
org.eclipse.wst.xml.xpath2.api.Item - The node being tested
org.eclipse.wst.xml.xpath2.processor.DynamicError - If node being tested is not of expected type
public org.eclipse.wst.xml.xpath2.api.Item get_single_type(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType at
,
java.lang.Class type)
at
type
org.eclipse.wst.xml.xpath2.api.Item
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType get_single_type(org.eclipse.wst.xml.xpath2.api.ResultSequence rs
,
java.lang.Class type)
Check whether first node in supplied ResultSequence is of the supplied type
rs - The node being tested
type - The type expected
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType - The node being tested
org.eclipse.wst.xml.xpath2.processor.DynamicError - If node being tested is not of expected type
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType round()
Returns the closest integer of the number stored.
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - A NumericType representing the closest long of the number stored.
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType round_half_to_even()
Returns the closest integer of the number stored.
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType - A NumericType representing the closest long of the number stored.
public org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType round_half_to_even(int precision)
precision
org.eclipse.wst.xml.xpath2.processor.internal.types.NumericType
public org.eclipse.wst.xml.xpath2.api.ResultSequence unary_minus()
Creates a new ResultSequence representing the negation of the number stored
org.eclipse.wst.xml.xpath2.api.ResultSequence - New ResultSequence representing the negation of the number stored
public boolean zero()
Check whether node represnts 0
boolean - True if node represnts 0. False otherwise