|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.saxon.instruct.Instruction | +--net.sf.saxon.instruct.ExprInstruction | +--net.sf.saxon.instruct.SimpleNodeConstructor
Common superclass for XSLT instructions whose content template produces a text value: xsl:attribute, xsl:comment, xsl:processing-instruction, xsl:namespace, and xsl:text
Field Summary | |
protected Expression |
select
|
protected Expression |
separator
|
Fields inherited from class net.sf.saxon.instruct.Instruction |
children |
Constructor Summary | |
SimpleNodeConstructor()
|
Method Summary | |
Expression |
analyze(StaticContext env)
The analyze() method is called in XQuery, where node constructors are implemented as Expressions. |
void |
display(int level,
NamePool pool)
Display this instruction as an expression, for diagnostics |
Item |
evaluateItem(XPathContext context)
Evaluate as an expression. |
protected int |
evaluateNameCode(XPathContext context)
|
java.lang.CharSequence |
expandChildren(XPathContext context)
Expand the stylesheet elements subordinate to this one, returning the result as a string. |
void |
getXPathExpressions(java.util.List list)
Get all the XPath expressions associated with this instruction (in XSLT terms, the expression present on attributes of the instruction, as distinct from the child instructions in a sequence construction) |
void |
promoteInst(PromotionOffer offer)
Offer promotion for subexpressions. |
void |
setSelect(Expression select)
|
void |
setSeparator(Expression separator)
|
abstract void |
typeCheck(StaticContext env)
|
Methods inherited from class net.sf.saxon.instruct.ExprInstruction |
effectiveBooleanValue, evaluateAsString, getDependencies, getSpecialProperties, getSubExpressions, iterate, promote, simplify |
Methods inherited from class net.sf.saxon.instruct.Instruction |
assembleParams, assembleTunnelParams, displayChildren, dynamicError, dynamicError, getCardinality, getChildren, getColumnNumber, getExecutable, getInstructionName, getInstructionNamespace, getItemType, getLineNumber, getPublicId, getSourceLocator, getSystemId, process, processChildren, processChildrenLeavingTail, processLeavingTail, recoverableError, setChildren, setExecutable, setSourceLocation |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.saxon.expr.Expression |
getCardinality, getItemType |
Field Detail |
protected Expression select
protected Expression separator
Constructor Detail |
public SimpleNodeConstructor()
Method Detail |
public final void setSelect(Expression select)
public final void setSeparator(Expression separator)
public abstract void typeCheck(StaticContext env) throws XPathException
XPathException
public Expression analyze(StaticContext env) throws XPathException
analyze
in interface Expression
analyze
in class ExprInstruction
env
- The static context for the query
XPathException
- if any static errors are found in this expression
or any of its childrenpublic void getXPathExpressions(java.util.List list)
ExprInstruction
getXPathExpressions
in class ExprInstruction
list
- A list to be populated with the list of XPath expressionspublic java.lang.CharSequence expandChildren(XPathContext context) throws javax.xml.transform.TransformerException
context
- The dynamic context for the transformation
javax.xml.transform.TransformerException
public Item evaluateItem(XPathContext context) throws XPathException
evaluateItem
in interface Expression
evaluateItem
in class ExprInstruction
context
- The context in which the expression is to be evaluated
XPathException
- if any dynamic error occurs evaluating the
expressionprotected int evaluateNameCode(XPathContext context) throws XPathException, javax.xml.transform.TransformerException
XPathException
javax.xml.transform.TransformerException
public void display(int level, NamePool pool)
level
- indentation level for this expressionpublic void promoteInst(PromotionOffer offer) throws XPathException
promoteInst
in class ExprInstruction
offer
- 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 expression
XPathException
- if any error is detected
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |