Package org.drools.model
Class PatternDSL
java.lang.Object
org.drools.model.DSL
org.drools.model.PatternDSL
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interfacestatic classstatic classstatic enumstatic classstatic classstatic classstatic classstatic classstatic interfacestatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic interfacestatic classstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T,U> AlphaIndex<T, U> alphaIndexedBy(Class<U> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, U> leftOperandExtractor, U rightValue) static <T,U, V> BetaIndex<T, U, V> betaIndexedBy(Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function1<U, ?> rightOperandExtractor) static <T,U, V> BetaIndex<T, U, V> betaIndexedBy(Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function1<U, ?> rightOperandExtractor, Class<?> rightReturnType) static <T,A, B, V> BetaIndex2<T, A, B, V> betaIndexedBy(Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function2<A, B, ?> rightOperandExtractor, Class<?> rightReturnType) static <T,A, B, C, V>
BetaIndex3<T,A, B, C, V> betaIndexedBy(Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function3<A, B, C, ?> rightOperandExtractor, Class<?> rightReturnType) static <T,A, B, C, D, V>
BetaIndex4<T,A, B, C, D, V> betaIndexedBy(Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function4<A, B, C, D, ?> rightOperandExtractor, Class<?> rightReturnType) static <T> PatternDSL.PatternDef<T>static <T> PatternDSL.PatternDef<T>pattern(Variable<T> var, DeclarationSource source) static Query0Defstatic <T1> Query1Def<T1>static <T1,T2> Query2Def<T1, T2> static <T1,T2, T3> Query3Def<T1, T2, T3> static <T1,T2, T3, T4>
Query4Def<T1,T2, T3, T4> static <T1,T2, T3, T4, T5>
Query5Def<T1,T2, T3, T4, T5> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5) static <T1,T2, T3, T4, T5, T6>
Query6Def<T1,T2, T3, T4, T5, T6> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6) static <T1,T2, T3, T4, T5, T6, T7>
Query7Def<T1,T2, T3, T4, T5, T6, T7> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7) static <T1,T2, T3, T4, T5, T6, T7, T8>
Query8Def<T1,T2, T3, T4, T5, T6, T7, T8> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8) static <T1,T2, T3, T4, T5, T6, T7, T8, T9>
Query9Def<T1,T2, T3, T4, T5, T6, T7, T8, T9> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8, Class<T9> type9) static <T1,T2, T3, T4, T5, T6, T7, T8, T9, T10>
Query10Def<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10> query(String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8, Class<T9> type9, Class<T10> type10) static <T1> Query1Def<T1>static <T1,T2> Query2Def<T1, T2> static <T1,T2, T3> Query3Def<T1, T2, T3> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name) static <T1,T2, T3, T4>
Query4Def<T1,T2, T3, T4> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name) static <T1,T2, T3, T4, T5>
Query5Def<T1,T2, T3, T4, T5> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name) static <T1,T2, T3, T4, T5, T6>
Query6Def<T1,T2, T3, T4, T5, T6> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name) static <T1,T2, T3, T4, T5, T6, T7>
Query7Def<T1,T2, T3, T4, T5, T6, T7> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name) static <T1,T2, T3, T4, T5, T6, T7, T8>
Query8Def<T1,T2, T3, T4, T5, T6, T7, T8> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name) static <T1,T2, T3, T4, T5, T6, T7, T8, T9>
Query9Def<T1,T2, T3, T4, T5, T6, T7, T8, T9> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name) static <T1,T2, T3, T4, T5, T6, T7, T8, T9, T10>
Query10Def<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10> query(String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name, Class<T10> type10, String arg10name) static Query0Defstatic <T1> Query1Def<T1>static <T1,T2> Query2Def<T1, T2> static <T1,T2, T3> Query3Def<T1, T2, T3> static <T1,T2, T3, T4>
Query4Def<T1,T2, T3, T4> static <T1,T2, T3, T4, T5>
Query5Def<T1,T2, T3, T4, T5> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5) static <T1,T2, T3, T4, T5, T6>
Query6Def<T1,T2, T3, T4, T5, T6> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6) static <T1,T2, T3, T4, T5, T6, T7>
Query7Def<T1,T2, T3, T4, T5, T6, T7> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7) static <T1,T2, T3, T4, T5, T6, T7, T8>
Query8Def<T1,T2, T3, T4, T5, T6, T7, T8> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8) static <T1,T2, T3, T4, T5, T6, T7, T8, T9>
Query9Def<T1,T2, T3, T4, T5, T6, T7, T8, T9> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8, Class<T9> type9) static <T1,T2, T3, T4, T5, T6, T7, T8, T9, T10>
Query10Def<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10> query(String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8, Class<T9> type9, Class<T10> type10) static <T1> Query1Def<T1>static <T1,T2> Query2Def<T1, T2> static <T1,T2, T3> Query3Def<T1, T2, T3> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name) static <T1,T2, T3, T4>
Query4Def<T1,T2, T3, T4> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name) static <T1,T2, T3, T4, T5>
Query5Def<T1,T2, T3, T4, T5> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name) static <T1,T2, T3, T4, T5, T6>
Query6Def<T1,T2, T3, T4, T5, T6> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name) static <T1,T2, T3, T4, T5, T6, T7>
Query7Def<T1,T2, T3, T4, T5, T6, T7> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name) static <T1,T2, T3, T4, T5, T6, T7, T8>
Query8Def<T1,T2, T3, T4, T5, T6, T7, T8> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name) static <T1,T2, T3, T4, T5, T6, T7, T8, T9>
Query9Def<T1,T2, T3, T4, T5, T6, T7, T8, T9> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name) static <T1,T2, T3, T4, T5, T6, T7, T8, T9, T10>
Query10Def<T1,T2, T3, T4, T5, T6, T7, T8, T9, T10> query(String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name, Class<T10> type10, String arg10name) static PatternDSL.ReactOnstatic <T> PatternDSL.PatternDef<T>static RuleBuilderstatic RuleBuilderstatic <T> PatternDSL.ExchangeDef<T>when()static <A> ConditionalConsequenceBuilderwhen(String exprId, Variable<A> var, Predicate1<A> predicate) static <A,B> ConditionalConsequenceBuilder when(String exprId, Variable<A> var1, Variable<B> var2, Predicate2<A, B> predicate) static <A> ConditionalConsequenceBuilderwhen(Variable<A> var, Predicate1<A> predicate) static <A,B> ConditionalConsequenceBuilder when(Variable<A> var1, Variable<B> var2, Predicate2<A, B> predicate) when(ExprViewItem expr) Methods inherited from class org.drools.model.DSL
accFunction, accFunction, accFunction, accFunction, accumulate, after, after, after, after, and, annotationValue, any, before, before, before, before, coincides, coincides, coincides, combineExprs, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, declarationOf, during, during, during, entryPoint, eval, eval, exchangeOf, exchangeOf, execute, execute, executeScript, exists, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, expr, finishedby, finishedby, finishes, finishes, forall, from, from, from, from, from, from, from, globalOf, globalOf, globalOf, groupBy, groupBy, groupBy, groupBy, includes, includes, includes, meets, meets, metby, metby, not, not, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, on, or, overlappedby, overlappedby, overlappedby, overlaps, overlaps, overlaps, reactiveFrom, startedby, startedby, starts, starts, supply, supply, supply, supply, typeMetaData, unitData, unitData, valueOf, window, window, window, window, window, window
-
Constructor Details
-
PatternDSL
public PatternDSL()
-
-
Method Details
-
pattern
-
pattern
-
alphaIndexedBy
public static <T,U> AlphaIndex<T,U> alphaIndexedBy(Class<U> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, U> leftOperandExtractor, U rightValue) -
betaIndexedBy
public static <T,U, BetaIndex<T,V> U, betaIndexedByV> (Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function1<U, ?> rightOperandExtractor) -
betaIndexedBy
-
betaIndexedBy
public static <T,A, BetaIndex2<T,B, V> A, betaIndexedByB, V> (Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function2<A, B, ?> rightOperandExtractor, Class<?> rightReturnType) -
betaIndexedBy
public static <T,A, BetaIndex3<T,B, C, V> A, betaIndexedByB, C, V> (Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function3<A, B, C, ?> rightOperandExtractor, Class<?> rightReturnType) -
betaIndexedBy
public static <T,A, BetaIndex4<T,B, C, D, V> A, betaIndexedByB, C, D, V> (Class<V> indexedClass, Index.ConstraintType constraintType, int indexId, Function1<T, V> leftOperandExtractor, Function4<A, B, C, D, ?> rightOperandExtractor, Class<?> rightReturnType) -
reactOn
-
when
-
when
public static <A> ConditionalConsequenceBuilder when(String exprId, Variable<A> var, Predicate1<A> predicate) -
when
public static <A,B> ConditionalConsequenceBuilder when(Variable<A> var1, Variable<B> var2, Predicate2<A, B> predicate) -
when
public static <A,B> ConditionalConsequenceBuilder when(String exprId, Variable<A> var1, Variable<B> var2, Predicate2<A, B> predicate) -
when
-
when
-
rule
-
rule
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
-
query
public static <T1,T2, Query6Def<T1,T3, T4, T5, T6> T2, queryT3, T4, T5, T6> (String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name) -
query
-
query
-
query
public static <T1,T2, Query7Def<T1,T3, T4, T5, T6, T7> T2, queryT3, T4, T5, T6, T7> (String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name) -
query
public static <T1,T2, Query7Def<T1,T3, T4, T5, T6, T7> T2, queryT3, T4, T5, T6, T7> (String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name) -
query
-
query
-
query
public static <T1,T2, Query8Def<T1,T3, T4, T5, T6, T7, T8> T2, queryT3, T4, T5, T6, T7, T8> (String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name) -
query
public static <T1,T2, Query8Def<T1,T3, T4, T5, T6, T7, T8> T2, queryT3, T4, T5, T6, T7, T8> (String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name) -
query
-
query
-
query
public static <T1,T2, Query9Def<T1,T3, T4, T5, T6, T7, T8, T9> T2, queryT3, T4, T5, T6, T7, T8, T9> (String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name) -
query
public static <T1,T2, Query9Def<T1,T3, T4, T5, T6, T7, T8, T9> T2, queryT3, T4, T5, T6, T7, T8, T9> (String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name) -
query
-
query
public static <T1,T2, Query10Def<T1,T3, T4, T5, T6, T7, T8, T9, T10> T2, queryT3, T4, T5, T6, T7, T8, T9, T10> (String pkg, String name, Class<T1> type1, Class<T2> type2, Class<T3> type3, Class<T4> type4, Class<T5> type5, Class<T6> type6, Class<T7> type7, Class<T8> type8, Class<T9> type9, Class<T10> type10) -
query
public static <T1,T2, Query10Def<T1,T3, T4, T5, T6, T7, T8, T9, T10> T2, queryT3, T4, T5, T6, T7, T8, T9, T10> (String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name, Class<T10> type10, String arg10name) -
query
public static <T1,T2, Query10Def<T1,T3, T4, T5, T6, T7, T8, T9, T10> T2, queryT3, T4, T5, T6, T7, T8, T9, T10> (String pkg, String name, Class<T1> type1, String arg1name, Class<T2> type2, String arg2name, Class<T3> type3, String arg3name, Class<T4> type4, String arg4name, Class<T5> type5, String arg5name, Class<T6> type6, String arg6name, Class<T7> type7, String arg7name, Class<T8> type8, String arg8name, Class<T9> type9, String arg9name, Class<T10> type10, String arg10name) -
send
-
receive
-