public class Accumulator extends Actor
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 presenter)
Export expression structure.
|
void |
export(ExpressionPresenter out,
java.util.Map<Component,java.lang.Integer> componentIdMap)
Export 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
|
boolean |
isTracing()
Ask whether diagnostic tracing is enabled for this accumulator
|
boolean |
isUniversallyApplicable()
Ask whether this accumulator is universally appicable to all documents
|
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 |
setTracing(boolean tracing)
Say whether diagnostic tracing is to be enabled for this accumulator
|
void |
setType(SequenceType type)
Set the declared type of the accumulator.
|
void |
setUniversallyApplicable(boolean universal)
Say whether this accumulator is universally appicable to all documents
|
allocateAllBindingSlots, allocateBindingSlotsRecursive, getBody, getColumnNumber, getDeclaredVisibility, getDeclaringComponent, getLineNumber, getLocation, getPackageData, getProperties, getProperty, getPublicId, getRetainedStaticContext, getStackFrameMap, getSystemId, isExportable, makeDeclaringComponent, saveLocation, setBody, setChildExpression, setDeclaredVisibility, setDeclaringComponent, setLineNumber, setPackageData, setRetainedStaticContext, setStackFrameMap, setSystemId
public SymbolicName getSymbolicName()
getSymbolicName
in class Actor
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 void setUniversallyApplicable(boolean universal)
universal
- true if this accumulator is universally applicablepublic boolean isUniversallyApplicable()
public boolean isTracing()
public void setTracing(boolean tracing)
tracing
- true if diagnostic tracing is to be enabledpublic 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 Actor
public int getConstructType()
StandardNames
: all less than 1024)
or it will be a constant in class LocationKind
.public StructuredQName getObjectName()
public void export(ExpressionPresenter presenter) throws XPathException
export
in class Actor
presenter
- the expression presenter used to generate the XML representation of the structureXPathException
public void export(ExpressionPresenter out, java.util.Map<Component,java.lang.Integer> componentIdMap) throws XPathException
out
- the expression presenter used to display the structureXPathException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.