|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.drools.core.rule.Pattern
public class Pattern
| Field Summary | |
|---|---|
static String |
ATTR_LISTENED_PROPS
|
| Constructor Summary | |
|---|---|
Pattern()
|
|
Pattern(int index,
int offset,
ObjectType objectType,
String identifier)
|
|
Pattern(int index,
int offset,
ObjectType objectType,
String identifier,
boolean isInternalFact)
|
|
Pattern(int index,
ObjectType objectType)
|
|
Pattern(int index,
ObjectType objectType,
String identifier)
|
|
| Method Summary | |
|---|---|
void |
addBehavior(Behavior behavior)
|
void |
addConstraint(Constraint constraint)
|
void |
addDeclaration(Declaration decl)
|
Declaration |
addDeclaration(String identifier)
|
Pattern |
clone()
Returns a clone from itself |
boolean |
equals(Object object)
|
Map<String,AnnotationDefinition> |
getAnnotations()
|
List<Behavior> |
getBehaviors()
|
List<MvelConstraint> |
getCombinableConstraints()
|
List<Constraint> |
getConstraints()
|
Declaration |
getDeclaration()
|
Declaration |
getDeclaration(String identifier)
|
int |
getIndex()
|
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
List<String> |
getListenedProperties()
|
List |
getNestedElements()
Returs a list of RuleConditionElement's that are nested inside the current element |
ObjectType |
getObjectType()
|
int |
getOffset()
The offset of the fact related to this pattern inside the tuple |
Map<String,Declaration> |
getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element. |
static InternalReadAccessor |
getReadAcessor(ObjectType objectType)
|
Declaration[] |
getRequiredDeclarations()
|
PatternSource |
getSource()
|
int |
hashCode()
|
boolean |
isBound()
|
boolean |
isPatternScopeDelimiter()
Returns true in case this RuleConditionElement delimits a pattern visibility scope. |
void |
readExternal(ObjectInput in)
|
void |
removeConstraint(Constraint constraint)
|
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
void |
setAnnotations(Map<String,AnnotationDefinition> annotations)
|
void |
setBehaviors(List<Behavior> behaviors)
|
void |
setClassObjectType(ClassObjectType objectType)
|
void |
setListenedProperties(List<String> listenedProperties)
|
void |
setObjectType(ObjectType objectType)
|
void |
setOffset(int offset)
|
void |
setSource(PatternSource source)
|
String |
toString()
|
void |
writeExternal(ObjectOutput out)
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String ATTR_LISTENED_PROPS
| Constructor Detail |
|---|
public Pattern()
public Pattern(int index,
ObjectType objectType)
public Pattern(int index,
ObjectType objectType,
String identifier)
public Pattern(int index,
int offset,
ObjectType objectType,
String identifier)
public Pattern(int index,
int offset,
ObjectType objectType,
String identifier,
boolean isInternalFact)
| Method Detail |
|---|
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
readExternal in interface ExternalizableIOException
ClassNotFoundException
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIOExceptionpublic static InternalReadAccessor getReadAcessor(ObjectType objectType)
public void setClassObjectType(ClassObjectType objectType)
setClassObjectType in interface AcceptsClassObjectTypepublic Declaration[] getRequiredDeclarations()
public Pattern clone()
RuleConditionElement
clone in interface RuleConditionElementclone in class Objectpublic ObjectType getObjectType()
public void setObjectType(ObjectType objectType)
public PatternSource getSource()
public void setSource(PatternSource source)
public List<Constraint> getConstraints()
public void addConstraint(Constraint constraint)
public void removeConstraint(Constraint constraint)
public List<MvelConstraint> getCombinableConstraints()
public Declaration addDeclaration(String identifier)
public void addDeclaration(Declaration decl)
public boolean isBound()
public Declaration getDeclaration()
public Declaration getDeclaration(String identifier)
public int getIndex()
public int getOffset()
public void setOffset(int offset)
public Map<String,Declaration> getInnerDeclarations()
RuleConditionElement
getInnerDeclarations in interface RuleConditionElementpublic Map<String,Declaration> getOuterDeclarations()
RuleConditionElement
getOuterDeclarations in interface RuleConditionElementpublic Declaration resolveDeclaration(String identifier)
RuleConditionElement
resolveDeclaration in interface RuleConditionElementpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectpublic List getNestedElements()
RuleConditionElement
getNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter in interface RuleConditionElementpublic List<Behavior> getBehaviors()
public void setBehaviors(List<Behavior> behaviors)
behaviors - the behaviors to setpublic void addBehavior(Behavior behavior)
public List<String> getListenedProperties()
public void setListenedProperties(List<String> listenedProperties)
public Map<String,AnnotationDefinition> getAnnotations()
public void setAnnotations(Map<String,AnnotationDefinition> annotations)
|
Drools :: Core 6.1.0.Beta1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||