org.drools.lang.descr
Class TypeDeclarationDescr

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.TypeDeclarationDescr
All Implemented Interfaces:
Externalizable, Serializable, Comparable<TypeDeclarationDescr>, Namespaceable

public class TypeDeclarationDescr
extends AbstractClassTypeDeclarationDescr
implements Comparable<TypeDeclarationDescr>

See Also:
Serialized Form

Constructor Summary
TypeDeclarationDescr()
           
TypeDeclarationDescr(String typeName)
           
TypeDeclarationDescr(String typeName, String typeNamespace)
           
 
Method Summary
 void addSuperType(QualifiedName type)
           
 void addSuperType(String type)
           
 int compareTo(TypeDeclarationDescr descr)
           
 String getSuperTypeName()
           
 String getSuperTypeNamespace()
           
 List<QualifiedName> getSuperTypes()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.lang.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getSupertTypeFullName, 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

TypeDeclarationDescr

public TypeDeclarationDescr()

TypeDeclarationDescr

public TypeDeclarationDescr(String typeName)

TypeDeclarationDescr

public TypeDeclarationDescr(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

getSuperTypeName

public String getSuperTypeName()
Overrides:
getSuperTypeName in class AbstractClassTypeDeclarationDescr

getSuperTypeNamespace

public String getSuperTypeNamespace()
Overrides:
getSuperTypeNamespace in class AbstractClassTypeDeclarationDescr

getSuperTypes

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

addSuperType

public void addSuperType(String type)

addSuperType

public void addSuperType(QualifiedName type)

compareTo

public int compareTo(TypeDeclarationDescr descr)
Specified by:
compareTo in interface Comparable<TypeDeclarationDescr>


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