public class Accumulator extends ComponentBody
body
Constructor and Description |
---|
Accumulator() |
Modifier and Type | Method and Description |
---|---|
void |
addChildExpression(Expression expression)
Add an expression to the list of expressions used by this accumulator
|
StructuredQName |
getAccumulatorName()
Get the name of the accumulator
|
Pattern |
getAppliesTo()
Get the pattern which determins which documents this accumulator applies to
|
int |
getComponentKind()
Get the kind of component that this represents, using integer constants such as
StandardNames.XSL_FUNCTION |
int |
getConstructType()
Get the type of construct.
|
int |
getImportPrecedence()
Get the import precedence
|
Expression |
getInitialValueExpression()
Get the expression that computes the initial value of the accumulator
|
StructuredQName |
getObjectName()
Get a name identifying the object of the expression, for example a function name, template name,
variable name, key name, element name, etc.
|
Mode |
getPostDescentRules()
Get the set of rules for phase="end", held in the form of a Mode object
|
Mode |
getPreDescentRules()
Get the set of rules for phase="start", held in the form of a Mode object
|
SlotManager |
getSlotManagerForInitialValueExpression()
Get the slotManager to be used for evaluating the initial-value expression
|
SequenceType |
getType()
Get the declared type of the accumulator.
|
boolean |
isCompatible(Accumulator other)
Determine whether this accumulator is compatible with one that it overrides
|
boolean |
isDeclaredStreamable()
Ask whether the accumulator is declared streamable
|
void |
setAccumulatorName(StructuredQName firstName)
Set the name of the pre-descent function
|
void |
setAppliesTo(Pattern pattern)
Set the pattern which determines which documents this accumulator applies to
|
void |
setDeclaredStreamable(boolean streamable)
Say whether the accumulator is declared streamable
|
void |
setImportPrecedence(int importPrecedence)
Set the import precedence
|
void |
setInitialValueExpression(Expression initialValueExpression)
Set the expression that computes the initial value of the accumulator
|
void |
setPostDescentRules(Mode postDescentRules)
Set the set of rules for phase="end", held in the form of a Mode object
|
void |
setPreDescentRules(Mode preDescentRules)
Set the set of rules for phase="start", held in the form of a Mode object
|
void |
setSlotManagerForInitialValueExpression(SlotManager slotManagerForInitialValueExpression)
Set the slotManager to be used for evaluating the initial-value expression
|
void |
setType(SequenceType type)
Set the declared type of the accumulator.
|
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getColumnNumber, getConfiguration, getContainerGranularity, getDeclaringComponent, getHostLanguage, getLineNumber, getLocationProvider, getPackageData, getProperties, getProperty, getPublicId, getStackFrameMap, getSystemId, makeDeclaringComponent, setBody, setHostLanguage, setLineNumber, setPackageData, setStackFrameMap, setSystemId
public boolean isDeclaredStreamable()
public void setDeclaredStreamable(boolean streamable)
streamable
- true if it is declared with streamable="yes"public StructuredQName getAccumulatorName()
public void setAccumulatorName(StructuredQName firstName)
firstName
- the function name (always present)public int getImportPrecedence()
public void setImportPrecedence(int importPrecedence)
importPrecedence
- the import precedence of the accumulatorpublic SlotManager getSlotManagerForInitialValueExpression()
public void setSlotManagerForInitialValueExpression(SlotManager slotManagerForInitialValueExpression)
slotManagerForInitialValueExpression
- the slotManager for the initial-value expression
(defining any local variables declared and used within this expression)public Mode getPreDescentRules()
public void setPreDescentRules(Mode preDescentRules)
preDescentRules
- the Mode object containing all the rules that apply to phase="start"public Mode getPostDescentRules()
public void setPostDescentRules(Mode postDescentRules)
postDescentRules
- the Mode object containing all the rules that apply to phase="end"public Expression getInitialValueExpression()
public void setInitialValueExpression(Expression initialValueExpression)
initialValueExpression
- the initial value expressionpublic void addChildExpression(Expression expression)
expression
- the expression to be added to the listpublic SequenceType getType()
public void setType(SequenceType type)
type
- the declared type of the accumulatorpublic void setAppliesTo(Pattern pattern)
pattern
- the patternpublic Pattern getAppliesTo()
public boolean isCompatible(Accumulator other)
other
- the accumlator that this one overridespublic int getComponentKind()
StandardNames.XSL_FUNCTION
getComponentKind
in class ComponentBody
public int getConstructType()
StandardNames
: all less than 1024)
or it will be a constant in class Location
.public StructuredQName getObjectName()
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.