Package org.drools.compiler.lang.descr
Class EnumLiteralDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.AnnotatedBaseDescr
-
- org.drools.compiler.lang.descr.EnumLiteralDescr
-
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<EnumLiteralDescr>,org.drools.core.rule.Annotated,org.drools.core.rule.Namespaceable
public class EnumLiteralDescr extends AnnotatedBaseDescr implements Comparable<EnumLiteralDescr>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumLiteralDescr()EnumLiteralDescr(String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConstructorArg(String arg)intcompareTo(EnumLiteralDescr other)List<String>getConstructorArgs()intgetIndex()StringgetName()voidreadExternal(ObjectInput in)voidsetConstructorArgs(List<String> constructorArgs)voidsetIndex(int index)voidsetName(String name)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.compiler.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN
-
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setNamespace, setResource, setStartCharacter, setText
-
-
-
-
Constructor Detail
-
EnumLiteralDescr
public EnumLiteralDescr()
-
EnumLiteralDescr
public EnumLiteralDescr(String name)
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
getName
public String getName()
-
setName
public void setName(String name)
-
addConstructorArg
public void addConstructorArg(String arg)
-
compareTo
public int compareTo(EnumLiteralDescr other)
- Specified by:
compareToin interfaceComparable<EnumLiteralDescr>
-
getIndex
public int getIndex()
-
setIndex
public void setIndex(int index)
-
-