Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.novell.xml.xpath
Class UnionExpr

    java.lang.Object
      com.novell.xml.xpath.BinaryExpr
          com.novell.xml.xpath.UnionExpr

All Implemented Interfaces:
  Expression

    public class UnionExpr

extends BinaryExpr
implements Expression

This class implements the XPath UnionExpr functionality. The UnionExpr takes two operands of type node-set and returns the set union of the operands.

Field Summary

Fields inherited from class com.novell.xml.xpath.BinaryExpr
`lhs, rhs`

Constructor Summary
`UnionExpr(Expression lhs, Expression rhs)` Construct an expression implementing the XPath UnionExpr functionality.

Method Summary
`ExpressionValue` | `evaluate(Node contextNode, ExpressionContext context)` Evaluate the expression with repect to the passed context
`Class` | `getResultType()` Return the Class object describing the result type of the expression.
`String` | `toString()` Provide a readable description for debugging.

Methods inherited from class com.novell.xml.xpath.BinaryExpr
`dump, isConstant, registerForReset`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Methods inherited from interface com.novell.xml.xpath.Expression
`dump, isConstant, registerForReset`

Constructor Detail

### UnionExpr

    public UnionExpr(Expression lhs,
                     Expression rhs)

  Construct an expression implementing the XPath UnionExpr functionality. Both operands must result in type of node-set.

  Parameters:
    `lhs` - The left node-set operand
    `rhs` - The right node-set operand

Method Detail

### toString

    public String toString()

  Provide a readable description for debugging.

  Overrides:
    `toString` in class `Object`
  Returns:
    String representation

### evaluate

    public ExpressionValue evaluate(Node contextNode,
                                    ExpressionContext context)
                             throws XPathEvaluationException

  Evaluate the expression with repect to the passed context

  Specified by:
    `evaluate` in interface `Expression`
  Parameters:
    `contextNode` - context node for expression evaluation
    `context` - expression context for expression evaluation
  Returns:
    result of evaluating expression
  Throws:
    `XPathEvaluationException`

### getResultType

    public Class getResultType()

  Return the Class object describing the result type of the expression.

  Specified by:
    `getResultType` in interface `Expression`
  Returns:
    A Class object.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD