| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.saxonica.bytecode.util.Callback
public class Callback
A convenient place to put static methods that will be called from generated byte code
| Constructor Summary | |
|---|---|
Callback()
 | 
|
| Method Summary | |
|---|---|
static int | 
booleanFromString(CharSequence s)
Convert a string to a boolean value, using the XML Schema rules (including whitespace trimming)  | 
static XPathException | 
makeMultipleItemsException(CardinalityChecker expression,
                           XPathContext context)
Construct an exception reporting that a sequence of more than item was found where a single item was expected  | 
static XPathException | 
makeNonComparableException(AtomicValue av0,
                           AtomicValue av1,
                           SourceLocator location)
Construct (but don't throw) an exception reporting that two atomic values are not comparable  | 
static XPathException | 
makeXmlNamespaceException(String prefix,
                          String namespace,
                          Instruction instr)
Construct (but do not throw) an exception reporting that the namespace prefix "xml" and the XML namespace URI can only be used as a pair  | 
static double | 
stringToNumberOrNaN(StringToDouble s2d,
                    CharSequence string)
Convert a string to a double number, returning NaN if the string is not numeric  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Callback()
| Method Detail | 
|---|
public static XPathException makeNonComparableException(AtomicValue av0,
                                                        AtomicValue av1,
                                                        SourceLocator location)
av0 - the first atomic valueav1 - the second atomic valuelocation - the source location of the comparison
public static XPathException makeXmlNamespaceException(String prefix,
                                                       String namespace,
                                                       Instruction instr)
prefix - the prefix that was actually usednamespace - the namespace URI that was actually usedinstr - the instruction in which the error occurred
public static XPathException makeMultipleItemsException(CardinalityChecker expression,
                                                        XPathContext context)
expression - the cardinality checker that detects the error. This is re-evaluated to include
 the first few items of the sequence in the error messagecontext - the dynamic context
public static double stringToNumberOrNaN(StringToDouble s2d,
                                         CharSequence string)
s2d - the string to double converter to be usedstring - the string to be converted
public static int booleanFromString(CharSequence s)
s - the input string
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||