Package org.drools.drl.ast.descr
Class AbstractClassTypeDeclarationDescr
java.lang.Object
org.drools.drl.ast.descr.BaseDescr
org.drools.drl.ast.descr.AnnotatedBaseDescr
org.drools.drl.ast.descr.AbstractClassTypeDeclarationDescr
- All Implemented Interfaces:
Externalizable,Serializable,Namespaceable
- Direct Known Subclasses:
EnumDeclarationDescr,TypeDeclarationDescr
public abstract class AbstractClassTypeDeclarationDescr
extends AnnotatedBaseDescr
implements Namespaceable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddField(TypeFieldDescr field) booleangetType()inthashCode()voidvoidsetFields(Map<String, TypeFieldDescr> fields) voidsetNamespace(String namespace) voidsetResource(Resource resource) voidvoidsetType(QualifiedName qname) voidsetTypeName(String typeName) voidMethods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQNMethods 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, toString, wait, wait, waitMethods inherited from interface org.drools.drl.ast.descr.Namespaceable
getNamespace
-
Constructor Details
-
AbstractClassTypeDeclarationDescr
public AbstractClassTypeDeclarationDescr() -
AbstractClassTypeDeclarationDescr
-
AbstractClassTypeDeclarationDescr
-
-
Method Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
setNamespace
- Specified by:
setNamespacein interfaceNamespaceable- Overrides:
setNamespacein classBaseDescr
-
getTypeName
- Returns:
- the identifier
-
getFullTypeName
-
setTypeName
- Parameters:
typeName- the identifier to set
-
getType
-
setType
-
setType
-
getSuperTypeName
-
getSuperTypeNamespace
-
getSupertTypeFullName
-
getSuperTypes
-
getFields
- Returns:
- the fields
-
setFields
- Parameters:
fields- the fields to set
-
addField
-
setResource
- Overrides:
setResourcein classBaseDescr
-
equals
-
hashCode
public int hashCode()
-