Package org.evrete
Class AbstractRule
java.lang.Object
org.evrete.AbstractRule
- All Implemented Interfaces:
FluentImports<Rule>,Named,PropertyAccess,Rule
public abstract class AbstractRule extends Object implements Rule
-
Field Summary
Fields Modifier and Type Field Description protected Consumer<RhsContext>rhs -
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRule(String name, int defaultSalience)protectedAbstractRule(AbstractRule other) -
Method Summary
Modifier and Type Method Description RuleaddImport(String imp)voidchainRhs(Consumer<RhsContext> consumer)<T> Tget(String property)Set<String>getImports()StringgetLiteralRhs()StringgetName()Collection<String>getPropertyNames()Consumer<RhsContext>getRhs()intgetSalience()<T> voidset(String property, T value)voidsetRhs(String literalRhs)voidsetRhs(Consumer<RhsContext> rhs)voidsetSalience(int salience)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.evrete.api.FluentImports
addImportMethods inherited from interface org.evrete.api.PropertyAccess
get
-
Field Details
-
rhs
-
-
Constructor Details
-
AbstractRule
-
AbstractRule
-
-
Method Details
-
addImport
- Specified by:
addImportin interfaceFluentImports<Rule>
-
getPropertyNames
- Specified by:
getPropertyNamesin interfacePropertyAccess
-
getImports
- Specified by:
getImportsin interfaceFluentImports<Rule>
-
getLiteralRhs
-
getSalience
public final int getSalience()- Specified by:
getSaliencein interfaceRule
-
setSalience
public void setSalience(int salience)- Specified by:
setSaliencein interfaceRule
-
set
- Specified by:
setin interfacePropertyAccess
-
get
- Specified by:
getin interfacePropertyAccess
-
getRhs
-
setRhs
-
setRhs
-
getName
-
chainRhs
-