public class RuleDescr extends AnnotatedBaseDescr implements org.drools.core.rule.Dialectable
| Constructor and Description |
|---|
RuleDescr() |
RuleDescr(String name) |
RuleDescr(String ruleName,
String documentation) |
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQNaccept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setStartCharacter, setTextpublic RuleDescr()
public RuleDescr(String name)
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class AnnotatedBaseDescrIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class AnnotatedBaseDescrIOExceptionpublic org.drools.core.definitions.rule.impl.RuleImpl toRule()
public UnitDescr getUnit()
public void setUnit(UnitDescr unit)
public String getName()
public void setName(String name)
public String getDialect()
getDialect in interface org.drools.core.rule.Dialectablepublic String getSalience()
public String getClassName()
public void setClassName(String className)
public String getDocumentation()
public Map<String,AttributeDescr> getAttributes()
public void addAttribute(AttributeDescr attribute)
public AndDescr getLhs()
public void setLhs(AndDescr lhs)
public Object getConsequence()
public void setConsequence(Object consequence)
public void setConsequenceLocation(int line,
int pattern)
public void setConsequenceOffset(int offset)
public int getConsequenceOffset()
public int getConsequenceLine()
public int getConsequencePattern()
public String getEnabled()
public boolean hasParent()
public void setParentName(String parentName)
public String getParentName()
public boolean isRule()
public boolean isQuery()
public boolean hasErrors()
public int getLoadOrder()
public void setLoadOrder(int loadOrder)
public void setResource(org.kie.api.io.Resource resource)
setResource in class BaseDescrpublic Collection<String> lookAheadFieldsOfIdentifier(PatternDescr patternDescr)
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.