Class XPathAbrevCompiler

Object
com.tailf.conf.XPathAbrevCompiler
All Implemented Interfaces:
Compiler

public class XPathAbrevCompiler extends Object implements Compiler
  • Constructor Details

  • Method Details

    • number

      public Object number(String value)
      Description copied from interface: Compiler
      Produces an EXPRESSION object that represents a numeric constant.
      Specified by:
      number in interface Compiler
      Parameters:
      value - numeric String
      Returns:
      Object
    • literal

      public Object literal(String value)
      Description copied from interface: Compiler
      Produces an EXPRESSION object that represents a string constant.
      Specified by:
      literal in interface Compiler
      Parameters:
      value - String literal
      Returns:
      Object
    • qname

      public Object qname(String prefix, String tagName) throws ConfException, IOException
      Description copied from interface: Compiler
      Produces an QNAME that represents a name with an optional prefix.
      Specified by:
      qname in interface Compiler
      Parameters:
      prefix - String prefix
      tagName - String name
      Returns:
      Object
      Throws:
      ConfException
      IOException
    • addKeys

      public void addKeys(MaapiSchemas.CSNode current, com.tailf.conf.XPathAbrevCompiler.XPathTag tag, ConfNamespace ns)
    • getKP

      public ConfObject[] getKP()
      Specified by:
      getKP in interface Compiler
    • equal

      public Object equal(Object left, Object right) throws ConfException
      Description copied from interface: Compiler
      Produces an EXPRESSION object representing the comparison: left equals to right
      Specified by:
      equal in interface Compiler
      Parameters:
      left - is an EXPRESSION object
      right - is an EXPRESSION object
      Returns:
      Object
      Throws:
      ConfException
    • function

      public Object function(int code, Object[] args)
      Description copied from interface: Compiler
      Produces an EXPRESSION object representing the computation of a core function with the supplied arguments.
      Specified by:
      function in interface Compiler
      Parameters:
      code - is one of FUNCTION_... constants
      args - are EXPRESSION objects
      Returns:
      Object
    • function

      public Object function(Object name, Object[] args)
      Description copied from interface: Compiler
      Produces an EXPRESSION object representing the computation of a library function with the supplied arguments.
      Specified by:
      function in interface Compiler
      Parameters:
      name - is a QNAME object (function name)
      args - are EXPRESSION objects
      Returns:
      Object
    • nodeNameTest

      public Object nodeNameTest(Object qname)
      Description copied from interface: Compiler
      Produces a NODE_TEST object that represents a node name test.
      Specified by:
      nodeNameTest in interface Compiler
      Parameters:
      qname - is a QNAME object
      Returns:
      Object
    • nodeTypeTest

      public Object nodeTypeTest(int nodeType)
      Description copied from interface: Compiler
      Produces a NODE_TEST object that represents a node type test.
      Specified by:
      nodeTypeTest in interface Compiler
      Parameters:
      nodeType - is a NODE_TEST object
      Returns:
      Object
    • step

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

      public Object locationPath(boolean absolute, Object[] steps)
      Description copied from interface: Compiler
      Produces an EXPRESSION object representing a location path
      Specified by:
      locationPath in interface Compiler
      Parameters:
      absolute - indicates whether the path is absolute
      steps - are STEP objects
      Returns:
      Object
    • expressionPath

      public Object expressionPath(Object expression, Object[] predicates, Object[] steps)
      Description copied from interface: Compiler
      Produces an EXPRESSION object representing a filter expression
      Specified by:
      expressionPath in interface Compiler
      Parameters:
      expression - is an EXPRESSION object
      predicates - are EXPRESSION objects
      steps - are STEP objects
      Returns:
      Object