Package org.evrete
Class AbstractRule
java.lang.Object
org.evrete.AbstractRule
- All Implemented Interfaces:
Environment,FluentEnvironment<Rule>,FluentImports<Rule>,Named,NamedType.Resolver,Rule
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractRule(String name, int defaultSalience) protectedAbstractRule(AbstractRule other, String ruleName, int salience) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendImports(Imports parent) voidchainRhs(Consumer<RhsContext> consumer) final <T> Tprotected Stringfinal StringgetName()getRhs()final intvoidvoidvoidsetRhs(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.Environment
getMethods inherited from interface org.evrete.api.FluentImports
addImport, getJavaImportsMethods inherited from interface org.evrete.api.NamedType.Resolver
resolve
-
Field Details
-
rhs
-
-
Constructor Details
-
AbstractRule
-
AbstractRule
-
-
Method Details
-
appendImports
-
getImports
- Specified by:
getImportsin interfaceFluentImports<Rule>
-
addImport
- Specified by:
addImportin interfaceFluentImports<Rule>
-
getRhs
-
setRhs
-
setRhs
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceEnvironment
-
getLiteralRhs
-
getSalience
public final int getSalience()- Specified by:
getSaliencein interfaceRule
-
setSalience
public void setSalience(int salience) - Specified by:
setSaliencein interfaceRule
-
set
- Specified by:
setin interfaceEnvironment- Specified by:
setin interfaceFluentEnvironment<Rule>
-
get
- Specified by:
getin interfaceEnvironment
-
getName
-
setName
-
chainRhs
-