Package org.drools.compiler.lang.descr
Class AbstractClassTypeDeclarationDescr
- java.lang.Object
-
- org.drools.compiler.lang.descr.BaseDescr
-
- org.drools.compiler.lang.descr.AnnotatedBaseDescr
-
- org.drools.compiler.lang.descr.AbstractClassTypeDeclarationDescr
-
- All Implemented Interfaces:
Externalizable
,Serializable
,org.drools.core.rule.Annotated
,org.drools.core.rule.Namespaceable
- Direct Known Subclasses:
EnumDeclarationDescr
,TypeDeclarationDescr
public abstract class AbstractClassTypeDeclarationDescr extends AnnotatedBaseDescr implements org.drools.core.rule.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 void
addField(TypeFieldDescr field)
boolean
equals(Object o)
Map<String,TypeFieldDescr>
getFields()
String
getFullTypeName()
String
getSupertTypeFullName()
String
getSuperTypeName()
String
getSuperTypeNamespace()
List<QualifiedName>
getSuperTypes()
QualifiedName
getType()
String
getTypeName()
int
hashCode()
void
readExternal(ObjectInput in)
void
setFields(Map<String,TypeFieldDescr> fields)
void
setNamespace(String namespace)
void
setResource(org.kie.api.io.Resource resource)
void
setType(String name, String namespace)
void
setType(QualifiedName qname)
void
setTypeName(String typeName)
void
writeExternal(ObjectOutput out)
-
Methods inherited from class org.drools.compiler.lang.descr.AnnotatedBaseDescr
addAnnotation, addAnnotation, addAnnotation, addQualifiedAnnotation, getAnnotation, getAnnotation, getAnnotationNames, getAnnotations, getTypedAnnotation, hasAnnotation, indexByFQN
-
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 classAnnotatedBaseDescr
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Overrides:
writeExternal
in classAnnotatedBaseDescr
- Throws:
IOException
-
setNamespace
public void setNamespace(String namespace)
- Specified by:
setNamespace
in interfaceorg.drools.core.rule.Namespaceable
- Overrides:
setNamespace
in 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:
setResource
in classBaseDescr
-
-