org.drools.compiler.lang.descr
Class TypeDeclarationDescr
java.lang.Object
org.drools.compiler.lang.descr.BaseDescr
org.drools.compiler.lang.descr.AnnotatedBaseDescr
org.drools.compiler.lang.descr.AbstractClassTypeDeclarationDescr
org.drools.compiler.lang.descr.TypeDeclarationDescr
- All Implemented Interfaces:
- Externalizable, Serializable, Comparable<TypeDeclarationDescr>, org.drools.core.rule.Namespaceable
public class TypeDeclarationDescr
- extends AbstractClassTypeDeclarationDescr
- implements Comparable<TypeDeclarationDescr>
- See Also:
- Serialized Form
| Methods inherited from class org.drools.compiler.lang.descr.AbstractClassTypeDeclarationDescr |
addField, equals, getFields, getSupertTypeFullName, getType, getTypeName, hashCode, setFields, setNamespace, setResource, setType, setType, setTypeName |
| 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 |
copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, positionAsString, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText |
| Methods inherited from interface org.drools.core.rule.Namespaceable |
getNamespace |
TypeDeclarationDescr
public TypeDeclarationDescr()
TypeDeclarationDescr
public TypeDeclarationDescr(String typeName)
TypeDeclarationDescr
public TypeDeclarationDescr(String typeName,
String typeNamespace)
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>
isTrait
public boolean isTrait()
setTrait
public void setTrait(boolean trait)
Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.