public class EvalCondition extends ConditionalElement implements Externalizable, Wireable
| Modifier and Type | Class and Description |
|---|---|
static class |
EvalCondition.SafeEvalExpression |
Wireable.Immutable| Constructor and Description |
|---|
EvalCondition() |
EvalCondition(Declaration[] requiredDeclarations) |
EvalCondition(EvalExpression eval,
Declaration[] requiredDeclarations) |
| Modifier and Type | Method and Description |
|---|---|
EvalCondition |
clone()
Returns a clone from itself
|
Object |
createContext() |
boolean |
equals(Object object) |
EvalExpression |
getEvalExpression() |
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are
visible inside this conditional element
|
List<? extends RuleConditionElement> |
getNestedElements()
Returs a list of RuleConditionElement's that are nested
inside the current element
|
Map<String,Declaration> |
getOuterDeclarations()
Returns a Map of declarations that are visible
outside this conditional element.
|
Declaration[] |
getRequiredDeclarations() |
int |
hashCode() |
boolean |
isAllowed(Tuple tuple,
WorkingMemory workingMemory,
Object context) |
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits
a pattern visibility scope.
|
void |
readExternal(ObjectInput in) |
void |
replaceDeclaration(Declaration declaration,
Declaration resolved) |
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and
returns the Declaration object for the declaration.
|
void |
setEvalExpression(EvalExpression expression) |
String |
toString() |
void |
wire(Object object) |
void |
writeExternal(ObjectOutput out) |
public EvalCondition()
public EvalCondition(Declaration[] requiredDeclarations)
public EvalCondition(EvalExpression eval, Declaration[] requiredDeclarations)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic EvalExpression getEvalExpression()
public void setEvalExpression(EvalExpression expression)
public Declaration[] getRequiredDeclarations()
public Object createContext()
public boolean isAllowed(Tuple tuple, WorkingMemory workingMemory, Object context)
public EvalCondition clone()
RuleConditionElementclone in interface RuleConditionElementclone in class ConditionalElementpublic Map<String,Declaration> getInnerDeclarations()
RuleConditionElementgetInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElementgetOuterDeclarations in interface RuleConditionElementpublic List<? extends RuleConditionElement> getNestedElements()
RuleConditionElementgetNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
RuleConditionElementresolveDeclaration in interface RuleConditionElementpublic void replaceDeclaration(Declaration declaration, Declaration resolved)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.