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
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEnumDeclarationDescr(String typeName) EnumDeclarationDescr(String typeName, String typeNamespace) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidsetLiterals(List<EnumLiteralDescr> literals) toString()voidMethods inherited from class org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getFullTypeName, getType, getTypeName, hashCode, setFields, setNamespace, setResource, setType, setType, setTypeNameMethods 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, setStartCharacter, setTextMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.drl.ast.descr.Namespaceable
getNamespace
-
Constructor Details
-
EnumDeclarationDescr
public EnumDeclarationDescr() -
EnumDeclarationDescr
-
EnumDeclarationDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOException
-
toString
-
getLiterals
-
setLiterals
- Parameters:
literals- the fields to set
-
addLiteral
-
getSuperTypeName
- Overrides:
getSuperTypeNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypeNamespace
- Overrides:
getSuperTypeNamespacein classAbstractClassTypeDeclarationDescr
-
getSupertTypeFullName
- Overrides:
getSupertTypeFullNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypes
- Overrides:
getSuperTypesin classAbstractClassTypeDeclarationDescr
-