Package org.drools.compiler.lang.api
Interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
-
- All Superinterfaces:
DescrBuilder<P,PatternDescr>
- All Known Implementing Classes:
SourceDescrBuilderImpl
public interface SourceDescrBuilder<P extends PatternDescrBuilder<?>> extends DescrBuilder<P,PatternDescr>
A descriptor builder for Pattern sources
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AccumulateDescrBuilder<P>
accumulate()
Defines the pattern source as being an accumulationCollectDescrBuilder<P>
collect()
Defines the pattern source as a collectionP
entryPoint(String entryPoint)
Defines the pattern source as being an entry pointP
expression(String expression)
Defines the pattern source as being an expression resultGroupByDescrBuilder<P>
groupBy()
P
window(String window)
Defines the pattern source as being a declared window-
Methods inherited from interface org.drools.compiler.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
-
-
-
-
Method Detail
-
expression
P expression(String expression)
Defines the pattern source as being an expression result- Parameters:
expression
- the expression- Returns:
- parent descriptor builder
-
entryPoint
P entryPoint(String entryPoint)
Defines the pattern source as being an entry point- Parameters:
entryPoint
- the entry point identifier- Returns:
- parent descriptor builder
-
collect
CollectDescrBuilder<P> collect()
Defines the pattern source as a collection- Returns:
- the collect descriptor builder
-
accumulate
AccumulateDescrBuilder<P> accumulate()
Defines the pattern source as being an accumulation- Returns:
- the accumulate descriptor builder
-
groupBy
GroupByDescrBuilder<P> groupBy()
-
-