org.drools.lang.descr
Class EnumDeclarationDescr

java.lang.Object
  extended by org.drools.lang.descr.BaseDescr
      extended by org.drools.lang.descr.AnnotatedBaseDescr
          extended by org.drools.lang.descr.AbstractClassTypeDeclarationDescr
              extended by org.drools.lang.descr.EnumDeclarationDescr
All Implemented Interfaces:
Externalizable, Serializable, Namespaceable

public class EnumDeclarationDescr
extends AbstractClassTypeDeclarationDescr

See Also:
Serialized Form

Constructor Summary
EnumDeclarationDescr()
           
EnumDeclarationDescr(String typeName)
           
EnumDeclarationDescr(String typeName, String typeNamespace)
           
 
Method Summary
 void addLiteral(EnumLiteralDescr lit)
           
 List<EnumLiteralDescr> getLiterals()
           
 String getSupertTypeFullName()
           
 String getSuperTypeName()
           
 String getSuperTypeNamespace()
           
 List<QualifiedName> getSuperTypes()
           
 void readExternal(ObjectInput in)
           
 void setLiterals(List<EnumLiteralDescr> literals)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.lang.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getType, getTypeName, hashCode, setFields, setNamespace, setResource, setType, setType, setTypeName
 
Methods inherited from class org.drools.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, getAnnotation, getAnnotationNames, getAnnotations
 
Methods inherited from class org.drools.lang.descr.BaseDescr
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, 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.rule.Namespaceable
getNamespace
 

Constructor Detail

EnumDeclarationDescr

public EnumDeclarationDescr()

EnumDeclarationDescr

public EnumDeclarationDescr(String typeName)

EnumDeclarationDescr

public EnumDeclarationDescr(String typeName,
                            String typeNamespace)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class AbstractClassTypeDeclarationDescr
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class AbstractClassTypeDeclarationDescr
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

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:
getSuperTypeName in class AbstractClassTypeDeclarationDescr

getSuperTypeNamespace

public String getSuperTypeNamespace()
Overrides:
getSuperTypeNamespace in class AbstractClassTypeDeclarationDescr

getSupertTypeFullName

public String getSupertTypeFullName()
Overrides:
getSupertTypeFullName in class AbstractClassTypeDeclarationDescr

getSuperTypes

public List<QualifiedName> getSuperTypes()
Overrides:
getSuperTypes in class AbstractClassTypeDeclarationDescr


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.