private boolean isReverseAxis(Step step) { int axis = step.getAxis(); return axis == org.jaxen.saxpath.Axis.PRECEDING || axis == org.jaxen.saxpath.Axis.PRECEDING_SIBLING || axis == org.jaxen.saxpath.Axis.ANCESTOR || axis == org.jaxen.saxpath.Axis.ANCESTOR_OR_SELF; }
int axis = step.getAxis(); if ( axis == Axis.DESCENDANT || axis == Axis.DESCENDANT_OR_SELF )
int axis = step.getAxis(); if ( axis == Axis.ATTRIBUTE )
public PredicatesEvaluatorBuilder(Step step, Step attributeStep, SelectorStep selectorStep, Properties namespaces) { this.step = step; this.attributeStep = attributeStep; this.selectorStep = selectorStep; this.namespaces = namespaces; if(attributeStep != null && attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalStateException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } }
public PredicatesEvaluatorBuilder(Step step, Step attributeStep, SelectorStep selectorStep, Properties namespaces) { this.step = step; this.attributeStep = attributeStep; this.selectorStep = selectorStep; this.namespaces = namespaces; if(attributeStep != null && attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalStateException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } }
public PredicatesEvaluatorBuilder(Step step, Step attributeStep, SelectorStep selectorStep, Properties namespaces) { this.step = step; this.attributeStep = attributeStep; this.selectorStep = selectorStep; this.namespaces = namespaces; if(attributeStep != null && attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalStateException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } }
public PredicatesEvaluatorBuilder(Step step, Step attributeStep, SelectorStep selectorStep, Properties namespaces) { this.step = step; this.attributeStep = attributeStep; this.selectorStep = selectorStep; this.namespaces = namespaces; if(attributeStep != null && attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalStateException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } }
public PredicatesEvaluatorBuilder(Step step, Step attributeStep, SelectorStep selectorStep, Properties namespaces) { this.step = step; this.attributeStep = attributeStep; this.selectorStep = selectorStep; this.namespaces = namespaces; if(attributeStep != null && attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalStateException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } }
/** * * Public constructor. * <p/> * Allows asssociation of an attribute step. XPath expressions can have the * form "xxx/@abc", where the attribute "abc" is on the element "xxx". * * @param xpathExpression The XPath expression of which the {@link Step} is a * part. * @param step The XPath {@link Step}. * @param attributeStep The Attribute Step. * @throws SAXPathException Error constructing the selector step. */ public SelectorStep(String xpathExpression, Step step, Step attributeStep) throws SAXPathException { this(xpathExpression, step); AssertArgument.isNotNull(attributeStep, "attributeStep"); if(attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalArgumentException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } setAttributeStep(attributeStep); initFlags(); }
/** * * Public constructor. * <p/> * Allows asssociation of an attribute step. XPath expressions can have the * form "xxx/@abc", where the attribute "abc" is on the element "xxx". * * @param xpathExpression The XPath expression of which the {@link Step} is a * part. * @param step The XPath {@link Step}. * @param attributeStep The Attribute Step. * @throws SAXPathException Error constructing the selector step. */ public SelectorStep(String xpathExpression, Step step, Step attributeStep) throws SAXPathException { this(xpathExpression, step); AssertArgument.isNotNull(attributeStep, "attributeStep"); if(attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalArgumentException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } setAttributeStep(attributeStep); initFlags(); }
/** * * Public constructor. * <p/> * Allows asssociation of an attribute step. XPath expressions can have the * form "xxx/@abc", where the attribute "abc" is on the element "xxx". * * @param xpathExpression The XPath expression of which the {@link Step} is a * part. * @param step The XPath {@link Step}. * @param attributeStep The Attribute Step. * @throws SAXPathException Error constructing the selector step. */ public SelectorStep(String xpathExpression, Step step, Step attributeStep) throws SAXPathException { this(xpathExpression, step); AssertArgument.isNotNull(attributeStep, "attributeStep"); if(attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalArgumentException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } setAttributeStep(attributeStep); initFlags(); }
/** * * Public constructor. * * Allows asssociation of an attribute step. XPath expressions can have the * form "xxx/@abc", where the attribute "abc" is on the element "xxx". * * @param xpathExpression The XPath expression of which the {@link Step} is a * part. * @param step The XPath {@link Step}. * @param attributeStep The Attribute Step. * @throws SAXPathException Error constructing the selector step. */ public SelectorStep(String xpathExpression, Step step, Step attributeStep) throws SAXPathException { this(xpathExpression, step); AssertArgument.isNotNull(attributeStep, "attributeStep"); if(attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalArgumentException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } setAttributeStep(attributeStep); initFlags(); }
/** * * Public constructor. * <p/> * Allows asssociation of an attribute step. XPath expressions can have the * form "xxx/@abc", where the attribute "abc" is on the element "xxx". * * @param xpathExpression The XPath expression of which the {@link Step} is a * part. * @param step The XPath {@link Step}. * @param attributeStep The Attribute Step. * @throws SAXPathException Error constructing the selector step. */ public SelectorStep(String xpathExpression, Step step, Step attributeStep) throws SAXPathException { this(xpathExpression, step); AssertArgument.isNotNull(attributeStep, "attributeStep"); if(attributeStep.getAxis() != Axis.ATTRIBUTE) { throw new IllegalArgumentException("Unexpected 'attributeStep' arg '" + attributeStep.getText() + "'. Must be an ATTRIBUTE Axis step."); } setAttributeStep(attributeStep); initFlags(); }