public class ProcessingInstruction extends SimpleNodeConstructor
selectlocationId, staticPropertiesEVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD| Constructor and Description |
|---|
ProcessingInstruction(Expression name)
Create an xsl:processing-instruction instruction
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
checkContent(java.lang.String data,
XPathContext context)
Check the content of the node, and adjust it if necessary
|
void |
display(int level,
java.io.PrintStream out,
Configuration config)
Display this instruction as an expression, for diagnostics
|
int |
evaluateNameCode(XPathContext context) |
int |
getCardinality()
Determine the static cardinality of the expression.
|
int |
getDependencies()
Determine which aspects of the context the expression depends on.
|
int |
getInstructionNameCode()
Get the name of this instruction for diagnostic and tracing purposes
|
ItemType |
getItemType(TypeHierarchy th)
Get the item type of the items returned by evaluating this instruction
|
java.util.Iterator |
iterateSubExpressions()
Get the immediate sub-expressions of this expression.
|
void |
localTypeCheck(StaticContext env,
ItemType contextItemType) |
TailCall |
processLeavingTail(XPathContext context)
Process this instruction, that is, produce a processing-instruction node in the
result sequence.
|
protected void |
promoteInst(PromotionOffer offer)
Offer promotion for subexpressions.
|
boolean |
replaceSubExpression(Expression original,
Expression replacement)
Replace one subexpression by a replacement subexpression
|
Expression |
simplify(StaticContext env)
Simplify an expression.
|
computeSpecialProperties, createsNewNodes, evaluateItem, expandChildren, getSelect, iterate, optimize, setSelect, typeCheckappendItem, assembleParams, assembleTunnelParams, computeCardinality, dynamicError, evaluateAsString, getImplementationMethod, getInstructionInfo, getSourceLocator, isXSLT, process, promoteadoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeErrorpublic ProcessingInstruction(Expression name)
name - the expression used to compute the name of the generated
processing-instructionpublic int getInstructionNameCode()
getInstructionNameCode in class Instructionpublic ItemType getItemType(TypeHierarchy th)
InstructiongetItemType in interface ExpressiongetItemType in class Instructionpublic int getCardinality()
ComputedExpressiongetCardinality in interface ExpressiongetCardinality in class ComputedExpressionpublic Expression simplify(StaticContext env) throws XPathException
Instructionsimplify in interface Expressionsimplify in class SimpleNodeConstructorenv - the static contextXPathException - if an error is discovered during expression
rewritingpublic void localTypeCheck(StaticContext env, ItemType contextItemType) throws XPathException
localTypeCheck in class SimpleNodeConstructorXPathExceptionpublic int getDependencies()
ComputedExpressiongetDependencies in interface ExpressiongetDependencies in class ComputedExpressionpublic java.util.Iterator iterateSubExpressions()
ComputedExpressioniterateSubExpressions in interface ExpressioniterateSubExpressions in class SimpleNodeConstructorpublic boolean replaceSubExpression(Expression original, Expression replacement)
replaceSubExpression in interface ContainerreplaceSubExpression in class SimpleNodeConstructororiginal - the original subexpressionreplacement - the replacement subexpressionprotected void promoteInst(PromotionOffer offer) throws XPathException
promoteInst in class SimpleNodeConstructoroffer - details of the offer, for example the offer to move
expressions that don't depend on the context to an outer level in
the containing expressionXPathException - if any error is detectedpublic TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - the dynamic context of this transformationXPathException - if any non-recoverable dynamic error occursprotected java.lang.String checkContent(java.lang.String data,
XPathContext context)
throws DynamicError
checkContent in class SimpleNodeConstructordata - the supplied contentcontext - the dynamic contextDynamicError - if the content is invalidpublic int evaluateNameCode(XPathContext context) throws XPathException
evaluateNameCode in class SimpleNodeConstructorXPathExceptionpublic void display(int level,
java.io.PrintStream out,
Configuration config)
SimpleNodeConstructordisplay in interface Expressiondisplay in class SimpleNodeConstructorlevel - indentation level for this expressionout - Output destination