|
||||||||||
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()
|
|
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)
|
Object |
clone()
Returns a clone from itself |
boolean |
equals(Object object)
|
List<Behavior> |
getBehaviors()
|
List |
getConstraints()
|
Declaration |
getDeclaration()
|
int |
getIndex()
|
Map<String,Declaration> |
getInnerDeclarations()
Returns a Map of declarations that are visible inside this conditional element |
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. |
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)
|
Declaration |
resolveDeclaration(String identifier)
Resolves the given identifier in the current scope and returns the Declaration object for the declaration. |
void |
setBehaviors(List<Behavior> behaviors)
|
void |
setClassObjectType(ClassObjectType objectType)
|
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 |
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 Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void setClassObjectType(ClassObjectType objectType)
setClassObjectType
in interface AcceptsClassObjectType
public Declaration[] getRequiredDeclarations()
public Object clone()
RuleConditionElement
clone
in interface RuleConditionElement
clone
in class Object
public ObjectType getObjectType()
public void setObjectType(ObjectType objectType)
public PatternSource getSource()
public void setSource(PatternSource source)
public List getConstraints()
public void addConstraint(Constraint constraint)
public Declaration addDeclaration(String identifier)
public void addDeclaration(Declaration decl)
public boolean isBound()
public Declaration getDeclaration()
public int getIndex()
public int getOffset()
public void setOffset(int offset)
public Map<String,Declaration> getInnerDeclarations()
RuleConditionElement
getInnerDeclarations
in interface RuleConditionElement
public Map<String,Declaration> getOuterDeclarations()
RuleConditionElement
getOuterDeclarations
in interface RuleConditionElement
public Declaration resolveDeclaration(String identifier)
RuleConditionElement
resolveDeclaration
in interface RuleConditionElement
public String toString()
toString
in class Object
public int hashCode()
hashCode
in class Object
public boolean equals(Object object)
equals
in class Object
public List getNestedElements()
RuleConditionElement
getNestedElements
in interface RuleConditionElement
public boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter
in interface RuleConditionElement
public List<Behavior> getBehaviors()
public void setBehaviors(List<Behavior> behaviors)
behaviors
- the behaviors to setpublic void addBehavior(Behavior behavior)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |