java.io.Serializable, javax.xml.transform.SourceLocator, LocationProvider, SaxonLocator, EvaluableItem, SequenceIterable, TailCallReturner, InstructionInfo, org.xml.sax.Locatorpublic final class Comment extends SimpleNodeConstructor
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticPropertiesselect| Constructor | Description |
|---|---|
Comment() |
Construct the instruction
|
| Modifier and Type | Method | Description |
|---|---|---|
protected java.lang.String |
checkContent(java.lang.String comment,
XPathContext context) |
Check the content of the node, and adjust it if necessary
|
Expression |
copy() |
Copy an expression.
|
void |
explain(ExpressionPresenter out) |
Diagnostic print of expression structure.
|
int |
getCardinality() |
Determine the static cardinality of the expression.
|
int |
getInstructionNameCode() |
Get the instruction name, for diagnostics and tracing
return the string "xsl:comment"
|
ItemType |
getItemType(TypeHierarchy th) |
Get the item type of the items returned by evaluating this instruction
|
void |
localTypeCheck(ExpressionVisitor visitor,
ItemType contextItemType) |
Method to perform type-checking specific to the kind of instruction
|
TailCall |
processLeavingTail(XPathContext context) |
Process this instruction, to output a Comment Node
|
addToPathMap, adoptChildExpression, checkForUpdatingSubexpressions, checkPermittedContents, computeDependencies, computeStaticProperties, display, doPromotion, dynamicError, effectiveBooleanValue, evaluatePendingUpdates, explain, findParentOf, getColumnNumber, getColumnNumber, getContainer, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLineNumber, getLocationId, getLocationProvider, getObjectName, getProperties, getProperty, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, getSystemId, hasLoopingSubexpression, implementsStaticTypeCheck, isUpdatingExpression, iterateEvents, markTailFunctionCalls, resetLocalStaticProperties, setContainer, setFiltered, setFlattened, setLocationId, staticTypeCheck, suppressValidation, toString, typeErrorassembleParams, assembleTunnelParams, dynamicError, evaluateAsString, getConstructType, getImplementationMethod, getSourceLocator, isXSLT, process, promoteclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomputeCardinality, computeSpecialProperties, createsNewNodes, evaluateItem, evaluateNameCode, expandChildren, getSelect, iterate, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setSelect, simplify, typeCheckpublic int getInstructionNameCode()
getInstructionNameCode in class Instructionpublic ItemType getItemType(TypeHierarchy th)
InstructiongetItemType in class Instructionth - the type hierarchy cachepublic int getCardinality()
ExpressiongetCardinality in class Expressionpublic Expression copy()
copy in class Expressionpublic void localTypeCheck(ExpressionVisitor visitor, ItemType contextItemType) throws XPathException
SimpleNodeConstructorlocalTypeCheck in class SimpleNodeConstructorvisitor - an expression visitorcontextItemType - the static type of the context itemXPathExceptionpublic TailCall processLeavingTail(XPathContext context) throws XPathException
processLeavingTail in interface TailCallReturnerprocessLeavingTail in class Instructioncontext - the dynamic context for this transformationXPathExceptionprotected java.lang.String checkContent(java.lang.String comment,
XPathContext context)
throws XPathException
checkContent in class SimpleNodeConstructorcomment - the supplied contentcontext - the dynamic contextXPathException - if the content is invalidpublic void explain(ExpressionPresenter out)
explain in class Expressionout - the expression presenter used to display the structure