|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.rule.Pattern
public class Pattern
Constructor Summary | |
---|---|
Pattern(int index,
int offset,
ObjectType objectType,
java.lang.String identifier)
|
|
Pattern(int index,
int offset,
ObjectType objectType,
java.lang.String identifier,
boolean isInternalFact)
|
|
Pattern(int index,
ObjectType objectType)
|
|
Pattern(int index,
ObjectType objectType,
java.lang.String identifier)
|
Method Summary | |
---|---|
void |
addConstraint(Constraint constraint)
|
Declaration |
addDeclaration(java.lang.String identifier,
Extractor extractor)
|
java.lang.Object |
clone()
Returns a clone from itself |
boolean |
equals(java.lang.Object object)
|
java.util.List |
getConstraints()
|
Declaration |
getDeclaration()
|
int |
getIndex()
|
java.util.Map |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
java.util.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 |
java.util.Map |
getOuterDeclarations()
Returns a Map of declarations that are visible outside this conditional element. |
PatternSource |
getSource()
|
int |
hashCode()
|
boolean |
isBound()
|
Declaration |
resolveDeclaration(java.lang.String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
void |
setOffset(int offset)
|
void |
setSource(PatternSource source)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Pattern(int index, ObjectType objectType)
public Pattern(int index, ObjectType objectType, java.lang.String identifier)
public Pattern(int index, int offset, ObjectType objectType, java.lang.String identifier)
public Pattern(int index, int offset, ObjectType objectType, java.lang.String identifier, boolean isInternalFact)
Method Detail |
---|
public java.lang.Object clone()
RuleConditionElement
clone
in interface RuleConditionElement
clone
in class java.lang.Object
public ObjectType getObjectType()
public PatternSource getSource()
public void setSource(PatternSource source)
public java.util.List getConstraints()
public void addConstraint(Constraint constraint)
public Declaration addDeclaration(java.lang.String identifier, Extractor extractor)
public boolean isBound()
public Declaration getDeclaration()
public int getIndex()
public int getOffset()
public void setOffset(int offset)
public java.util.Map getInnerDeclarations()
RuleConditionElement
getInnerDeclarations
in interface RuleConditionElement
public java.util.Map getOuterDeclarations()
RuleConditionElement
getOuterDeclarations
in interface RuleConditionElement
public Declaration resolveDeclaration(java.lang.String identifier)
RuleConditionElement
resolveDeclaration
in interface RuleConditionElement
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public java.util.List getNestedElements()
RuleConditionElement
getNestedElements
in interface RuleConditionElement
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |