Package 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.Annotated,org.drools.core.rule.Namespaceable
public class TypeDeclarationDescr extends AbstractClassTypeDeclarationDescr implements Comparable<TypeDeclarationDescr>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TypeDeclarationDescr()TypeDeclarationDescr(String typeName)TypeDeclarationDescr(String typeName, String typeNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSuperType(String type)voidaddSuperType(QualifiedName type)intcompareTo(TypeDeclarationDescr descr)StringgetSuperTypeName()StringgetSuperTypeNamespace()List<QualifiedName>getSuperTypes()voidindexByFQN(boolean isStrict)booleanisTrait()voidreadExternal(ObjectInput in)voidsetTrait(boolean trait)StringtoString()voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.compiler.lang.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getFullTypeName, 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
-
Methods inherited from class org.drools.compiler.lang.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setText
-
-
-
-
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
-
getSuperTypeName
public String getSuperTypeName()
- Overrides:
getSuperTypeNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypeNamespace
public String getSuperTypeNamespace()
- Overrides:
getSuperTypeNamespacein classAbstractClassTypeDeclarationDescr
-
getSuperTypes
public List<QualifiedName> getSuperTypes()
- Overrides:
getSuperTypesin classAbstractClassTypeDeclarationDescr
-
addSuperType
public void addSuperType(String type)
-
addSuperType
public void addSuperType(QualifiedName type)
-
compareTo
public int compareTo(TypeDeclarationDescr descr)
- Specified by:
compareToin interfaceComparable<TypeDeclarationDescr>
-
isTrait
public boolean isTrait()
-
setTrait
public void setTrait(boolean trait)
-
indexByFQN
public void indexByFQN(boolean isStrict)
- Overrides:
indexByFQNin classAnnotatedBaseDescr
-
-