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