Class Trace

    • Constructor Detail

      • Trace

        public Trace()
    • Method Detail

      • getSpecialProperties

        public int getSpecialProperties​(Expression[] arguments)
        Get the static properties of this expression (other than its type). The result is bit-significant. These properties are used for optimizations. In general, if property bit is set, it is true, but if it is unset, the value is unknown.
        getSpecialProperties in class SystemFunction
        arguments - the actual arguments
      • getCardinality

        public int getCardinality​(Expression[] arguments)
        Description copied from class: SystemFunction
        Get the cardinality, given knowledge of the actual arguments
        getCardinality in class SystemFunction
        arguments - the actual arguments supplied
        the most precise available cardinality that the function will return
      • notifyListener

        public void notifyListener​(java.lang.String label,
                                   Sequence val,
                                   XPathContext context)
      • makeFunctionCall

        public Expression makeFunctionCall​(Expression... arguments)
        Description copied from class: SystemFunction
        Make an expression that either calls this function, or that is equivalent to a call on this function
        makeFunctionCall in class SystemFunction
        arguments - the supplied arguments to the function call
        either a function call on this function, or an expression that delivers the same result
      • traceItem

        public static void traceItem​(Item val,
                                     java.lang.String label,
                                     Logger out)
      • getLocation

        public Location getLocation()
        Description copied from interface: Locatable
        Get the location of the construct
        Specified by:
        getLocation in interface Locatable
        the location. If no location information is available, the method should return Loc.NONE rather than returning null. However, callers would be well advised to check for the result being null.
      • call

        public Sequence call​(XPathContext context,
                             Sequence[] arguments)
                      throws XPathException
        Evaluate the expression
        Specified by:
        call in interface Callable
        Specified by:
        call in interface Function
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as SequenceIterators
        the result of the evaluation, in the form of a SequenceIterator
        XPathException - if a dynamic error occurs during the evaluation of the expression
      • getObjectName

        public StructuredQName getObjectName()
        Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically.
        Specified by:
        getObjectName in interface Traceable
        the QName of the object declared or manipulated by this instruction or expression
      • getStreamerName

        public java.lang.String getStreamerName()
        Description copied from class: SystemFunction
        Get a name that identifies the class that can be used to evaluate this function in streaming mode, that is, supplying one item or event at a time as it is delivered by the parser. Special streaming support is generally available in Saxon-EE for all system functions that take a sequence as their argument.
        getStreamerName in class SystemFunction
        a name that identifies a class that supports streamed evaluation of this system function, or null if no such class is available. The mapping of names to classes is defined in the Saxon-EE class StreamerMap. In non-streaming Saxon editions (HE and PE) the method always returns null.