Package org.drools.drl.ast.descr
Class TypeDeclarationDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
org.drools.drl.ast.descr.TypeDeclarationDescr
- All Implemented Interfaces:
Externalizable,Serializable,Comparable<TypeDeclarationDescr>,Namespaceable
public class TypeDeclarationDescr
extends AbstractClassTypeDeclarationDescr
implements Comparable<TypeDeclarationDescr>
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypeDeclarationDescr(String typeName) TypeDeclarationDescr(String typeName, String typeNamespace) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSuperType(String type) voidaddSuperType(QualifiedName type) intcompareTo(TypeDeclarationDescr descr) voidindexByFQN(boolean isStrict) booleanisTrait()voidvoidsetTrait(boolean trait) toString()voidMethods inherited from class org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
addField, equals, getFields, getFullTypeName, getSupertTypeFullName, getType, getTypeName, hashCode, setFields, setNamespace, setResource, setType, setType, setTypeNameMethods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotationMethods inherited from class org.drools.drl.ast.descr.BaseDescr
accept, copyLocation, getColumn, getEndCharacter, getEndColumn, getEndLine, getLine, getNamespace, getResource, getStartCharacter, getText, isNegated, negate, positionAsString, replaceVariable, setEndCharacter, setEndLocation, setLocation, setStartCharacter, setTextMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.drools.drl.ast.descr.Namespaceable
getNamespace
-
Constructor Details
-
TypeDeclarationDescr
public TypeDeclarationDescr() -
TypeDeclarationDescr
-
TypeDeclarationDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAbstractClassTypeDeclarationDescr- Throws:
IOException
-
toString
-
getSuperTypeName
- Overrides:
getSuperTypeNamein classAbstractClassTypeDeclarationDescr
-
getSuperTypeNamespace
- Overrides:
getSuperTypeNamespacein classAbstractClassTypeDeclarationDescr
-
getSuperTypes
- Overrides:
getSuperTypesin classAbstractClassTypeDeclarationDescr
-
addSuperType
-
addSuperType
-
compareTo
- Specified by:
compareToin interfaceComparable<TypeDeclarationDescr>
-
isTrait
public boolean isTrait() -
setTrait
public void setTrait(boolean trait) -
indexByFQN
public void indexByFQN(boolean isStrict) - Overrides:
indexByFQNin classAnnotatedBaseDescr
-