org.cdlib.xtf.saxonExt.exec
Class InputElement.InputInstruction

Object
  extended by Expression
      extended by Instruction
          extended by GeneralVariable
              extended by InputElement.InputInstruction
All Implemented Interfaces:
Serializable, SourceLocator, Binding, Container, EvaluableItem, SequenceIterable, TailCallReturner, InstructionInfoProvider
Enclosing class:
InputElement

protected static class InputElement.InputInstruction
extends GeneralVariable

See Also:
Serialized Form

Field Summary
 
Fields inherited from class GeneralVariable
evaluationMode, nameCode, referenceCount, slotNumber
 
Fields inherited from class Expression
EVALUATE_METHOD, ITERATE_METHOD, locationId, PROCESS_METHOD, staticProperties
 
Constructor Summary
InputElement.InputInstruction()
           
 
Method Summary
 ValueRepresentation evaluateVariable(XPathContext context)
          Evaluate the variable (method exists only to satisfy the interface)
 InstructionInfo getInstructionInfo()
           
 byte[] getStream(XPathContext context)
          Gets a proper byte stream for the value.
 TailCall processLeavingTail(XPathContext context)
           
 
Methods inherited from class GeneralVariable
display, evaluateItem, getCardinality, getInstructionNameCode, getItemType, getLocalSlotNumber, getNameCode, getRequiredType, getSelectExpression, getSelectValue, getSlotNumber, getVariableFingerprint, getVariableName, init, isAssignable, isGlobal, isImplicitlyRequiredParam, isRequiredParam, isTunnelParam, iterate, iterateSubExpressions, optimize, promoteInst, replaceSubExpression, setAssignable, setImplicitlyRequiredParam, setNameCode, setReferenceCount, setRequiredParam, setRequiredType, setSelectExpression, setSlotNumber, setTunnel, setVariableName, simplify, typeCheck
 
Methods inherited from class Instruction
appendItem, assembleParams, assembleTunnelParams, computeCardinality, computeSpecialProperties, createsNewNodes, dynamicError, evaluateAsString, getImplementationMethod, getSourceLocator, isXSLT, process, promote
 
Methods inherited from class Expression
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, getColumnNumber, getConstructType, getContainingProcedure, getDependencies, getExecutable, getHostLanguage, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, markTailFunctionCalls, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface SourceLocator
getColumnNumber, getLineNumber, getPublicId, getSystemId
 

Constructor Detail

InputElement.InputInstruction

public InputElement.InputInstruction()
Method Detail

getInstructionInfo

public InstructionInfo getInstructionInfo()
Specified by:
getInstructionInfo in interface InstructionInfoProvider
Overrides:
getInstructionInfo in class Instruction

processLeavingTail

public TailCall processLeavingTail(XPathContext context)
Specified by:
processLeavingTail in interface TailCallReturner
Specified by:
processLeavingTail in class Instruction

evaluateVariable

public ValueRepresentation evaluateVariable(XPathContext context)
                                     throws XPathException
Evaluate the variable (method exists only to satisfy the interface)

Throws:
XPathException

getStream

public byte[] getStream(XPathContext context)
                 throws XPathException
Gets a proper byte stream for the value. If the value is simply a string, it will be a UTF-8 encoding of that string. If the value is some structured XML, it will be XML with a header.

Parameters:
context - Context for the evaluation
Returns:
A byte stream, properly formatted
Throws:
XPathException