public class Accumulator extends ComponentCode<Accumulator>
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
|
void |
export(ExpressionPresenter out)
Diagnostic print of expression structure.
|
StructuredQName |
getAccumulatorName()
Get the name of the accumulator
|
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.
|
SimpleMode |
getPostDescentRules()
Get the set of rules for phase="end", held in the form of a Mode object
|
SimpleMode |
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
|
SymbolicName |
getSymbolicName()
Get the symbolic name of the component
|
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 |
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(SimpleMode postDescentRules)
Set the set of rules for phase="end", held in the form of a Mode object
|
void |
setPreDescentRules(SimpleMode 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, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, makeDeclaringComponent, saveLocation, setBody, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
public SymbolicName getSymbolicName()
getSymbolicName
in class ComponentCode<Accumulator>
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 SimpleMode getPreDescentRules()
public void setPreDescentRules(SimpleMode preDescentRules)
preDescentRules
- the Mode object containing all the rules that apply to phase="start"public SimpleMode getPostDescentRules()
public void setPostDescentRules(SimpleMode 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 boolean isCompatible(Accumulator other)
other
- the accumlator that this one overridespublic int getComponentKind()
StandardNames.XSL_FUNCTION
getComponentKind
in class ComponentCode<Accumulator>
public int getConstructType()
StandardNames
: all less than 1024)
or it will be a constant in class LocationKind
.public StructuredQName getObjectName()
public void export(ExpressionPresenter out)
export
in class ComponentCode<Accumulator>
out
- the expression presenter used to display the structureCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.