You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by jk...@apache.org on 2001/11/06 18:38:21 UTC

cvs commit: xml-xalan/java/src/org/apache/xpath/operations Operation.java UnaryOperation.java

jkesselm    01/11/06 09:38:21

  Modified:    java/src/org/apache/xpath/operations Operation.java
                        UnaryOperation.java
  Log:
  Bugzilla 4679: Accessors for left and right operands
  
  Revision  Changes    Path
  1.8       +13 -0     xml-xalan/java/src/org/apache/xpath/operations/Operation.java
  
  Index: Operation.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/operations/Operation.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- Operation.java	2001/06/12 19:16:56	1.7
  +++ Operation.java	2001/11/06 17:38:21	1.8
  @@ -162,4 +162,17 @@
     {
       return null;  // no-op
     }
  +
  +  /** @return the left operand of binary operation, as an Expression.
  +   */
  +  public Expression getLeftOperand(){
  +    return m_left;
  +  }
  +
  +  /** @return the right operand of binary operation, as an Expression.
  +   */
  +  public Expression getRightOperand(){
  +    return m_right;
  +  }
  +
   }
  
  
  
  1.8       +7 -0      xml-xalan/java/src/org/apache/xpath/operations/UnaryOperation.java
  
  Index: UnaryOperation.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/operations/UnaryOperation.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- UnaryOperation.java	2001/06/12 19:16:57	1.7
  +++ UnaryOperation.java	2001/11/06 17:38:21	1.8
  @@ -144,4 +144,11 @@
      */
     public abstract XObject operate(XObject right)
       throws javax.xml.transform.TransformerException;
  +
  +  /** @return the operand of unary operation, as an Expression.
  +   */
  +  public Expression getOperand(){
  +    return m_right;
  +  }
  +
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org