public class Collect extends ConditionalElement implements PatternSource
| Constructor and Description |
|---|
Collect() |
Collect(Pattern sourcePattern,
Pattern resultPattern) |
| Modifier and Type | Method and Description |
|---|---|
Collect |
clone()
Returns a clone from itself
|
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are
visible inside this conditional element
|
List<Pattern> |
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.
|
Pattern |
getResultPattern() |
Pattern |
getSourcePattern() |
Collection<Object> |
instantiateResultObject(InternalWorkingMemory wm) |
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits
a pattern visibility scope.
|
void |
readExternal(ObjectInput in) |
boolean |
requiresLeftActivation() |
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and
returns the Declaration object for the declaration.
|
void |
writeExternal(ObjectOutput out) |
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic Collect clone()
RuleConditionElementclone in interface RuleConditionElementclone in class ConditionalElementpublic Pattern getResultPattern()
public Pattern getSourcePattern()
public Collection<Object> instantiateResultObject(InternalWorkingMemory wm) throws RuntimeException
RuntimeExceptionpublic Map<String,Declaration> getInnerDeclarations()
RuleConditionElementgetInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElementgetOuterDeclarations in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
RuleConditionElementresolveDeclaration in interface RuleConditionElementpublic List<Pattern> getNestedElements()
RuleConditionElementgetNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementpublic boolean requiresLeftActivation()
requiresLeftActivation in interface PatternSourceCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.