Package org.drools.compiler.lang.descr
Class ConditionalBranchDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.ConditionalBranchDescr
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.drools.core.rule.Namespaceable
public class ConditionalBranchDescr extends BaseDescr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConditionalBranchDescr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(DescrVisitor visitor)
EvalDescr
getCondition()
NamedConsequenceDescr
getConsequence()
ConditionalBranchDescr
getElseBranch()
PatternDescr
getReferringPatternDescr(AndDescr parent)
void
readExternal(ObjectInput in)
void
setCondition(EvalDescr condition)
void
setConsequence(NamedConsequenceDescr consequence)
void
setElseBranch(ConditionalBranchDescr elseBranch)
String
toString()
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classBaseDescr
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classBaseDescr
- Throws:
IOException
-
getCondition
public EvalDescr getCondition()
-
setCondition
public void setCondition(EvalDescr condition)
-
getConsequence
public NamedConsequenceDescr getConsequence()
-
setConsequence
public void setConsequence(NamedConsequenceDescr consequence)
-
getElseBranch
public ConditionalBranchDescr getElseBranch()
-
setElseBranch
public void setElseBranch(ConditionalBranchDescr elseBranch)
-
accept
public void accept(DescrVisitor visitor)
-
getReferringPatternDescr
public PatternDescr getReferringPatternDescr(AndDescr parent)
-
-