Package org.jaxen.expr

Examples of org.jaxen.expr.Expr


    // http://jira.codehaus.org/browse/JAXEN-160
    public void testJAXEN160GetText()
    throws JaxenException, ParserConfigurationException {
     
      DOMXPath xpath = new DOMXPath("$var1/foo");
      Expr expr = xpath.getRootExpr();
      assertEquals("$var1/child::foo", expr.getText());
     
  }
View Full Code Here


    public void testJAXEN160ToString()
    throws JaxenException, ParserConfigurationException {
     
      DOMXPath xpath = new DOMXPath("$var1/foo");
      Expr expr = xpath.getRootExpr();
      assertEquals(
        "[(DefaultPathExpr): [(DefaultVariableReferenceExpr): var1], [(DefaultRelativeLocationPath): [(DefaultNameStep): foo]]]",
        expr.toString()
      );
    }
View Full Code Here

    protected Value lhs;
    private String op;
    protected Value rhs;

    public AbstractEqualityEvaluator(BinaryExpr expr, Properties namespaces) throws SAXPathException {
        Expr lhsExpr = expr.getLHS();
        Expr rhsExpr = expr.getRHS();

        if(lhsExpr instanceof NumberExpr || rhsExpr instanceof NumberExpr) {
            lhs = Value.getValue(lhsExpr, NUMBER_DECODER, namespaces);
            rhs = Value.getValue(rhsExpr, NUMBER_DECODER, namespaces);
        } else {
View Full Code Here

TOP

Related Classes of org.jaxen.expr.Expr

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.