public class PatternDescr extends AnnotatedBaseDescr implements Cloneable
Constructor and Description |
---|
PatternDescr() |
PatternDescr(String objectType) |
PatternDescr(String objectType,
String identifier) |
PatternDescr(String objectType,
String identifier,
boolean isQuery) |
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN, readExternal, writeExternal
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
public PatternDescr()
public PatternDescr(String objectType)
public void setIdentifier(String identifier)
public void setObjectType(String objectType)
public void setQuery(boolean query)
public String getObjectType()
public org.drools.core.factmodel.GenericTypeDefinition getGenericType()
public String getIdentifier()
public boolean isQuery()
public boolean isPassive(RuleBuildContext context)
public void addConstraint(BaseDescr base)
public void removeAllConstraint()
public boolean removeConstraint(BaseDescr base)
public ConditionalElementDescr getConstraint()
public PatternDescr negateConstraint()
public boolean isInternalFact(RuleBuildContext context)
public int getLeftParentCharacter()
public void setLeftParentCharacter(int leftParentCharacter)
leftParentCharacter
- the leftParentCharacter to setpublic int getRightParentCharacter()
public void setRightParentCharacter(int rightParentCharacter)
rightParentCharacter
- the rightParentCharacter to setpublic PatternSourceDescr getSource()
public void setSource(PatternSourceDescr source)
public void setResource(org.kie.api.io.Resource resource)
setResource
in class BaseDescr
public List<BehaviorDescr> getBehaviors()
public void setBehaviors(List<BehaviorDescr> behaviors)
behaviors
- the behaviors to setpublic void addBehavior(BehaviorDescr behavior)
public boolean isUnification()
public void setUnification(boolean unification)
unification
- the unification to setpublic org.drools.core.rule.Declaration getXpathStartDeclaration()
public void setXpathStartDeclaration(org.drools.core.rule.Declaration xpathStartDeclaration)
public void accept(DescrVisitor visitor)
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.