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 Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public static InternalReadAccessor getReadAcessor(ObjectType objectType)
public void setClassObjectType(ClassObjectType objectType)
setClassObjectType
in interface AcceptsClassObjectType
public Declaration[] getRequiredDeclarations()
public Pattern 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 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()
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 List<RuleConditionElement> getNestedElements()
RuleConditionElement
getNestedElements
in interface RuleConditionElement
public boolean isPatternScopeDelimiter()
RuleConditionElement
isPatternScopeDelimiter
in interface RuleConditionElement
public 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–2017 JBoss by Red Hat. All rights reserved.