Package org.drools.core.base
Class ClassObjectType
- java.lang.Object
-
- org.drools.core.base.ClassObjectType
-
- All Implemented Interfaces:
Externalizable
,Serializable
,ClassWireable
,ObjectType
public class ClassObjectType extends Object implements ObjectType, ClassWireable, Externalizable
Java class semanticsObjectType
.- Version:
- $Id: ClassObjectType.java,v 1.5 2005/02/04 02:13:36 mproctor Exp $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>
cls
Java object class.protected String
clsName
static ClassObjectType
DroolsQuery_ObjectType
static ClassObjectType
InitialFact_ObjectType
static ClassObjectType
Map_ObjectType
static ClassObjectType
Match_ObjectType
static ClassObjectType
ObjectArray_ObjectType
protected ValueType
valueType
-
Constructor Summary
Constructors Constructor Description ClassObjectType()
ClassObjectType(Class<?> objectTypeClass)
Creates a new class object type with shadow disabled.ClassObjectType(Class<?> objectTypeClass, boolean isEvent)
Creates a new class object type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Determine if another object is equal to this.String
getClassName()
Class<?>
getClassType()
Return the Java object class.BitMask
getTransformedMask(Class<?> modifiedClass, BitMask modificationMask)
ValueType
getValueType()
int
hashCode()
boolean
isAssignableFrom(Class<?> clazz)
boolean
isAssignableFrom(ObjectType objectType)
boolean
isEvent()
Returns true if the object type represented by this object is an event object type.void
readExternal(ObjectInput in)
void
setClassType(Class<?> cls)
void
setEvent(boolean isEvent)
void
storeTransformedMask(Class<?> modifiedClass, BitMask modificationMask, BitMask transforedMask)
String
toString()
void
wire(Class<?> klass)
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
InitialFact_ObjectType
public static final ClassObjectType InitialFact_ObjectType
-
DroolsQuery_ObjectType
public static final ClassObjectType DroolsQuery_ObjectType
-
Map_ObjectType
public static final ClassObjectType Map_ObjectType
-
ObjectArray_ObjectType
public static final ClassObjectType ObjectArray_ObjectType
-
Match_ObjectType
public static final ClassObjectType Match_ObjectType
-
cls
protected Class<?> cls
Java object class.
-
clsName
protected String clsName
-
valueType
protected ValueType valueType
-
-
Constructor Detail
-
ClassObjectType
public ClassObjectType()
-
ClassObjectType
public ClassObjectType(Class<?> objectTypeClass)
Creates a new class object type with shadow disabled.- Parameters:
objectTypeClass
- Java object class.
-
ClassObjectType
public ClassObjectType(Class<?> objectTypeClass, boolean isEvent)
Creates a new class object type- Parameters:
objectTypeClass
- the class represented by this class object typeisEvent
- true if it is an event class, false otherwise
-
-
Method Detail
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getClassType
public Class<?> getClassType()
Return the Java object class.- Specified by:
getClassType
in interfaceClassWireable
- Specified by:
getClassType
in interfaceObjectType
- Returns:
- The Java object class.
-
getClassName
public String getClassName()
- Specified by:
getClassName
in interfaceClassWireable
- Specified by:
getClassName
in interfaceObjectType
-
setClassType
public void setClassType(Class<?> cls)
-
isAssignableFrom
public boolean isAssignableFrom(ObjectType objectType)
- Specified by:
isAssignableFrom
in interfaceObjectType
-
isAssignableFrom
public boolean isAssignableFrom(Class<?> clazz)
- Specified by:
isAssignableFrom
in interfaceObjectType
-
getValueType
public ValueType getValueType()
- Specified by:
getValueType
in interfaceObjectType
-
isEvent
public boolean isEvent()
Description copied from interface:ObjectType
Returns true if the object type represented by this object is an event object type. False otherwise.- Specified by:
isEvent
in interfaceObjectType
- Returns:
-
setEvent
public void setEvent(boolean isEvent)
-
equals
public boolean equals(Object object)
Determine if another object is equal to this.
-
wire
public void wire(Class<?> klass)
- Specified by:
wire
in interfaceClassWireable
-
getTransformedMask
public BitMask getTransformedMask(Class<?> modifiedClass, BitMask modificationMask)
-
-