public class Pattern extends Object implements RuleConditionElement, AcceptsClassObjectType, Externalizable
| Constructor and Description |
|---|
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) |
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)
public boolean hasNegativeConstraint()
public void setHasNegativeConstraint(boolean negative)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic 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()
RuleConditionElementclone in interface RuleConditionElementclone in class Objectpublic ObjectType getObjectType()
public void setObjectType(ObjectType objectType)
public PatternSource getSource()
public void setSource(PatternSource source)
public boolean isPassive()
public void setPassive(boolean passive)
public List<Constraint> getConstraints()
public void addConstraint(int index,
Constraint constraint)
public void addConstraints(Collection<Constraint> constraints)
public void addConstraint(Constraint constraint)
public void removeConstraint(Constraint constraint)
public List<MvelConstraint> getCombinableConstraints()
public boolean hasXPath()
public XpathConstraint getXpathConstraint()
public Declaration getXPathDeclaration()
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> getDeclarations()
public 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<RuleConditionElement> getNestedElements()
RuleConditionElementgetNestedElements in interface RuleConditionElementpublic boolean isPatternScopeDelimiter()
RuleConditionElementisPatternScopeDelimiter in interface RuleConditionElementpublic void setBehaviors(List<Behavior> behaviors)
behaviors - the behaviors to setpublic void addBehavior(Behavior behavior)
public Collection<String> getListenedProperties()
public void setListenedProperties(Collection<String> listenedProperties)
public Map<String,AnnotationDefinition> getAnnotations()
public XpathBackReference getBackRefDeclarations()
public void setBackRefDeclarations(XpathBackReference backRefDeclarations)
public boolean isCompatibleWithAccumulateReturnType(Class<?> returnType)
public boolean isCompatibleWithFromReturnType(Class<?> returnType)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.