Package org.drools.drl.ast.descr
Class EnumDeclarationDescr
- java.lang.Object
-
- org.drools.drl.ast.descr.BaseDescr
-
- org.drools.drl.ast.descr.AnnotatedBaseDescr
-
- org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
-
- org.drools.drl.ast.descr.EnumDeclarationDescr
-
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
public class EnumDeclarationDescr extends AbstractClassTypeDeclarationDescr
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumDeclarationDescr()EnumDeclarationDescr(String typeName)EnumDeclarationDescr(String typeName, String typeNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLiteral(EnumLiteralDescr lit)List<EnumLiteralDescr>getLiterals()StringgetSupertTypeFullName()StringgetSuperTypeName()StringgetSuperTypeNamespace()List<QualifiedName>getSuperTypes()voidreadExternal(ObjectInput in)voidsetLiterals(List<EnumLiteralDescr> literals)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getFullTypeName, getType, getTypeName, hashCode, setFields, setNamespace, setResource, setType, setType, setTypeName
-
Methods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQN
-
Methods 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, setStartCharacter, setText
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.drools.drl.ast.descr.Namespaceable
getNamespace
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOException
-
getLiterals
public List<EnumLiteralDescr> getLiterals()
-
setLiterals
public void setLiterals(List<EnumLiteralDescr> literals)
- Parameters:
literals- the fields to set
-
addLiteral
public void addLiteral(EnumLiteralDescr lit)
-
getSuperTypeName
public String getSuperTypeName()
- Overrides:
getSuperTypeNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypeNamespace
public String getSuperTypeNamespace()
- Overrides:
getSuperTypeNamespacein classAbstractClassTypeDeclarationDescr
-
getSupertTypeFullName
public String getSupertTypeFullName()
- Overrides:
getSupertTypeFullNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypes
public List<QualifiedName> getSuperTypes()
- Overrides:
getSuperTypesin classAbstractClassTypeDeclarationDescr
-
-