public class AccumulateDescrBuilderImpl<P extends DescrBuilder<?,?>> extends BaseDescrBuilderImpl<P,AccumulateDescr> implements AccumulateDescrBuilder<P>
descr, parent
Constructor and Description |
---|
AccumulateDescrBuilderImpl(P parent) |
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) |
AccumulateDescrBuilder<P> |
function(String name,
String bind,
boolean unif,
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.
|
PatternDescrBuilder<AccumulateDescrBuilder<P>> |
pattern() |
PatternDescrBuilder<AccumulateDescrBuilder<P>> |
pattern(String type) |
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.
|
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
end
endCharacter, endLocation, getDescr, startCharacter, startLocation
public AccumulateDescrBuilderImpl(P parent)
public PatternDescrBuilder<AccumulateDescrBuilder<P>> pattern(String type)
public PatternDescrBuilder<AccumulateDescrBuilder<P>> pattern()
public CEDescrBuilder<AccumulateDescrBuilder<P>,AndDescr> source()
AccumulateDescrBuilder
source
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
public AccumulateDescrBuilder<P> function(String name, String bind, boolean unif, String... parameters)
AccumulateDescrBuilder
function
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
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.unif
- 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.public AccumulateDescrBuilder<P> init(String block)
AccumulateDescrBuilder
init
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
block
- the code for this blockpublic AccumulateDescrBuilder<P> action(String block)
AccumulateDescrBuilder
action
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
block
- the code for this blockpublic AccumulateDescrBuilder<P> reverse(String block)
AccumulateDescrBuilder
reverse
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
block
- the code for this blockpublic AccumulateDescrBuilder<P> result(String expr)
AccumulateDescrBuilder
result
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
expr
- the return exprpublic AccumulateDescrBuilder<P> constraint(String constr)
constraint
in interface AccumulateDescrBuilder<P extends DescrBuilder<?,?>>
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.