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 void
addSuperType(String type)
void
addSuperType(QualifiedName type)
int
compareTo(TypeDeclarationDescr descr)
String
getSuperTypeName()
String
getSuperTypeNamespace()
List<QualifiedName>
getSuperTypes()
void
indexByFQN(boolean isStrict)
boolean
isTrait()
void
readExternal(ObjectInput in)
void
setTrait(boolean trait)
String
toString()
void
writeExternal(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:
readExternal
in interfaceExternalizable
- Overrides:
readExternal
in classAbstractClassTypeDeclarationDescr
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classAbstractClassTypeDeclarationDescr
- Throws:
IOException
-
getSuperTypeName
public String getSuperTypeName()
- Overrides:
getSuperTypeName
in classAbstractClassTypeDeclarationDescr
-
getSuperTypeNamespace
public String getSuperTypeNamespace()
- Overrides:
getSuperTypeNamespace
in classAbstractClassTypeDeclarationDescr
-
getSuperTypes
public List<QualifiedName> getSuperTypes()
- Overrides:
getSuperTypes
in classAbstractClassTypeDeclarationDescr
-
addSuperType
public void addSuperType(String type)
-
addSuperType
public void addSuperType(QualifiedName type)
-
compareTo
public int compareTo(TypeDeclarationDescr descr)
- Specified by:
compareTo
in interfaceComparable<TypeDeclarationDescr>
-
isTrait
public boolean isTrait()
-
setTrait
public void setTrait(boolean trait)
-
indexByFQN
public void indexByFQN(boolean isStrict)
- Overrides:
indexByFQN
in classAnnotatedBaseDescr
-
-