org.drools.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
 AccumulateDescrBuilder<P> accumulate()
          Defines the pattern source as being an accumulation
 CollectDescrBuilder<P> collect()
          Defines the pattern source as a collection
 P entryPoint(String entryPoint)
          Defines the pattern source as being an entry point
 P expression(String expression)
          Defines the pattern source as being an expression result
 P window(String window)
          Defines the pattern source as being a declared window
 
Methods inherited from interface org.drools.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

window

P window(String window)
Defines the pattern source as being a declared window

Parameters:
window - the declared window identifier
Returns:
parent descriptor builder


Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.