net.sf.saxon.instruct
Class Text

java.lang.Object
  extended by net.sf.saxon.instruct.Instruction
      extended by net.sf.saxon.instruct.ExprInstruction
          extended by net.sf.saxon.instruct.SimpleNodeConstructor
              extended by net.sf.saxon.instruct.Text
All Implemented Interfaces:
Serializable, SourceLocator, Expression

public class Text
extends SimpleNodeConstructor

Handler for xsl:text elements in stylesheet.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.saxon.instruct.SimpleNodeConstructor
select, separator
 
Fields inherited from class net.sf.saxon.instruct.Instruction
children
 
Constructor Summary
Text(boolean disable)
          Create an xsl:text instruction
 
Method Summary
 SequenceType getResultType()
          Get the static type of the value returned by the instruction
 TailCall processLeavingTail(XPathContext context)
          Process this instruction, that is, produce a processing-instruction node in the result sequence.
 void promoteInst(PromotionOffer offer)
           
 void setInstructionDetails(Controller controller, NamePool namePool, InstructionDetails details)
          Get the name of this instruction for diagnostic and tracing purposes
 void typeCheck(StaticContext env)
           
 
Methods inherited from class net.sf.saxon.instruct.SimpleNodeConstructor
analyze, display, evaluateItem, evaluateNameCode, expandChildren, getXPathExpressions, setSelect, setSeparator
 
Methods inherited from class net.sf.saxon.instruct.ExprInstruction
effectiveBooleanValue, evaluateAsString, getCardinality, getDependencies, getItemType, getSpecialProperties, getSubExpressions, iterate, promote, simplify
 
Methods inherited from class net.sf.saxon.instruct.Instruction
assembleParams, assembleTunnelParams, getChildren, getColumnNumber, getInstructionDetails, getInstructionName, getLineNumber, getPublicId, getSystemId, getSystemId, process, processChildren, processChildrenLeavingTail, recoverableError, setChildren, setSourceLocation, styleError, styleError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text(boolean disable)
Create an xsl:text instruction

Parameters:
disable - set to true if output escaping is to be disabled
Method Detail

setInstructionDetails

public void setInstructionDetails(Controller controller,
                                  NamePool namePool,
                                  InstructionDetails details)
Get the name of this instruction for diagnostic and tracing purposes

Specified by:
setInstructionDetails in class Instruction

getResultType

public SequenceType getResultType()
Description copied from class: Instruction
Get the static type of the value returned by the instruction

Overrides:
getResultType in class Instruction
Returns:
the SequenceType that the returned value will conform to.

processLeavingTail

public TailCall processLeavingTail(XPathContext context)
                            throws TransformerException
Process this instruction, that is, produce a processing-instruction node in the result sequence.

Specified by:
processLeavingTail in class Instruction
Parameters:
context - the dynamic context of this transformation
Returns:
always returns null in this implementation
Throws:
TransformerException - if any non-recoverable dynamic error occurs

promoteInst

public void promoteInst(PromotionOffer offer)
Specified by:
promoteInst in class ExprInstruction

typeCheck

public void typeCheck(StaticContext env)
Specified by:
typeCheck in class SimpleNodeConstructor