public interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>> extends DescrBuilder<P,AccumulateDescr>
Modifier and Type | Method and Description |
---|---|
AccumulateDescrBuilder<P> |
action(String block)
For accumulate CEs that use custom code blocks, this call
sets the content of the action code block.
|
AccumulateDescrBuilder<P> |
constraint(String constr) |
P |
end()
Returns the parent container of this descr builder.
|
AccumulateDescrBuilder<P> |
function(String name,
String bind,
boolean isUnification,
String... parameters)
For accumulate CEs that use accumulate functions, this call
instantiate one accumulate function call.
|
AccumulateDescrBuilder<P> |
init(String block)
For accumulate CEs that use custom code blocks, this call
sets the content of the init code block.
|
AccumulateDescrBuilder<P> |
result(String expr)
For accumulate CEs that use custom code blocks, this call
sets the content of the result expression.
|
AccumulateDescrBuilder<P> |
reverse(String block)
For accumulate CEs that use custom code blocks, this call
sets the content of the reverse code block.
|
CEDescrBuilder<AccumulateDescrBuilder<P>,AndDescr> |
source()
Defines the source CE for the Accumulate CE.
|
endCharacter, endLocation, getDescr, startCharacter, startLocation
CEDescrBuilder<AccumulateDescrBuilder<P>,AndDescr> source()
AccumulateDescrBuilder<P> function(String name, String bind, boolean isUnification, String... parameters)
name
- the name of the function being called. Mandatory non-null parameter.bind
- the name of the bound variable if there is one. Null if no binding should be made.isUnification
- true if the bound variable is expected to unify with the result of the acc function. false otherwiseparameters
- the array of parameters to the function.AccumulateDescrBuilder<P> init(String block)
block
- the code for this blockAccumulateDescrBuilder<P> action(String block)
block
- the code for this blockAccumulateDescrBuilder<P> reverse(String block)
block
- the code for this blockAccumulateDescrBuilder<P> result(String expr)
expr
- the return exprP end()
DescrBuilder
end
in interface DescrBuilder<P extends DescrBuilder<?,?>,AccumulateDescr>
AccumulateDescrBuilder<P> constraint(String constr)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.