Package org.drools.drl.ast.descr
Class PatternDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.PatternDescr
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,Namespaceable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPatternDescr(String objectType) PatternDescr(String objectType, String identifier) PatternDescr(String objectType, String identifier, boolean isQuery) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DescrVisitor visitor) voidaddBehavior(BehaviorDescr behavior) voidaddConstraint(BaseDescr base) clone()intintbooleanisQuery()booleanvoidbooleanremoveConstraint(BaseDescr base) voidsetBehaviors(List<BehaviorDescr> behaviors) voidsetGenericType(GenericTypeDefinition genericType) voidsetIdentifier(String identifier) voidsetLeftParentCharacter(int leftParentCharacter) voidsetObjectType(String objectType) voidsetQuery(boolean query) voidsetResource(Resource resource) voidsetRightParentCharacter(int rightParentCharacter) voidsetSource(PatternSourceDescr source) voidsetUnification(boolean unification) toString()Methods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQN, readExternal, writeExternalMethods inherited from class org.drools.drl.ast.descr.BaseDescr
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
Constructor Details
-
PatternDescr
public PatternDescr() -
PatternDescr
-
PatternDescr
-
PatternDescr
-
-
Method Details
-
setIdentifier
-
setObjectType
-
setQuery
public void setQuery(boolean query) -
getObjectType
-
getGenericType
-
setGenericType
-
getIdentifier
-
getAllBoundIdentifiers
-
isQuery
public boolean isQuery() -
getDescrs
-
addConstraint
-
removeAllConstraint
public void removeAllConstraint() -
removeConstraint
-
getConstraint
-
negateConstraint
-
getPositionalConstraints
-
getSlottedConstraints
-
toString
-
getLeftParentCharacter
public int getLeftParentCharacter()- Returns:
- the leftParentCharacter
-
setLeftParentCharacter
public void setLeftParentCharacter(int leftParentCharacter) - Parameters:
leftParentCharacter- the leftParentCharacter to set
-
getRightParentCharacter
public int getRightParentCharacter()- Returns:
- the rightParentCharacter
-
setRightParentCharacter
public void setRightParentCharacter(int rightParentCharacter) - Parameters:
rightParentCharacter- the rightParentCharacter to set
-
getSource
-
setSource
-
setResource
- Overrides:
setResourcein classBaseDescr
-
getBehaviors
- Returns:
- the behaviors
-
setBehaviors
- Parameters:
behaviors- the behaviors to set
-
addBehavior
-
isUnification
public boolean isUnification()- Returns:
- the unification
-
setUnification
public void setUnification(boolean unification) - Parameters:
unification- the unification to set
-
clone
-
accept
-