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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractClassTypeDeclarationDescr()AbstractClassTypeDeclarationDescr(String name)AbstractClassTypeDeclarationDescr(String typeName, String typeNamespace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddField(TypeFieldDescr field)booleanequals(Object o)Map<String,TypeFieldDescr>getFields()StringgetFullTypeName()StringgetSupertTypeFullName()StringgetSuperTypeName()StringgetSuperTypeNamespace()List<QualifiedName>getSuperTypes()QualifiedNamegetType()StringgetTypeName()inthashCode()voidreadExternal(ObjectInput in)voidsetFields(Map<String,TypeFieldDescr> fields)voidsetNamespace(String namespace)voidsetResource(org.kie.api.io.Resource resource)voidsetType(String name, String namespace)voidsetType(QualifiedName qname)voidsetTypeName(String typeName)voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.drools.drl.ast.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, hasAnnotation, hasAnnotation, indexByFQN
-
Methods 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, setText
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.drl.ast.descr.Namespaceable
getNamespace
-
-
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classAnnotatedBaseDescr- Throws:
IOExceptionClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classAnnotatedBaseDescr- Throws:
IOException
-
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespacein interfaceNamespaceable- Overrides:
setNamespacein classBaseDescr
-
getTypeName
public String getTypeName()
- Returns:
- the identifier
-
getFullTypeName
public String getFullTypeName()
-
setTypeName
public void setTypeName(String typeName)
- Parameters:
typeName- the identifier to set
-
getType
public QualifiedName getType()
-
setType
public void setType(QualifiedName qname)
-
getSuperTypeName
public String getSuperTypeName()
-
getSuperTypeNamespace
public String getSuperTypeNamespace()
-
getSupertTypeFullName
public String getSupertTypeFullName()
-
getSuperTypes
public List<QualifiedName> getSuperTypes()
-
getFields
public Map<String,TypeFieldDescr> getFields()
- Returns:
- the fields
-
setFields
public void setFields(Map<String,TypeFieldDescr> fields)
- Parameters:
fields- the fields to set
-
addField
public void addField(TypeFieldDescr field)
-
setResource
public void setResource(org.kie.api.io.Resource resource)
- Overrides:
setResourcein classBaseDescr
-
-