com.smallx.xml.xslt.xt.xpath
Class ConvertibleExpr

java.lang.Object
  extended bycom.smallx.xml.xslt.xt.xpath.ConvertibleExpr
All Implemented Interfaces:
DocumentExpression
Direct Known Subclasses:
ConvertibleStringExpr

public abstract class ConvertibleExpr
extends java.lang.Object
implements DocumentExpression


Constructor Summary
ConvertibleExpr()
           
 
Method Summary
abstract  com.smallx.xml.xslt.xt.xpath.ConvertibleBooleanExpr makeBooleanExpr()
           
 com.smallx.xml.xslt.xt.xpath.ConvertibleNodeSetExpr makeNodeSetExpr()
           
 com.smallx.xml.xslt.xt.xpath.ConvertibleNumberExpr makeNumberExpr()
           
 com.smallx.xml.xslt.xt.xpath.ConvertibleBooleanExpr makePredicateExpr()
           
abstract  ConvertibleStringExpr makeStringExpr()
           
abstract  com.smallx.xml.xslt.xt.xpath.ConvertibleVariantExpr makeVariantExpr()
           
 java.util.Iterator select(Item context)
          Applies the expression and returns an iteration of the result.
 Item selectFirst(Item context)
          Applies the expression and returns the first matching node of the result.
 java.lang.String valueOf(Item context)
          Applies the expression and returns the string value of the result.
 void valueOf(java.lang.StringBuffer buffer, java.util.Iterator nodes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertibleExpr

public ConvertibleExpr()
Method Detail

makeStringExpr

public abstract ConvertibleStringExpr makeStringExpr()

makeBooleanExpr

public abstract com.smallx.xml.xslt.xt.xpath.ConvertibleBooleanExpr makeBooleanExpr()

makeVariantExpr

public abstract com.smallx.xml.xslt.xt.xpath.ConvertibleVariantExpr makeVariantExpr()

makeNodeSetExpr

public com.smallx.xml.xslt.xt.xpath.ConvertibleNodeSetExpr makeNodeSetExpr()
                                                                    throws XPathException
Throws:
XPathException

makeNumberExpr

public com.smallx.xml.xslt.xt.xpath.ConvertibleNumberExpr makeNumberExpr()

makePredicateExpr

public com.smallx.xml.xslt.xt.xpath.ConvertibleBooleanExpr makePredicateExpr()

select

public java.util.Iterator select(Item context)
                          throws XPathException
Applies the expression and returns an iteration of the result.

Specified by:
select in interface DocumentExpression
Parameters:
context - The context node for the expresion.
Throws:
XPathException

selectFirst

public Item selectFirst(Item context)
                 throws XPathException
Applies the expression and returns the first matching node of the result.

Specified by:
selectFirst in interface DocumentExpression
Parameters:
context - The context node for the expresion.
Throws:
XPathException

valueOf

public java.lang.String valueOf(Item context)
                         throws XPathException
Applies the expression and returns the string value of the result.

Specified by:
valueOf in interface DocumentExpression
Parameters:
context - The context node for the expresion.
Throws:
XPathException

valueOf

public void valueOf(java.lang.StringBuffer buffer,
                    java.util.Iterator nodes)