net.sf.swan.xpath.expr
Class SelectorXPathFactory

java.lang.Object
  |
  +--org.jaxen.expr.DefaultXPathFactory
        |
        +--net.sf.swan.xpath.expr.SelectorXPathFactory
All Implemented Interfaces:
org.saxpath.Operator, org.jaxen.expr.XPathFactory

public class SelectorXPathFactory
extends org.jaxen.expr.DefaultXPathFactory


Field Summary
static NodeTest ANY_NODE_TEST
           
static NodeTest ATTRIBUTE_TEST
           
static NodeTest COMMENT_TEST
           
static NodeTest DOCUMENT_TEST
           
static NodeTest ELEMENT_TEST
           
static NodeTest PI_TEST
           
static NodeTest TEXT_TEST
           
 
Fields inherited from interface org.saxpath.Operator
ADD, DIV, EQUALS, GREATER_THAN, GREATER_THAN_EQUALS, LESS_THAN, LESS_THAN_EQUALS, MOD, MULTIPLY, NEGATIVE, NO_OP, NOT_EQUALS, SUBTRACT
 
Constructor Summary
SelectorXPathFactory(ParseContext parseContext, org.jaxen.FunctionContext fnContext)
           
 
Method Summary
 org.jaxen.expr.LocationPath createAbsoluteLocationPath()
           
 org.jaxen.expr.Step createAllNodeStep(int axis)
           
 org.jaxen.expr.Step createCommentNodeStep(int axis)
           
 org.jaxen.expr.FunctionCallExpr createFunctionCallExpr(java.lang.String prefix, java.lang.String functionName)
           
 org.jaxen.expr.Step createNameStep(int axis, java.lang.String prefix, java.lang.String localName)
           
protected  net.sf.swan.xpath.expr.NodeTestStep createNodeTestStep(int axis, NodeTest nodeTest)
           
 org.jaxen.expr.Step createProcessingInstructionNodeStep(int axis, java.lang.String piName)
           
 org.jaxen.expr.LocationPath createRelativeLocationPath()
           
 org.jaxen.expr.Step createTextNodeStep(int axis)
           
 org.jaxen.expr.VariableReferenceExpr createVariableReferenceExpr(java.lang.String prefix, java.lang.String name)
           
 org.jaxen.FunctionContext getFunctionContext()
           
 ParseContext getParseContext()
           
protected  java.lang.String resolveNamespacePrefix(java.lang.String prefix)
           
 void setFunctionContext(org.jaxen.FunctionContext context)
           
 void setParseContext(ParseContext context)
           
protected  java.lang.String toQName(java.lang.String prefix, java.lang.String localName)
           
 
Methods inherited from class org.jaxen.expr.DefaultXPathFactory
createAdditiveExpr, createAndExpr, createEqualityExpr, createFilterExpr, createLiteralExpr, createMultiplicativeExpr, createNumberExpr, createNumberExpr, createOrExpr, createPathExpr, createPredicate, createPredicateSet, createRelationalExpr, createUnaryExpr, createUnionExpr, createXPath, getIterableAxis
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DOCUMENT_TEST

public static final NodeTest DOCUMENT_TEST

TEXT_TEST

public static final NodeTest TEXT_TEST

ELEMENT_TEST

public static final NodeTest ELEMENT_TEST

ATTRIBUTE_TEST

public static final NodeTest ATTRIBUTE_TEST

PI_TEST

public static final NodeTest PI_TEST

COMMENT_TEST

public static final NodeTest COMMENT_TEST

ANY_NODE_TEST

public static final NodeTest ANY_NODE_TEST
Constructor Detail

SelectorXPathFactory

public SelectorXPathFactory(ParseContext parseContext,
                            org.jaxen.FunctionContext fnContext)
Method Detail

setParseContext

public void setParseContext(ParseContext context)

getParseContext

public ParseContext getParseContext()

setFunctionContext

public void setFunctionContext(org.jaxen.FunctionContext context)

getFunctionContext

public org.jaxen.FunctionContext getFunctionContext()

createFunctionCallExpr

public org.jaxen.expr.FunctionCallExpr createFunctionCallExpr(java.lang.String prefix,
                                                              java.lang.String functionName)
                                                       throws org.jaxen.JaxenException
Overrides:
createFunctionCallExpr in class org.jaxen.expr.DefaultXPathFactory

createVariableReferenceExpr

public org.jaxen.expr.VariableReferenceExpr createVariableReferenceExpr(java.lang.String prefix,
                                                                        java.lang.String name)
                                                                 throws org.jaxen.JaxenException
Overrides:
createVariableReferenceExpr in class org.jaxen.expr.DefaultXPathFactory

createRelativeLocationPath

public org.jaxen.expr.LocationPath createRelativeLocationPath()
                                                       throws org.jaxen.JaxenException
Overrides:
createRelativeLocationPath in class org.jaxen.expr.DefaultXPathFactory

createAbsoluteLocationPath

public org.jaxen.expr.LocationPath createAbsoluteLocationPath()
                                                       throws org.jaxen.JaxenException
Overrides:
createAbsoluteLocationPath in class org.jaxen.expr.DefaultXPathFactory

createNameStep

public org.jaxen.expr.Step createNameStep(int axis,
                                          java.lang.String prefix,
                                          java.lang.String localName)
                                   throws org.jaxen.JaxenException
Overrides:
createNameStep in class org.jaxen.expr.DefaultXPathFactory

createTextNodeStep

public org.jaxen.expr.Step createTextNodeStep(int axis)
                                       throws org.jaxen.JaxenException
Overrides:
createTextNodeStep in class org.jaxen.expr.DefaultXPathFactory

createCommentNodeStep

public org.jaxen.expr.Step createCommentNodeStep(int axis)
                                          throws org.jaxen.JaxenException
Overrides:
createCommentNodeStep in class org.jaxen.expr.DefaultXPathFactory

createAllNodeStep

public org.jaxen.expr.Step createAllNodeStep(int axis)
                                      throws org.jaxen.JaxenException
Overrides:
createAllNodeStep in class org.jaxen.expr.DefaultXPathFactory

createProcessingInstructionNodeStep

public org.jaxen.expr.Step createProcessingInstructionNodeStep(int axis,
                                                               java.lang.String piName)
                                                        throws org.jaxen.JaxenException
Overrides:
createProcessingInstructionNodeStep in class org.jaxen.expr.DefaultXPathFactory

createNodeTestStep

protected net.sf.swan.xpath.expr.NodeTestStep createNodeTestStep(int axis,
                                                                 NodeTest nodeTest)
                                                          throws org.jaxen.JaxenException

resolveNamespacePrefix

protected java.lang.String resolveNamespacePrefix(java.lang.String prefix)
                                           throws org.jaxen.JaxenException

toQName

protected java.lang.String toQName(java.lang.String prefix,
                                   java.lang.String localName)