Package org.drools.drl.ast.descr
Class RuleDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.RuleDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
- Direct Known Subclasses:
QueryDescr
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttribute(AttributeDescr attribute) voidaddNamedConsequences(String name, Object consequence) booleanintintintgetLhs()intgetName()getUnit()booleaninthashCode()booleanbooleanisQuery()booleanisRule()voidvoidsetClassName(String className) voidsetConsequence(Object consequence) voidsetConsequenceLocation(int line, int pattern) voidsetConsequenceOffset(int offset) voidvoidsetLoadOrder(int loadOrder) voidvoidsetParentName(String parentName) voidsetResource(Resource resource) voidtoString()voidMethods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQNMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setText
-
Constructor Details
-
RuleDescr
public RuleDescr() -
RuleDescr
-
RuleDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
getUnit
-
setUnit
-
getName
-
getUnitQualifiedName
-
setName
-
getDialect
-
getSalience
-
getClassName
-
setClassName
-
getDocumentation
-
getAttributes
-
addAttribute
-
getLhs
-
setLhs
-
getConsequence
-
setConsequence
-
getNamedConsequences
-
addNamedConsequences
-
setConsequenceLocation
public void setConsequenceLocation(int line, int pattern) -
setConsequenceOffset
public void setConsequenceOffset(int offset) -
getConsequenceOffset
public int getConsequenceOffset() -
getConsequenceLine
public int getConsequenceLine() -
getConsequencePattern
public int getConsequencePattern() -
getEnabled
-
hasParent
public boolean hasParent() -
setParentName
-
getParentName
-
isRule
public boolean isRule() -
isQuery
public boolean isQuery() -
getErrors
-
hasErrors
public boolean hasErrors() -
getLoadOrder
public int getLoadOrder() -
setLoadOrder
public void setLoadOrder(int loadOrder) -
setResource
- Overrides:
setResourcein classBaseDescr
-
toString
-
hashCode
public int hashCode() -
equals
-