org.drools.lang.api.impl
Class SourceDescrBuilderImpl<P extends PatternDescrBuilder<?>>

java.lang.Object
  extended by org.drools.lang.api.impl.BaseDescrBuilderImpl<P,PatternDescr>
      extended by org.drools.lang.api.impl.SourceDescrBuilderImpl<P>
All Implemented Interfaces:
DescrBuilder<P,PatternDescr>, SourceDescrBuilder<P>

public class SourceDescrBuilderImpl<P extends PatternDescrBuilder<?>>
extends BaseDescrBuilderImpl<P,PatternDescr>
implements SourceDescrBuilder<P>

A descr builder implementation for pattern sources


Field Summary
 
Fields inherited from class org.drools.lang.api.impl.BaseDescrBuilderImpl
descr, parent
 
Constructor Summary
protected SourceDescrBuilderImpl(P parent)
           
 
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 class org.drools.lang.api.impl.BaseDescrBuilderImpl
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.lang.api.DescrBuilder
end, endCharacter, endLocation, getDescr, startCharacter, startLocation
 

Constructor Detail

SourceDescrBuilderImpl

protected SourceDescrBuilderImpl(P parent)
Method Detail

expression

public P expression(String expression)
Description copied from interface: SourceDescrBuilder
Defines the pattern source as being an expression result

Specified by:
expression in interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
Parameters:
expression - the expression
Returns:
parent descriptor builder

entryPoint

public P entryPoint(String entryPoint)
Description copied from interface: SourceDescrBuilder
Defines the pattern source as being an entry point

Specified by:
entryPoint in interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
Parameters:
entryPoint - the entry point identifier
Returns:
parent descriptor builder

collect

public CollectDescrBuilder<P> collect()
Description copied from interface: SourceDescrBuilder
Defines the pattern source as a collection

Specified by:
collect in interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
Returns:
the collect descriptor builder

accumulate

public AccumulateDescrBuilder<P> accumulate()
Description copied from interface: SourceDescrBuilder
Defines the pattern source as being an accumulation

Specified by:
accumulate in interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
Returns:
the accumulate descriptor builder

window

public P window(String window)
Description copied from interface: SourceDescrBuilder
Defines the pattern source as being a declared window

Specified by:
window in interface SourceDescrBuilder<P extends PatternDescrBuilder<?>>
Parameters:
window - the declared window identifier
Returns:
parent descriptor builder


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