Package | Description |
---|---|
javax.xml.transform | |
org.apache.xalan.extensions |
Implementation of Xalan Extension Mechanism.
|
org.apache.xalan.lib |
Extension elements and functions shipped with Xalan-Java, including EXSLT functions.
|
org.apache.xalan.processor |
Parses an XSLT stylesheet document (which may include and import other stylesheet documents) and produces a StylesheetRoot
(a TRaX Templates object).
|
org.apache.xalan.serialize | |
org.apache.xalan.templates |
Implements the
Templates interface,
and defines a set of classes that represent an XSLT stylesheet. |
org.apache.xalan.trace |
Implementation of Xalan Trace events, for use by a debugger.
|
org.apache.xalan.transformer |
In charge of run-time transformations and the production of result trees.
|
org.apache.xalan.xsltc.trax | |
org.apache.xml.serializer.utils | |
org.apache.xml.utils |
Implementation of Xalan utility classes.
|
org.apache.xpath |
Implementation of XPath; for the most part, only classes meant for public use are
found at this root level of the XPath packages.
|
org.apache.xpath.axes |
Implementation of XPath LocationPath support -- primary classes are
LocPathIterator and UnionPathIterator.
|
org.apache.xpath.compiler |
Implements an XPath parser which produces an OpMap, and a so-called Compiler
which produces an expression tree for fast evaluation.
|
org.apache.xpath.domapi |
Implements DOM Level 3 XPath API
|
org.apache.xpath.functions |
Implements XPath functions -- each function is derived from Function,
FunctionOneArg, Function2Args, etc, with number-of-arguments checking being
applied mainly at compile time -- this package only implements XPath functions,
XSLT functions are found in the "templates" package.
|
org.apache.xpath.jaxp | |
org.apache.xpath.objects |
Implementation of XPath polymorphic type objects -- this package will grow
as XPath objects are expanded to support XML Schema data types.
|
org.apache.xpath.operations |
Support for XPath operations, such as +, -, string(), etc.
|
org.apache.xpath.patterns |
Implementation of XPath nodeTest support, and XSLT pattern matching support.
|
Modifier and Type | Class and Description |
---|---|
class |
TransformerConfigurationException
Indicates a serious configuration error.
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorListener.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
ErrorListener.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
void |
ErrorListener.warning(TransformerException exception)
Receive notification of a warning.
|
Modifier and Type | Method and Description |
---|---|
void |
ErrorListener.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
ErrorListener.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
Source |
URIResolver.resolve(java.lang.String href,
java.lang.String base)
Called by the processor when it encounters
an xsl:include, xsl:import, or document() function.
|
abstract void |
Transformer.transform(Source xmlSource,
Result outputTarget)
Transform the XML
Source to a Result . |
void |
ErrorListener.warning(TransformerException exception)
Receive notification of a warning.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ExtensionHandlerJavaPackage.callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Process a call to an XPath extension function
|
java.lang.Object |
ExtensionHandlerJavaClass.callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Process a call to an XPath extension function
|
java.lang.Object |
ExtensionHandlerGeneral.callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Process a call to an XPath extension function
|
java.lang.Object |
ExtensionHandlerExsltFunction.callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value.
|
abstract java.lang.Object |
ExtensionHandler.callFunction(FuncExtFunction extFunction,
java.util.Vector args,
ExpressionContext exprContext)
Process a call to a function.
|
java.lang.Object |
ExtensionHandlerJavaPackage.callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Process a call to a function in the package java namespace.
|
java.lang.Object |
ExtensionHandlerJavaClass.callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Process a call to a function in the java class represented by
this
ExtensionHandlerJavaClass |
java.lang.Object |
ExtensionHandlerGeneral.callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Process a call to a function.
|
java.lang.Object |
ExtensionHandlerExsltFunction.callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Execute the EXSLT function and return the result value.
|
abstract java.lang.Object |
ExtensionHandler.callFunction(java.lang.String funcName,
java.util.Vector args,
java.lang.Object methodKey,
ExpressionContext exprContext)
Process a call to a function.
|
static void |
MethodResolver.convertParams(java.lang.Object[] argsIn,
java.lang.Object[][] argsOut,
java.lang.Class[] paramTypes,
ExpressionContext exprContext)
Convert a set of parameters based on a set of paramTypes.
|
boolean |
ExtensionsTable.elementAvailable(java.lang.String ns,
java.lang.String elemName)
Execute the element-available() function.
|
java.lang.Object |
ExtensionsTable.extFunction(FuncExtFunction extFunction,
java.util.Vector argVec,
ExpressionContext exprContext)
Handle an extension function.
|
java.lang.Object |
ExtensionsTable.extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey,
ExpressionContext exprContext)
Handle an extension function.
|
boolean |
ExtensionsTable.functionAvailable(java.lang.String ns,
java.lang.String funcName)
Execute the function-available() function.
|
static java.lang.reflect.Constructor |
MethodResolver.getConstructor(java.lang.Class classObj,
java.lang.Object[] argsIn,
java.lang.Object[][] argsOut,
ExpressionContext exprContext)
Given a class, figure out the resolution of
the Java Constructor from the XSLT argument types, and perform the
conversion of the arguments.
|
static java.lang.reflect.Method |
MethodResolver.getElementMethod(java.lang.Class classObj,
java.lang.String name)
Given the name of a method, figure out the resolution of
the Java Method
|
static java.lang.reflect.Method |
MethodResolver.getMethod(java.lang.Class classObj,
java.lang.String name,
java.lang.Object[] argsIn,
java.lang.Object[][] argsOut,
ExpressionContext exprContext,
int searchMethod)
Given the name of a method, figure out the resolution of
the Java Method from the XSLT argument types, and perform the
conversion of the arguments.
|
XObject |
ExpressionContext.getVariableOrParam(QName qname)
Get a variable based on it's qualified name.
|
XPathContext |
ExpressionContext.getXPathContext()
Get the XPathContext that owns this ExpressionContext.
|
ExtensionHandler |
ExtensionNamespaceSupport.launch()
Launch the ExtensionHandler that this ExtensionNamespaceSupport object defines.
|
void |
XSLProcessorContext.outputToResultTree(Stylesheet stylesheetTree,
java.lang.Object obj)
Output an object to the result tree by doing the right conversions.
|
void |
ExtensionHandlerJavaPackage.processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerJavaClass.processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerGeneral.processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Process a call to this extension namespace via an element.
|
void |
ExtensionHandlerExsltFunction.processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Required by ExtensionHandler (an abstract method).
|
abstract void |
ExtensionHandler.processElement(java.lang.String localPart,
ElemTemplateElement element,
TransformerImpl transformer,
Stylesheet stylesheetTree,
java.lang.Object methodKey)
Process a call to this extension namespace via an element.
|
Constructor and Description |
---|
ExtensionHandlerGeneral(java.lang.String namespaceUri,
StringVector elemNames,
StringVector funcNames,
java.lang.String scriptLang,
java.lang.String scriptSrcURL,
java.lang.String scriptSrc,
java.lang.String systemId)
Construct a new extension namespace handler given all the information
needed.
|
ExtensionsTable(StylesheetRoot sroot)
The constructor (called from TransformerImpl) registers the
StylesheetRoot for the transformation and instantiates an
ExtensionHandler for each extension namespace.
|
Modifier and Type | Method and Description |
---|---|
void |
Redirect.close(XSLProcessorContext context,
ElemExtensionCall elem)
Close the given file and remove it from the formatter listener's table.
|
SerializationHandler |
Redirect.createSerializationHandler(TransformerImpl transformer,
java.io.FileOutputStream ostream,
java.io.File file,
OutputProperties format)
A class that extends this one could over-ride this public method and receive
a callback for the creation of the serializer used in the redirection.
|
void |
Redirect.open(XSLProcessorContext context,
ElemExtensionCall elem)
Open the given file and put it in the XML, HTML, or Text formatter listener's table.
|
void |
PipeDocument.pipeDocument(XSLProcessorContext context,
ElemExtensionCall elem)
Extension element for piping an XML document through a series of 1 or more transformations.
|
void |
PipeDocument.usePipe(java.util.Vector vTHandler,
java.lang.String source,
java.lang.String target)
Uses a Vector of TransformerHandlers to pipe XML input document through
a series of 1 or more transformations.
|
void |
Redirect.write(XSLProcessorContext context,
ElemExtensionCall elem)
Write the evalutation of the element children to the given file.
|
Modifier and Type | Method and Description |
---|---|
XPath |
StylesheetHandler.createXPath(java.lang.String str,
ElemTemplateElement owningTemplate)
Process an expression string into an XPath.
|
Modifier and Type | Method and Description |
---|---|
static void |
SerializerUtils.addAttribute(SerializationHandler handler,
int attr)
Copy an DOM attribute to the created output element, executing
attribute templates as need be, and processing the xsl:use
attribute.
|
static void |
SerializerUtils.addAttributes(SerializationHandler handler,
int src)
Copy DOM attributes to the result element.
|
static void |
SerializerUtils.processNSDecls(SerializationHandler handler,
int src,
int type,
DTM dtm)
Copy xmlns: attributes in if not already in scope.
|
Modifier and Type | Method and Description |
---|---|
void |
ElemUse.applyAttrSets(TransformerImpl transformer,
StylesheetRoot stylesheet)
Add the attributes from the named attribute sets to the attribute list.
|
void |
OutputProperties.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
KeyDeclaration.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemWithParam.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemWhen.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemVariable.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemValueOf.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemTemplateElement.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemTemplate.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemSort.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemParam.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemPI.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemNumber.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemLiteralResult.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemIf.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemForEach.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemExtensionDecl.compose(StylesheetRoot sroot) |
void |
ElemExtensionCall.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemExsltFunction.compose(StylesheetRoot sroot)
Called after everything else has been
recomposed, and allows the function to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemElement.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemCopyOf.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemCallTemplate.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
ElemApplyTemplates.compose(StylesheetRoot sroot)
This function is called after everything else has been
recomposed, and allows the template to set remaining
values that may be based on some other property that
depends on recomposition.
|
void |
OutputProperties.copyFrom(OutputProperties opsrc)
Copy the keys and values from the source to this object.
|
void |
ElemVariable.endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
ElemTemplateElement.endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
ElemTemplate.endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
ElemForEach.endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
ElemCallTemplate.endCompose(StylesheetRoot sroot)
This after the template's children have been composed.
|
void |
FuncDocument.error(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
void |
AVTPartXPath.evaluate(XPathContext xctxt,
FastStringBuffer buf,
int context,
PrefixResolver nsNode)
Write the value into the buffer.
|
abstract void |
AVTPart.evaluate(XPathContext xctxt,
FastStringBuffer buf,
int context,
PrefixResolver nsNode)
Write the evaluated value into the given
string buffer.
|
java.lang.String |
AVT.evaluate(XPathContext xctxt,
int context,
PrefixResolver nsNode)
Evaluate the AVT and return a String.
|
void |
ElemVariablePsuedo.execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack.
|
void |
ElemVariable.execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack.
|
void |
ElemValueOf.execute(TransformerImpl transformer)
Execute the string expression and copy the text to the
result tree.
|
void |
ElemUse.execute(TransformerImpl transformer)
Copy attributes specified by use-attribute-sets to the result tree.
|
void |
ElemUnknown.execute(TransformerImpl transformer)
Execute an unknown element.
|
void |
ElemTextLiteral.execute(TransformerImpl transformer)
Copy the text literal to the result tree.
|
void |
ElemTemplateElement.execute(TransformerImpl transformer)
Execute the element's primary function.
|
void |
ElemTemplate.execute(TransformerImpl transformer)
Copy the template contents into the result tree.
|
void |
ElemParam.execute(TransformerImpl transformer)
Execute a variable declaration and push it onto the variable stack.
|
void |
ElemPI.execute(TransformerImpl transformer)
Create a processing instruction in the result tree.
|
void |
ElemNumber.execute(TransformerImpl transformer)
Execute an xsl:number instruction.
|
void |
ElemMessage.execute(TransformerImpl transformer)
Send a message to diagnostics.
|
void |
ElemLiteralResult.execute(TransformerImpl transformer)
Copy a Literal Result Element into the Result tree, copy the
non-excluded namespace attributes, copy the attributes not
of the XSLT namespace, and execute the children of the LRE.
|
void |
ElemIf.execute(TransformerImpl transformer)
Conditionally execute a sub-template.
|
void |
ElemForEach.execute(TransformerImpl transformer)
Execute the xsl:for-each transformation
|
void |
ElemFallback.execute(TransformerImpl transformer)
This is the normal call when xsl:fallback is instantiated.
|
void |
ElemExtensionCall.execute(TransformerImpl transformer)
Execute an extension.
|
void |
ElemExsltFuncResult.execute(TransformerImpl transformer)
Generate the EXSLT function return value, and assign it to the variable
index slot assigned for it in ElemExsltFunction compose().
|
void |
ElemElement.execute(TransformerImpl transformer)
Create an element in the result tree.
|
void |
ElemCopyOf.execute(TransformerImpl transformer)
The xsl:copy-of element can be used to insert a result tree
fragment into the result tree, without first converting it to
a string as xsl:value-of does (see [7.6.1 Generating Text with
xsl:value-of]).
|
void |
ElemCopy.execute(TransformerImpl transformer)
The xsl:copy element provides an easy way of copying the current node.
|
void |
ElemComment.execute(TransformerImpl transformer)
Execute the xsl:comment transformation
|
void |
ElemChoose.execute(TransformerImpl transformer)
Execute the xsl:choose transformation.
|
void |
ElemCallTemplate.execute(TransformerImpl transformer)
Invoke a named template.
|
void |
ElemAttributeSet.execute(TransformerImpl transformer)
Apply a set of attributes to the element.
|
void |
ElemApplyTemplates.execute(TransformerImpl transformer)
Apply the context node to the matching templates.
|
void |
ElemApplyImport.execute(TransformerImpl transformer)
Execute the xsl:apply-imports transformation.
|
void |
ElemExsltFunction.execute(TransformerImpl transformer,
XObject[] args) |
XObject |
XUnresolvedVariableSimple.execute(XPathContext xctxt)
For support of literal objects in xpaths.
|
XObject |
XUnresolvedVariable.execute(XPathContext xctxt)
For support of literal objects in xpaths.
|
XObject |
FuncKey.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncFormatNumb.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncDocument.execute(XPathContext xctxt)
Execute the function.
|
void |
ElemFallback.executeFallback(TransformerImpl transformer)
Execute the fallback elements.
|
java.lang.String |
ElemExtensionCall.getAttribute(java.lang.String rawName,
Node sourceNode,
TransformerImpl transformer)
Return the value of the attribute interpreted as an Attribute
Value Template (in other words, you can use curly expressions
such as href="http://{website}".
|
int |
ElemNumber.getPreviousNode(XPathContext xctxt,
int pos)
Get the previous node to be counted.
|
int |
ElemNumber.getTargetNode(XPathContext xctxt,
int sourceNode)
Get the target node that will be counted..
|
ElemTemplate |
Stylesheet.getTemplate(int i)
Get an "xsl:template" property.
|
ElemTemplate |
TemplateList.getTemplate(XPathContext xctxt,
int targetNode,
QName mode,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
ElemTemplate |
TemplateList.getTemplate(XPathContext xctxt,
int targetNode,
QName mode,
int maxImportLevel,
int endImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
ElemTemplate |
StylesheetRoot.getTemplateComposed(XPathContext xctxt,
int targetNode,
QName mode,
boolean quietConflictWarnings,
DTM dtm)
Get an "xsl:template" property by node match.
|
ElemTemplate |
StylesheetRoot.getTemplateComposed(XPathContext xctxt,
int targetNode,
QName mode,
int maxImportLevel,
int endImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Get an "xsl:template" property by node match.
|
ElemTemplate |
TemplateList.getTemplateFast(XPathContext xctxt,
int targetNode,
int expTypeID,
QName mode,
int maxImportLevel,
boolean quietConflictWarnings,
DTM dtm)
Given a target element, find the template that best
matches in the given XSL document, according
to the rules specified in the xsl draft.
|
XObject |
ElemWithParam.getValue(TransformerImpl transformer,
int sourceNode)
Get the XObject representation of the variable.
|
XObject |
ElemVariable.getValue(TransformerImpl transformer,
int sourceNode)
Get the XObject representation of the variable.
|
WhiteSpaceInfo |
StylesheetRoot.getWhiteSpaceInfo(XPathContext support,
int targetElement,
DTM dtm)
Get information about whether or not an element should strip whitespace.
|
void |
StylesheetRoot.recompose()
Recompose the values of all "composed" properties, meaning
properties that need to be combined or calculated from
the combination of imported and included stylesheets.
|
void |
OutputProperties.recompose(StylesheetRoot root)
This function is called to recompose all of the output format extended elements.
|
void |
ElemTemplateElement.recompose(StylesheetRoot root)
This function is called during recomposition to
control how this element is composed.
|
void |
StylesheetComposed.recompose(java.util.Vector recomposableElements)
Adds all recomposable values for this precedence level into the recomposableElements Vector
that was passed in as the first parameter.
|
void |
StylesheetComposed.recomposeTemplates(boolean flushFirst)
For compilation support, we need the option of overwriting
(rather than appending to) previous composition.
|
void |
Stylesheet.replaceTemplate(ElemTemplate v,
int i)
Replace an "xsl:template" property.
|
void |
ElemTemplateElement.resolvePrefixTables()
Combine the parent's namespaces with this namespace
for fast processing, taking care to reference the
parent's namespace if this namespace adds nothing new.
|
void |
ElemLiteralResult.resolvePrefixTables()
Augment resolvePrefixTables, resolving the namespace aliases once
the superclass has resolved the tables.
|
void |
ElemTemplateElement.runtimeInit(TransformerImpl transformer)
This function will be called on top-level elements
only, just before the transform begins.
|
void |
ElemExtensionDecl.runtimeInit(TransformerImpl transformer)
This function will be called on top-level elements
only, just before the transform begins.
|
void |
ElemTemplateElement.setPrefixes(NamespaceSupport nsSupport)
From the SAX2 helper class, set the namespace table for
this element.
|
void |
ElemTemplateElement.setPrefixes(NamespaceSupport nsSupport,
boolean excludeXSLDecl)
Copy the namespace declarations from the NamespaceSupport object.
|
boolean |
ElemTemplateElement.shouldStripWhiteSpace(XPathContext support,
Element targetElement)
Get information about whether or not an element should strip whitespace.
|
boolean |
StylesheetRoot.shouldStripWhiteSpace(XPathContext support,
int targetElement)
Get information about whether or not an element should strip whitespace.
|
DTMIterator |
ElemForEach.sortNodes(XPathContext xctxt,
java.util.Vector keys,
DTMIterator sourceNodes)
Sort given nodes
|
void |
ElemForEach.transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.
|
void |
ElemApplyTemplates.transformSelectedNodes(TransformerImpl transformer)
Perform a query if needed, and call transformNode for each child.
|
void |
FuncFormatNumb.warn(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of a problem.
|
void |
FuncDocument.warn(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of a problem.
|
Constructor and Description |
---|
AVT(StylesheetHandler handler,
java.lang.String uri,
java.lang.String name,
java.lang.String rawName,
java.lang.String stringedValue,
ElemTemplateElement owner)
Construct an AVT by parsing the string, and either
constructing a vector of AVTParts, or simply hold
on to the string if the AVT is simple.
|
AVTPartXPath(java.lang.String val,
PrefixResolver nsNode,
XPathParser xpathProcessor,
XPathFactory factory,
XPathContext liaison)
Construct a simple AVT part.
|
ElemParam(ElemParam param)
Copy constructor.
|
ElemVariable(ElemVariable param)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
TraceManager.fireSelectedEndEvent(EndSelectionEvent se)
Fire a selection event.
|
void |
TraceManager.fireSelectedEndEvent(int sourceNode,
ElemTemplateElement styleNode,
java.lang.String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
TraceManager.fireSelectedEvent(int sourceNode,
ElemTemplateElement styleNode,
java.lang.String attributeName,
XPath xpath,
XObject selection)
Fire a selection event.
|
void |
TraceManager.fireSelectedEvent(SelectionEvent se)
Fire a selection event.
|
void |
TraceListener.selected(SelectionEvent ev)
Method that is called just after the formatter listener is called.
|
void |
PrintTraceListener.selected(SelectionEvent ev)
Method that is called just after a select attribute has been evaluated.
|
void |
TraceListenerEx.selectEnd(EndSelectionEvent ev)
Method that is called after an xsl:apply-templates or xsl:for-each
selection occurs.
|
void |
PrintTraceListener.selectEnd(EndSelectionEvent ev)
Method that is called after an xsl:apply-templates or xsl:for-each
selection occurs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TransformerImpl.applyTemplateToNode(ElemTemplateElement xslInstruction,
ElemTemplate template,
int child)
Given an element and mode, find the corresponding
template and process the contents.
|
void |
StackGuard.checkForInfinateLoop()
Check if we are in an infinite loop
|
static void |
ClonerToResultTree.cloneToResultTree(int node,
int nodeType,
DTM dtm,
SerializationHandler rth,
boolean shouldCloneAttributes)
Clone an element with or without children.
|
int |
CountersTable.countNode(XPathContext support,
ElemNumber numberElem,
int node)
Count forward until the given node is found, or until
we have looked to the given amount.
|
SerializationHandler |
TransformerImpl.createSerializationHandler(Result outputTarget)
Create a result ContentHandler from a Result object, based
on the current OutputProperties.
|
SerializationHandler |
TransformerImpl.createSerializationHandler(Result outputTarget,
OutputProperties format)
Create a ContentHandler from a Result object and an OutputProperties.
|
boolean |
TransformerImpl.elementAvailable(java.lang.String ns,
java.lang.String elemName) |
void |
MsgMgr.error(SourceLocator srcLctr,
Node styleNode,
Node sourceNode,
java.lang.String msg)
Tell the user of an error, and probably throw an
exception.
|
void |
MsgMgr.error(SourceLocator srcLctr,
Node styleNode,
Node sourceNode,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
void |
MsgMgr.error(SourceLocator srcLctr,
java.lang.String msg)
Tell the user of an error, and probably throw an
exception.
|
void |
MsgMgr.error(SourceLocator srcLctr,
java.lang.String msg,
java.lang.Exception e)
Tell the user of an error, and probably throw an
exception.
|
void |
MsgMgr.error(SourceLocator srcLctr,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
void |
MsgMgr.error(SourceLocator srcLctr,
java.lang.String msg,
java.lang.Object[] args,
java.lang.Exception e)
Tell the user of an error, and probably throw an
exception.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
boolean shouldAddAttrs)
Execute each of the children of a template element.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
ContentHandler handler)
Execute each of the children of a template element.
|
void |
TransformerImpl.executeChildTemplates(ElemTemplateElement elem,
Node context,
QName mode,
ContentHandler handler)
Execute each of the children of a template element.
|
void |
TransformerImpl.executeFromSnapshot(TransformSnapshot ts)
Deprecated.
This is an internal tooling API that nobody seems to be using
|
java.lang.Object |
TransformerImpl.extFunction(FuncExtFunction extFunction,
java.util.Vector argVec) |
java.lang.Object |
TransformerImpl.extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey) |
boolean |
TransformerImpl.functionAvailable(java.lang.String ns,
java.lang.String funcName) |
XNodeSet |
KeyManager.getNodeSetDTMByKey(XPathContext xctxt,
int doc,
QName name,
XMLString ref,
PrefixResolver nscontext)
Given a valid element key, return the corresponding node list.
|
void |
MsgMgr.message(SourceLocator srcLctr,
java.lang.String msg,
boolean terminate)
Warn the user of a problem.
|
java.util.Vector |
TransformerImpl.processSortKeys(ElemForEach foreach,
int sourceNodeContext)
Get the keys for the xsl:sort elements.
|
void |
NodeSorter.sort(DTMIterator v,
java.util.Vector keys,
XPathContext support)
Given a vector of nodes, sort each node according to
the criteria in the keys.
|
static Serializer |
SerializerSwitcher.switchSerializerIfHTML(java.lang.String ns,
java.lang.String localName,
java.util.Properties props,
Serializer oldSerializer)
Switch to HTML serializer if element is HTML
|
static void |
SerializerSwitcher.switchSerializerIfHTML(TransformerImpl transformer,
java.lang.String ns,
java.lang.String localName)
Switch to HTML serializer if element is HTML
|
void |
TransformerImpl.transform(Source source)
Process the source tree to SAX parse events.
|
void |
TransformerImpl.transform(Source source,
boolean shouldRelease)
Process the source tree to SAX parse events.
|
void |
TransformerImpl.transform(Source xmlSource,
Result outputTarget)
Process the source tree to the output result.
|
void |
TransformerIdentityImpl.transform(Source source,
Result outputTarget)
Process the source tree to the output result.
|
void |
TransformerImpl.transform(Source xmlSource,
Result outputTarget,
boolean shouldRelease)
Process the source tree to the output result.
|
void |
TransformerImpl.transformNode(int node)
Process the source node to the output result, if the
processor supports the "http://xml.org/trax/features/dom/input"
feature.
|
void |
TransformerImpl.transformNode(int node,
Result outputTarget)
Process the source node to the output result, if the
processor supports the "http://xml.org/trax/features/dom/input"
feature.
|
int |
TransformerImpl.transformToGlobalRTF(ElemTemplateElement templateParent)
Given a stylesheet element, create a result tree fragment from it's
contents.
|
int |
TransformerImpl.transformToRTF(ElemTemplateElement templateParent)
Given a stylesheet element, create a result tree fragment from it's
contents.
|
java.lang.String |
TransformerImpl.transformToString(ElemTemplateElement elem)
Take the contents of a template element, process it, and
convert it to a string.
|
void |
MsgMgr.warn(SourceLocator srcLctr,
Node styleNode,
Node sourceNode,
java.lang.String msg)
Warn the user of a problem.
|
void |
MsgMgr.warn(SourceLocator srcLctr,
Node styleNode,
Node sourceNode,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of a problem.
|
void |
MsgMgr.warn(SourceLocator srcLctr,
java.lang.String msg)
Warn the user of a problem.
|
void |
MsgMgr.warn(SourceLocator srcLctr,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of a problem.
|
Constructor and Description |
---|
KeyTable(int doc,
PrefixResolver nscontext,
QName name,
java.util.Vector keyDeclarations,
XPathContext xctxt)
Build a keys table.
|
Modifier and Type | Method and Description |
---|---|
void |
TransformerImpl.error(TransformerException e)
Receive notification of a recoverable error.
|
void |
TransformerFactoryImpl.error(TransformerException e)
Receive notification of a recoverable error.
|
void |
TransformerImpl.fatalError(TransformerException e)
Receive notification of a non-recoverable error.
|
void |
TransformerFactoryImpl.fatalError(TransformerException e)
Receive notification of a non-recoverable error.
|
void |
TransformerImpl.warning(TransformerException e)
Receive notification of a warning.
|
void |
TransformerFactoryImpl.warning(TransformerException e)
Receive notification of a warning.
|
Modifier and Type | Method and Description |
---|---|
void |
TransformerImpl.error(TransformerException e)
Receive notification of a recoverable error.
|
void |
TransformerFactoryImpl.error(TransformerException e)
Receive notification of a recoverable error.
|
void |
TransformerImpl.fatalError(TransformerException e)
Receive notification of a non-recoverable error.
|
void |
TransformerFactoryImpl.fatalError(TransformerException e)
Receive notification of a non-recoverable error.
|
SerializationHandler |
TransformerImpl.getOutputHandler(Result result)
Create an output handler for the transformation output based on
the type and contents of the TrAX Result object passed to the
transform() method.
|
void |
TransformerImpl.transform(Source source,
Result result)
Implements JAXP's Transformer.transform()
|
void |
TransformerImpl.warning(TransformerException e)
Receive notification of a warning.
|
void |
TransformerFactoryImpl.warning(TransformerException e)
Receive notification of a warning.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
SystemIDResolver.getAbsoluteURI(java.lang.String urlString,
java.lang.String base)
Take a SystemID string and try to turn it into a good absolute URI.
|
Modifier and Type | Method and Description |
---|---|
static void |
DefaultErrorHandler.ensureLocationSet(TransformerException exception) |
void |
ListingErrorHandler.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
DefaultErrorHandler.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
ListingErrorHandler.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
void |
DefaultErrorHandler.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
static void |
DefaultErrorHandler.printLocation(java.io.PrintStream pw,
TransformerException exception) |
void |
ListingErrorHandler.warning(TransformerException exception)
Receive notification of a warning.
|
void |
DefaultErrorHandler.warning(TransformerException exception)
Receive notification of a warning.
|
Modifier and Type | Method and Description |
---|---|
void |
RawCharacterHandler.charactersRaw(char[] ch,
int start,
int length)
Serialize the characters without escaping.
|
void |
DOM2Helper.checkNode(Node node)
Deprecated.
Check node to see if it was created by a DOM implementation
that this helper is intended to support.
|
void |
ListingErrorHandler.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
DefaultErrorHandler.error(TransformerException exception)
Receive notification of a recoverable error.
|
void |
ListingErrorHandler.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
void |
DefaultErrorHandler.fatalError(TransformerException exception)
Receive notification of a non-recoverable error.
|
static java.lang.String |
SystemIDResolver.getAbsoluteURI(java.lang.String urlString,
java.lang.String base)
Take a SystemID string and try to turn it into a good absolute URI.
|
void |
DOM2Helper.parse(InputSource source)
Deprecated.
Parse an XML document.
|
boolean |
DOMHelper.shouldStripSourceNode(Node textNode)
Deprecated.
Tells, through the combination of the default-space attribute
on xsl:stylesheet, xsl:strip-space, xsl:preserve-space, and the
xml:space attribute, whether or not extra whitespace should be stripped
from the node.
|
void |
ListingErrorHandler.warning(TransformerException exception)
Receive notification of a warning.
|
void |
DefaultErrorHandler.warning(TransformerException exception)
Receive notification of a warning.
|
Modifier and Type | Class and Description |
---|---|
class |
XPathException
This class implements an exception object that all
XPath classes will throw in case of an error.
|
class |
XPathProcessorException
Derived from XPathException in order that XPath processor
exceptions may be specifically caught.
|
Modifier and Type | Method and Description |
---|---|
DTMIterator |
Expression.asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath
and return the resulting iterator.
|
DTMIterator |
Expression.asIteratorRaw(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath
and return the resulting iterator, but do not clone.
|
int |
Expression.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression.
|
boolean |
Expression.bool(XPathContext xctxt)
Evaluate expression to a boolean.
|
boolean |
XPath.bool(XPathContext xctxt,
int contextNode,
PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath
and return the result.
|
boolean |
ExtensionsProvider.elementAvailable(java.lang.String ns,
java.lang.String elemName)
Is the extension element available?
|
void |
XPath.error(XPathContext xctxt,
int sourceNode,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
void |
Expression.error(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
static XObject |
XPathAPI.eval(Node contextNode,
java.lang.String str)
Evaluate XPath string to an XObject.
|
XObject |
CachedXPathAPI.eval(Node contextNode,
java.lang.String str)
Evaluate XPath string to an XObject.
|
static XObject |
XPathAPI.eval(Node contextNode,
java.lang.String str,
Node namespaceNode)
Evaluate XPath string to an XObject.
|
XObject |
CachedXPathAPI.eval(Node contextNode,
java.lang.String str,
Node namespaceNode)
Evaluate XPath string to an XObject.
|
static XObject |
XPathAPI.eval(Node contextNode,
java.lang.String str,
PrefixResolver prefixResolver)
Evaluate XPath string to an XObject.
|
XObject |
CachedXPathAPI.eval(Node contextNode,
java.lang.String str,
PrefixResolver prefixResolver)
Evaluate XPath string to an XObject.
|
abstract XObject |
Expression.execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject |
Expression.execute(XPathContext xctxt,
boolean destructiveOK)
Execute an expression in the XPath runtime context, and return the
result of the expression, but tell that a "safe" object doesn't have
to be returned.
|
XObject |
Expression.execute(XPathContext xctxt,
int currentNode)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject |
Expression.execute(XPathContext xctxt,
int currentNode,
DTM dtm,
int expType)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject |
XPath.execute(XPathContext xctxt,
int contextNode,
PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath
and return the result.
|
XObject |
XPath.execute(XPathContext xctxt,
Node contextNode,
PrefixResolver namespaceContext)
Given an expression and a context, evaluate the XPath
and return the result.
|
void |
Expression.executeCharsToContentHandler(XPathContext xctxt,
ContentHandler handler)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
java.lang.Object |
ExtensionsProvider.extFunction(FuncExtFunction extFunction,
java.util.Vector argVec)
Execute the extension function.
|
java.lang.Object |
ExtensionsProvider.extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey)
Execute the extension function.
|
boolean |
ExtensionsProvider.functionAvailable(java.lang.String ns,
java.lang.String funcName)
Is the extension function available?
|
XObject |
VariableStack.getGlobalVariable(XPathContext xctxt,
int index)
Get a global variable or parameter from the global stack frame.
|
XObject |
VariableStack.getGlobalVariable(XPathContext xctxt,
int index,
boolean destructiveOK)
Get a global variable or parameter from the global stack frame.
|
XObject |
VariableStack.getLocalVariable(int index,
int frame)
Get a local variable or parameter in the current stack frame.
|
XObject |
VariableStack.getLocalVariable(XPathContext xctxt,
int index)
Get a local variable or parameter in the current stack frame.
|
XObject |
VariableStack.getLocalVariable(XPathContext xctxt,
int index,
boolean destructiveOK)
Get a local variable or parameter in the current stack frame.
|
double |
XPath.getMatchScore(XPathContext xctxt,
int context)
Get the match score of the given node.
|
int |
SourceTreeManager.getSourceTree(Source source,
SourceLocator locator,
XPathContext xctxt)
Get the source tree from the input source.
|
int |
SourceTreeManager.getSourceTree(java.lang.String base,
java.lang.String urlString,
SourceLocator locator,
XPathContext xctxt)
Get the source tree from the a base URL and a URL string.
|
XObject |
XPathContext.XPathExpressionContext.getVariableOrParam(QName qname)
Get a variable based on it's qualified name.
|
XObject |
VariableStack.getVariableOrParam(XPathContext xctxt,
QName qname)
Get a variable based on it's qualified name.
|
static XMLReader |
SourceTreeManager.getXMLReader(Source inputSource,
SourceLocator locator)
This method returns the SAX2 parser to use with the InputSource
obtained from this URI.
|
boolean |
VariableStack.isLocalSet(int index)
Tell if a local variable has been set or not.
|
double |
Expression.num(XPathContext xctxt)
Evaluate expression to a number.
|
int |
SourceTreeManager.parseToNode(Source source,
SourceLocator locator,
XPathContext xctxt)
Try to create a DOM source tree from the input source.
|
Source |
SourceTreeManager.resolveURI(java.lang.String base,
java.lang.String urlString,
SourceLocator locator)
This will be called by the processor when it encounters
an xsl:include, xsl:import, or document() function.
|
static NodeIterator |
XPathAPI.selectNodeIterator(Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist.
|
NodeIterator |
CachedXPathAPI.selectNodeIterator(Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist.
|
static NodeIterator |
XPathAPI.selectNodeIterator(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a nodelist.
|
NodeIterator |
CachedXPathAPI.selectNodeIterator(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a nodelist.
|
static NodeList |
XPathAPI.selectNodeList(Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist.
|
NodeList |
CachedXPathAPI.selectNodeList(Node contextNode,
java.lang.String str)
Use an XPath string to select a nodelist.
|
static NodeList |
XPathAPI.selectNodeList(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a nodelist.
|
NodeList |
CachedXPathAPI.selectNodeList(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a nodelist.
|
static Node |
XPathAPI.selectSingleNode(Node contextNode,
java.lang.String str)
Use an XPath string to select a single node.
|
Node |
CachedXPathAPI.selectSingleNode(Node contextNode,
java.lang.String str)
Use an XPath string to select a single node.
|
static Node |
XPathAPI.selectSingleNode(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a single node.
|
Node |
CachedXPathAPI.selectSingleNode(Node contextNode,
java.lang.String str,
Node namespaceNode)
Use an XPath string to select a single node.
|
boolean |
WhitespaceStrippingElementMatcher.shouldStripWhiteSpace(XPathContext support,
Element targetElement)
Get information about whether or not an element should strip whitespace.
|
void |
XPath.warn(XPathContext xctxt,
int sourceNode,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of an problem.
|
void |
Expression.warn(XPathContext xctxt,
java.lang.String msg,
java.lang.Object[] args)
Warn the user of an problem.
|
XMLString |
Expression.xstr(XPathContext xctxt)
Cast result object to a string.
|
Constructor and Description |
---|
XPath(java.lang.String exprString,
SourceLocator locator,
PrefixResolver prefixResolver,
int type)
Construct an XPath object.
|
XPath(java.lang.String exprString,
SourceLocator locator,
PrefixResolver prefixResolver,
int type,
ErrorListener errorListener)
Construct an XPath object.
|
XPath(java.lang.String exprString,
SourceLocator locator,
PrefixResolver prefixResolver,
int type,
ErrorListener errorListener,
FunctionTable aTable)
Construct an XPath object.
|
Modifier and Type | Method and Description |
---|---|
DTMIterator |
LocPathIterator.asIterator(XPathContext xctxt,
int contextNode)
Given an select expression and a context, evaluate the XPath
and return the resulting iterator.
|
int |
SelfIteratorNoPredicate.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression.
|
int |
LocPathIterator.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression.
|
int |
DescendantIterator.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression.
|
int |
ChildIterator.asNode(XPathContext xctxt)
Return the first node out of the nodeset, if this expression is
a nodeset expression.
|
boolean |
LocPathIterator.bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
|
static LocPathIterator |
UnionPathIterator.createUnionIterator(Compiler compiler,
int opPos)
This will return an iterator capable of handling the union of paths given.
|
XObject |
LocPathIterator.execute(XPathContext xctxt)
Execute this iterator, meaning create a clone that can
store state, and initialize it for fast execution from
the current runtime state.
|
void |
LocPathIterator.executeCharsToContentHandler(XPathContext xctxt,
ContentHandler handler)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
static int |
WalkerFactory.getAxisFromStep(Compiler compiler,
int stepOpCodePos)
Special purpose function to see if we can optimize the pattern for
a DescendantIterator.
|
void |
FilterExprWalker.init(Compiler compiler,
int opPos,
int stepType)
Init a FilterExprWalker.
|
void |
AxesWalker.init(Compiler compiler,
int opPos,
int stepType)
Initialize an AxesWalker during the parse of the XPath expression.
|
void |
PredicatedNodeTest.initProximityPosition(int i)
Init the proximity position to zero for a forward axes.
|
static boolean |
WalkerFactory.mightBeProximate(Compiler compiler,
int opPos,
int stepType)
Tell if the predicates need to have proximity knowledge.
|
static DTMIterator |
WalkerFactory.newDTMIterator(Compiler compiler,
int opPos,
boolean isTopLevel)
Create a new LocPathIterator iterator.
|
Constructor and Description |
---|
OneStepIterator(DTMAxisIterator iterator,
int axis)
Create a OneStepIterator object.
|
SelfIteratorNoPredicate()
Create a SelfIteratorNoPredicate object.
|
UnionPathIterator(Compiler compiler,
int opPos)
Create a UnionPathIterator object, including creation
of location path iterators from the opcode list, and call back
into the Compiler to create predicate expressions.
|
Modifier and Type | Method and Description |
---|---|
Expression |
Compiler.compile(int opPos)
Execute the XPath object from a given opcode position.
|
int |
Compiler.countPredicates(int opPos)
Count the number of predicates in the step.
|
void |
OpMap.error(java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
void |
Compiler.error(java.lang.String msg,
java.lang.Object[] args)
Tell the user of an error, and probably throw an
exception.
|
Expression[] |
Compiler.getCompiledPredicates(int opPos)
Compile a zero or more predicates for a given match pattern.
|
int |
OpMap.getFirstPredicateOpPos(int opPos)
Given an FROM_stepType position, return the position of the
first predicate, if there is one, or else this will point
to the end of the FROM_stepType.
|
void |
XPathParser.initMatchPattern(Compiler compiler,
java.lang.String expression,
PrefixResolver namespaceContext)
Given an string, init an XPath object for pattern matches,
in order that a parse doesn't
have to be done each time the expression is evaluated.
|
void |
XPathParser.initXPath(Compiler compiler,
java.lang.String expression,
PrefixResolver namespaceContext)
Given an string, init an XPath object for selections,
in order that a parse doesn't
have to be done each time the expression is evaluated.
|
Expression |
Compiler.locationPath(int opPos)
Compile a location path.
|
Expression |
Compiler.locationPathPattern(int opPos)
Compile a location match pattern unit expression.
|
Expression |
Compiler.predicate(int opPos)
Compile a location step predicate expression.
|
void |
Compiler.warn(java.lang.String msg,
java.lang.Object[] args)
Warn the user of an problem.
|
Modifier and Type | Class and Description |
---|---|
class |
XPathStylesheetDOM3Exception
A new exception to add support for DOM Level 3 XPath API.
|
Modifier and Type | Method and Description |
---|---|
XObject |
Function.execute(XPathContext xctxt)
Execute an XPath function object.
|
XObject |
FuncUnparsedEntityURI.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncTrue.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncTranslate.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncSystemProperty.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncSum.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncSubstringBefore.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncSubstringAfter.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncSubstring.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncStringLength.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncString.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncStartsWith.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncRound.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncQname.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncPosition.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncNumber.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncNot.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncNormalizeSpace.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncNamespace.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncLocalPart.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncLast.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncLang.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncId.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncGenerateId.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncFloor.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncFalse.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncExtFunctionAvailable.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncExtFunction.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncExtElementAvailable.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncDoclocation.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncCurrent.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncCount.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncContains.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncConcat.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncCeiling.execute(XPathContext xctxt)
Execute the function.
|
XObject |
FuncBoolean.execute(XPathContext xctxt)
Execute the function.
|
void |
FuncNormalizeSpace.executeCharsToContentHandler(XPathContext xctxt,
ContentHandler handler)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
int |
FuncLast.getCountOfContextNodeList(XPathContext xctxt)
Get the position in the current context node list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
JAXPExtensionsProvider.elementAvailable(java.lang.String ns,
java.lang.String elemName)
Is the extension element available?
|
java.lang.Object |
XPathExpressionImpl.eval(java.lang.Object item,
QName returnType) |
java.lang.Object |
JAXPExtensionsProvider.extFunction(FuncExtFunction extFunction,
java.util.Vector argVec)
Execute the extension function.
|
java.lang.Object |
JAXPExtensionsProvider.extFunction(java.lang.String ns,
java.lang.String funcName,
java.util.Vector argVec,
java.lang.Object methodKey)
Execute the extension function.
|
boolean |
JAXPExtensionsProvider.functionAvailable(java.lang.String ns,
java.lang.String funcName)
Is the extension function available?
|
XObject |
JAXPVariableStack.getVariableOrParam(XPathContext xctxt,
QName qname) |
Modifier and Type | Method and Description |
---|---|
boolean |
XObject.bool()
Cast result object to a boolean.
|
boolean |
XObject.boolWithSideEffects()
Cast result object to a boolean, but allow side effects, such as the
incrementing of an iterator.
|
java.lang.Object |
XObject.castToType(int t,
XPathContext support)
Cast object to type t.
|
boolean |
XNodeSet.compare(XObject obj2,
org.apache.xpath.objects.Comparator comparator)
Tell if one object is less than the other.
|
XObject |
XRTreeFragSelectWrapper.execute(XPathContext xctxt)
For support of literal objects in xpaths.
|
XObject |
XObject.execute(XPathContext xctxt)
For support of literal objects in xpaths.
|
boolean |
XObject.greaterThan(XObject obj2)
Tell if one object is greater than the other.
|
boolean |
XNodeSet.greaterThan(XObject obj2)
Tell if one object is less than the other.
|
boolean |
XObject.greaterThanOrEqual(XObject obj2)
Tell if one object is greater than or equal to the other.
|
boolean |
XNodeSet.greaterThanOrEqual(XObject obj2)
Tell if one object is less than the other.
|
DTMIterator |
XObject.iter()
Cast result object to a nodelist.
|
boolean |
XObject.lessThan(XObject obj2)
Tell if one object is less than the other.
|
boolean |
XNodeSet.lessThan(XObject obj2)
Tell if one object is less than the other.
|
boolean |
XObject.lessThanOrEqual(XObject obj2)
Tell if one object is less than or equal to the other.
|
boolean |
XNodeSet.lessThanOrEqual(XObject obj2)
Tell if one object is less than or equal to the other.
|
NodeSetDTM |
XObject.mutableNodeset()
Cast result object to a nodelist.
|
NodeList |
XObject.nodelist()
Cast result object to a nodelist.
|
NodeList |
XNodeSetForDOM.nodelist()
Cast result object to a nodelist.
|
NodeList |
XNodeSet.nodelist()
Cast result object to a nodelist.
|
NodeIterator |
XObject.nodeset()
Cast result object to a nodelist.
|
NodeIterator |
XNodeSetForDOM.nodeset()
Cast result object to a nodelist.
|
NodeIterator |
XNodeSet.nodeset()
Cast result object to a nodelist.
|
boolean |
XObject.notEquals(XObject obj2)
Tell if two objects are functionally not equal.
|
boolean |
XNodeSet.notEquals(XObject obj2)
Tell if two objects are functionally not equal.
|
double |
XRTreeFragSelectWrapper.num()
Cast result object to a number.
|
double |
XRTreeFrag.num()
Cast result object to a number.
|
double |
XObject.num()
Cast result object to a number.
|
double |
XNumber.num(XPathContext xctxt)
Evaluate expression to a number.
|
double |
XObject.numWithSideEffects()
Cast result object to a number, but allow side effects, such as the
incrementing of an iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Or.bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
|
boolean |
Equals.bool(XPathContext xctxt)
Execute a binary operation by calling execute on each of the operands,
and then calling the operate method on the derived class.
|
boolean |
Bool.bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
|
boolean |
And.bool(XPathContext xctxt)
Evaluate this operation directly to a boolean.
|
XObject |
Variable.execute(XPathContext xctxt)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject |
UnaryOperation.execute(XPathContext xctxt)
Execute the operand and apply the unary operation to the result.
|
XObject |
Or.execute(XPathContext xctxt)
OR two expressions and return the boolean result.
|
XObject |
Operation.execute(XPathContext xctxt)
Execute a binary operation by calling execute on each of the operands,
and then calling the operate method on the derived class.
|
XObject |
And.execute(XPathContext xctxt)
AND two expressions and return the boolean result.
|
XObject |
VariableSafeAbsRef.execute(XPathContext xctxt,
boolean destructiveOK)
Dereference the variable, and return the reference value.
|
XObject |
Variable.execute(XPathContext xctxt,
boolean destructiveOK)
Dereference the variable, and return the reference value.
|
double |
Plus.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Number.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Neg.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Mult.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Mod.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Minus.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
double |
Div.num(XPathContext xctxt)
Evaluate this operation directly to a double.
|
abstract XObject |
UnaryOperation.operate(XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
String.operate(XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Number.operate(XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Neg.operate(XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Bool.operate(XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Quo.operate(XObject left,
XObject right)
Deprecated.
Apply the operation to two operands, and return the result.
|
XObject |
Plus.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Operation.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
NotEquals.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Mult.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Mod.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Minus.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Lte.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Lt.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Gte.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Gt.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Equals.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
XObject |
Div.operate(XObject left,
XObject right)
Apply the operation to two operands, and return the result.
|
Modifier and Type | Method and Description |
---|---|
XObject |
UnionPattern.execute(XPathContext xctxt)
Test a node to see if it matches any of the patterns in the union.
|
XObject |
StepPattern.execute(XPathContext xctxt)
Execute this pattern step, including predicates.
|
XObject |
NodeTest.execute(XPathContext xctxt)
Test the current node to see if it matches the given node test.
|
XObject |
FunctionPattern.execute(XPathContext xctxt)
Test a node to see if it matches the given node test.
|
XObject |
ContextMatchStepPattern.execute(XPathContext xctxt)
Execute this pattern step, including predicates.
|
XObject |
StepPattern.execute(XPathContext xctxt,
int currentNode)
Execute this pattern step, including predicates.
|
XObject |
NodeTest.execute(XPathContext xctxt,
int context)
Tell what the test score is for the given node.
|
XObject |
FunctionPattern.execute(XPathContext xctxt,
int context)
Test a node to see if it matches the given node test.
|
XObject |
StepPattern.execute(XPathContext xctxt,
int currentNode,
DTM dtm,
int expType)
Execute an expression in the XPath runtime context, and return the
result of the expression.
|
XObject |
NodeTest.execute(XPathContext xctxt,
int context,
DTM dtm,
int expType)
Tell what the test score is for the given node.
|
XObject |
FunctionPattern.execute(XPathContext xctxt,
int context,
DTM dtm,
int expType)
Test a node to see if it matches the given node test.
|
XObject |
ContextMatchStepPattern.executeRelativePathPattern(XPathContext xctxt,
StepPattern prevStep)
Execute the match pattern step relative to another step.
|
double |
StepPattern.getMatchScore(XPathContext xctxt,
int context)
Get the match score of the given node.
|
Copyright © 2014 Apache XML Project. All Rights Reserved.