Interface Compiler

All Known Implementing Classes:
XPathAbrevCompiler

public interface Compiler
  • Field Details

  • Method Details

    • number

      Object number(String value)
      Produces an EXPRESSION object that represents a numeric constant.
      Parameters:
      value - numeric String
      Returns:
      Object
    • literal

      Object literal(String value)
      Produces an EXPRESSION object that represents a string constant.
      Parameters:
      value - String literal
      Returns:
      Object
    • qname

      Object qname(String prefix, String name) throws ConfException, IOException
      Produces an QNAME that represents a name with an optional prefix.
      Parameters:
      prefix - String prefix
      name - String name
      Returns:
      Object
      Throws:
      ConfException
      IOException
    • getKP

      ConfObject[] getKP()
    • equal

      Object equal(Object left, Object right) throws ConfException
      Produces an EXPRESSION object representing the comparison: left equals to right
      Parameters:
      left - is an EXPRESSION object
      right - is an EXPRESSION object
      Returns:
      Object
      Throws:
      ConfException
    • function

      Object function(int code, Object[] args)
      Produces an EXPRESSION object representing the computation of a core function with the supplied arguments.
      Parameters:
      code - is one of FUNCTION_... constants
      args - are EXPRESSION objects
      Returns:
      Object
    • function

      Object function(Object name, Object[] args)
      Produces an EXPRESSION object representing the computation of a library function with the supplied arguments.
      Parameters:
      name - is a QNAME object (function name)
      args - are EXPRESSION objects
      Returns:
      Object
    • nodeNameTest

      Object nodeNameTest(Object qname)
      Produces a NODE_TEST object that represents a node name test.
      Parameters:
      qname - is a QNAME object
      Returns:
      Object
    • nodeTypeTest

      Object nodeTypeTest(int nodeType)
      Produces a NODE_TEST object that represents a node type test.
      Parameters:
      nodeType - is a NODE_TEST object
      Returns:
      Object
    • step

      Object step(int axis, Object nodeTest, Object[] predicates)
      Produces a STEP object that represents a node test.
      Parameters:
      axis - is one of the AXIS_... constants
      nodeTest - is a NODE_TEST object
      predicates - are EXPRESSION objects
      Returns:
      Object
    • locationPath

      Object locationPath(boolean absolute, Object[] steps)
      Produces an EXPRESSION object representing a location path
      Parameters:
      absolute - indicates whether the path is absolute
      steps - are STEP objects
      Returns:
      Object
    • expressionPath

      Object expressionPath(Object expression, Object[] predicates, Object[] steps)
      Produces an EXPRESSION object representing a filter expression
      Parameters:
      expression - is an EXPRESSION object
      predicates - are EXPRESSION objects
      steps - are STEP objects
      Returns:
      Object