Package net.sf.saxon.trace
Interface InstructionInfo
- All Superinterfaces:
LocationProvider
,Locator
,SaxonLocator
,SourceLocator
- All Known Implementing Classes:
AbsentExtensionElement
,ExtensionInstruction
,InstructionDetails
,LiteralResultElement
,SaxonAssign
,SaxonCallTemplate
,SaxonCollation
,SaxonDoctype
,SaxonEntityRef
,SaxonImportQuery
,SaxonScript
,SaxonWhile
,SQLClose
,SQLColumn
,SQLConnect
,SQLDelete
,SQLInsert
,SQLQuery
,SQLUpdate
,StyleElement
,TraceExpression
,XQueryFunction
,XSLAnalyzeString
,XSLApplyImports
,XSLApplyTemplates
,XSLAttribute
,XSLAttributeSet
,XSLCallTemplate
,XSLCharacterMap
,XSLChoose
,XSLComment
,XSLCopy
,XSLCopyOf
,XSLDecimalFormat
,XSLDocument
,XSLElement
,XSLFallback
,XSLForEach
,XSLForEachGroup
,XSLFunction
,XSLGeneralIncorporate
,XSLGeneralVariable
,XSLIf
,XSLImport
,XSLImportSchema
,XSLInclude
,XSLKey
,XSLMatchingSubstring
,XSLMessage
,XSLNamespace
,XSLNamespaceAlias
,XSLNextMatch
,XSLNumber
,XSLOtherwise
,XSLOutput
,XSLOutputCharacter
,XSLParam
,XSLPerformSort
,XSLPreserveSpace
,XSLProcessingInstruction
,XSLResultDocument
,XSLSequence
,XSLSort
,XSLStringConstructor
,XSLStylesheet
,XSLTemplate
,XSLText
,XSLValueOf
,XSLVariable
,XSLVariableDeclaration
,XSLWhen
,XSLWithParam
Information about an instruction in the stylesheet, made
available at run-time to a TraceListener
-
Method Summary
Modifier and TypeMethodDescriptionint
Get the type of construct.int
Get the line number of the instruction in the source stylesheet module.Get the namespace context of the instruction.int
Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc.Get an iterator over all the properties available.getProperty
(String name) Get the value of a particular property of the instruction.Get the system identifier (URI) of the source stylesheet or query module containing the instruction.Methods inherited from interface net.sf.saxon.event.LocationProvider
getLineNumber, getSystemId
Methods inherited from interface org.xml.sax.Locator
getColumnNumber, getPublicId
Methods inherited from interface javax.xml.transform.SourceLocator
getColumnNumber, getPublicId
-
Method Details
-
getConstructType
int getConstructType()Get the type of construct. This will either be the fingerprint of a standard XSLT instruction name (values inStandardNames
: all less than 1024) or it will be a constant in classLocation
. -
getObjectNameCode
int getObjectNameCode()Get a name identifying the object of the expression, for example a function name, template name, variable name, key name, element name, etc. This is used only where the name is known statically. -
getSystemId
String getSystemId()Get the system identifier (URI) of the source stylesheet or query module containing the instruction. This will generally be an absolute URI. If the system identifier is not known, the method may return null. In some cases, for example where XML external entities are used, the correct system identifier is not always retained.- Specified by:
getSystemId
in interfaceLocator
- Specified by:
getSystemId
in interfaceSourceLocator
-
getLineNumber
int getLineNumber()Get the line number of the instruction in the source stylesheet module. If this is not known, or if the instruction is an artificial one that does not relate to anything in the source code, the value returned may be -1.- Specified by:
getLineNumber
in interfaceLocator
- Specified by:
getLineNumber
in interfaceSourceLocator
-
getNamespaceResolver
NamespaceResolver getNamespaceResolver()Get the namespace context of the instruction. This will not always be available, in which case the method returns null. -
getProperty
Get the value of a particular property of the instruction. Properties of XSLT instructions are generally known by the name of the stylesheet attribute that defines them.- Parameters:
name
- The name of the required property- Returns:
- The value of the requested property, or null if the property is not available
-
getProperties
Iterator getProperties()Get an iterator over all the properties available. The values returned by the iterator will be of type String, and each string can be supplied as input to the getProperty() method to retrieve the value of the property. The iterator may return properties whose value is null.
-