public class Accumulator extends Object
Constructor and Description |
---|
Accumulator() |
Modifier and Type | Method and Description |
---|---|
StructuredQName |
getFirstName()
Get the name of the pre-descent function
|
Expression |
getInitialValueExpression()
Get the expression that computes the initial value of the accumulator
|
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
|
StructuredQName |
getSecondName()
Get the name of the post-descent function
|
SequenceType |
getType()
Get the declared type of the accumulator.
|
boolean |
isStreamable()
Ask whether the accumulator is streamable
|
void |
setFirstName(StructuredQName firstName)
Set the name of the pre-descent function
|
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 |
setSecondName(StructuredQName secondName)
Set the name of the post-descent function
|
void |
setStreamable(boolean streamable)
Say whether the accumulator is streamable
|
void |
setType(SequenceType type)
Set the declared type of the accumulator.
|
public boolean isStreamable()
public void setStreamable(boolean streamable)
streamable
- true if it is streamablepublic StructuredQName getFirstName()
public void setFirstName(StructuredQName firstName)
firstName
- the function name (always present)public StructuredQName getSecondName()
public void setSecondName(StructuredQName secondName)
secondName
- the function name, or null if none is definedpublic 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 SequenceType getType()
public void setType(SequenceType type)
type
- the declared type of the accumulatorCopyright (c) 2004-2013 Saxonica Limited. All rights reserved.