com.caucho.xpath.functions
Class Trace

java.lang.Object
  extended by com.caucho.xpath.Expr
      extended by com.caucho.xpath.expr.AbstractStringExpr
          extended by com.caucho.xpath.functions.Trace

public class Trace
extends AbstractStringExpr

Traces an object.


Field Summary
 
Fields inherited from class com.caucho.xpath.Expr
ADD, AND, ATTRIBUTE, BASE_URI, BOOLEAN, BOOLEAN_EQ, BOOLEAN_NEQ, CEILING, CONCAT, CONST, CONTAINS, COUNT, DIV, ELEMENT, EQ, FALSE, FLOOR, FORMAT_NUMBER, FUNCTION_AVAILABLE, GE, GENERATE_ID, GT, ID, IF, LANG, LAST, LAST_FUN, LE, LOCAL_PART, LT, MOD, MUL, NAMESPACE, NEG, NEQ, NODE_SET, NORMALIZE, NOT, NUMBER, NUMBER_EQ, NUMBER_GE, NUMBER_GT, NUMBER_LE, NUMBER_LT, NUMBER_NEQ, OR, POSITION, QNAME, QUO, ROUND, SELF, SELF_NAME, STARTS_WITH, STRING, STRING_EQ, STRING_LENGTH, STRING_NEQ, SUB, SUBSTRING, SUBSTRING_AFTER, SUBSTRING_BEFORE, SUM, SYSTEM_PROPERTY, TRANSLATE, TRUE
 
Constructor Summary
Trace(Expr expr, Expr labelExpr)
           
 
Method Summary
 java.lang.String evalString(org.w3c.dom.Node node, ExprEnvironment env)
          Evaluates the expression as an string.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.xpath.expr.AbstractStringExpr
evalBoolean, evalNumber, evalObject, isString, normalize
 
Methods inherited from class com.caucho.xpath.Expr
addParam, addVar, evalBoolean, evalNodeSet, evalNodeSet, evalNumber, evalObject, evalString, evalString, evalString, evalVar, getListContext, isBoolean, isNodeSet, isNumber, setListContext, setVar, stringToNumber, toBoolean, toDouble, toNode, toNodeList, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Trace

public Trace(Expr expr,
             Expr labelExpr)
      throws XPathParseException
Throws:
XPathParseException
Method Detail

evalString

public java.lang.String evalString(org.w3c.dom.Node node,
                                   ExprEnvironment env)
                            throws XPathException
Evaluates the expression as an string.

Specified by:
evalString in class AbstractStringExpr
Parameters:
node - the current node
env - the variable environment.
Returns:
the string representation of the expression.
Throws:
XPathException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object