org.apache.xalan.templates

Class XUnresolvedVariableSimple

Implemented Interfaces:
Cloneable, Serializable, ExpressionNode, SourceLocator, XPathVisitable

public class XUnresolvedVariableSimple
extends XObject

This is the same as XUnresolvedVariable, but it assumes that the context is already set up. For use with psuedo variables. Also, it holds an Expression object, instead of an ElemVariable. It must only hold static context, since a single copy will be held in the template.

See Also:
Serialized Form

Field Summary

Fields inherited from class org.apache.xpath.objects.XObject

CLASS_BOOLEAN, CLASS_NODESET, CLASS_NULL, CLASS_NUMBER, CLASS_RTREEFRAG, CLASS_STRING, CLASS_UNKNOWN, CLASS_UNRESOLVEDVARIABLE

Constructor Summary

XUnresolvedVariableSimple(ElemVariable obj)

Method Summary

XObject
execute(XPathContext xctxt)
For support of literal objects in xpaths.
int
getType()
Tell what kind of class this is.
String
getTypeString()
Given a request type, return the equivalent string.

Methods inherited from class org.apache.xpath.objects.XObject

allowDetachToRelease, appendToFsb, bool, boolWithSideEffects, callVisitors, castToType, create, create, deepEquals, destruct, detach, dispatchCharactersEvents, equals, execute, fixupVariables, getFresh, getType, getTypeString, greaterThan, greaterThanOrEqual, iter, lessThan, lessThanOrEqual, mutableNodeset, nodelist, nodeset, notEquals, num, numWithSideEffects, object, reset, rtf, rtf, rtree, rtree, str, toString, xstr

Methods inherited from class org.apache.xpath.Expression

asIterator, asIteratorRaw, asNode, assertion, bool, canTraverseOutsideSubtree, deepEquals, error, execute, execute, execute, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, fixupVariables, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isStableNumber, num, warn, xstr

Constructor Details

XUnresolvedVariableSimple

public XUnresolvedVariableSimple(ElemVariable obj)

Method Details

execute

public XObject execute(XPathContext xctxt)
            throws TransformerException
For support of literal objects in xpaths.
Overrides:
execute in interface XObject

Parameters:
xctxt - The XPath execution context.

Returns:
This object.

Throws:
TransformerException -


getType

public int getType()
Tell what kind of class this is.
Overrides:
getType in interface XObject

Returns:
CLASS_UNRESOLVEDVARIABLE


getTypeString

public String getTypeString()
Given a request type, return the equivalent string. For diagnostic purposes.
Overrides:
getTypeString in interface XObject

Returns:
An informational string.


Copyright B) 2004 Apache XML Project. All Rights Reserved.