public class FunctionPattern extends StepPattern
m_axis
m_name, m_whatToShow, SCORE_NODETEST, SCORE_NONE, SCORE_NSWILD, SCORE_OTHER, SCORE_QNAME, SHOW_BYFUNCTION, SUPPORTS_PRE_STRIPPING, WILD
Constructor and Description |
---|
FunctionPattern(Expression expr,
int axis,
int predaxis)
Construct a FunctionPattern from a
expression . |
Modifier and Type | Method and Description |
---|---|
void |
calcScore()
Static calc of match score.
|
protected void |
callSubtreeVisitors(XPathVisitor visitor)
Call the visitor for the function.
|
XObject |
execute(XPathContext xctxt)
Test a node to see if it matches the given node test.
|
XObject |
execute(XPathContext xctxt,
int context)
Test a node to see if it matches the given node test.
|
XObject |
execute(XPathContext xctxt,
int context,
DTM dtm,
int expType)
Test a node to see if it matches the given node test.
|
void |
fixupVariables(Vector vars,
int globalsSize)
This function is used to fixup variables from QNames to stack frame
indexes at stylesheet build time.
|
calcTargetString, callVisitors, canTraverseOutsideSubtree, deepEquals, executePredicates, executeRelativePathPattern, getAxis, getExpression, getLastPos, getMatchScore, getPredicate, getPredicateCount, getPredicates, getProximityPosition, getRelativePathPattern, getTargetString, setAxis, setExpression, setPredicates, setRelativePathPattern, toString
debugWhatToShow, getDefaultScore, getLocalName, getNamespace, getNodeTypeTest, getStaticScore, getWhatToShow, initNodeTest, initNodeTest, setLocalName, setNamespace, setStaticScore, setWhatToShow
asIterator, asIteratorRaw, asNode, assertion, bool, error, execute, executeCharsToContentHandler, exprAddChild, exprGetChild, exprGetNumChildren, exprGetParent, exprSetParent, getColumnNumber, getExpressionOwner, getLineNumber, getPublicId, getSystemId, isNodesetExpr, isSameClass, isStableNumber, num, warn, xstr
public FunctionPattern(Expression expr, int axis, int predaxis)
expression
.
NEEDSDOC @param exprpublic final void calcScore()
calcScore
in class StepPattern
public void fixupVariables(Vector vars, int globalsSize)
fixupVariables
in class StepPattern
vars
- List of QNames that correspond to variables. This list
should be searched backwards for the first qualified name that
corresponds to the variable reference qname. The position of the
QName in the vector from the start of the vector will be its position
in the stack frame (but variables above the globalsTop value will need
to be offset to the current stack frame).globalsSize
- The number of variables in the global variable area.public XObject execute(XPathContext xctxt, int context) throws TransformerException
execute
in class StepPattern
xctxt
- XPath runtime context.context
- The current node context.NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.TransformerException
public XObject execute(XPathContext xctxt, int context, DTM dtm, int expType) throws TransformerException
execute
in class StepPattern
xctxt
- XPath runtime context.context
- The currentNode.dtm
- The DTM of the current node.expType
- The expanded type ID of the current node.NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.TransformerException
public XObject execute(XPathContext xctxt) throws TransformerException
execute
in class StepPattern
xctxt
- XPath runtime context.NodeTest.SCORE_NODETEST
,
NodeTest.SCORE_NONE
,
NodeTest.SCORE_NSWILD
,
NodeTest.SCORE_QNAME
, or
NodeTest.SCORE_OTHER
.TransformerException
protected void callSubtreeVisitors(XPathVisitor visitor)
callSubtreeVisitors
in class StepPattern
Copyright © 2019 JBoss by Red Hat. All rights reserved.