Package org.drools.base.base
Class ClassObjectType
java.lang.Object
org.drools.base.base.ClassObjectType
- All Implemented Interfaces:
Externalizable,Serializable,ClassWireable,ObjectType
Java class semantics
ObjectType.- Version:
- $Id: ClassObjectType.java,v 1.5 2005/02/04 02:13:36 mproctor Exp $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Class<?>Java object class.protected Stringstatic final ClassObjectTypestatic final ClassObjectTypestatic final ClassObjectTypestatic final ClassObjectTypestatic final ClassObjectTypeprotected ValueType -
Constructor Summary
ConstructorsConstructorDescriptionClassObjectType(Class<?> objectTypeClass) Creates a new class object type with shadow disabled.ClassObjectType(Class<?> objectTypeClass, boolean isEvent) Creates a new class object type -
Method Summary
Modifier and TypeMethodDescriptionbooleanDetermine if another object is equal to this.Class<?>getTransformedMask(Class<?> modifiedClass, BitMask modificationMask) booleaninthashCode()booleanisAssignableFrom(Class<?> clazz) booleanisAssignableFrom(ObjectType objectType) booleanisAssignableTo(Class<?> clazz) booleanisEvent()Returns true if the object type represented by this object is an event object type.booleanvoidvoidsetClassType(Class<?> cls) voidsetEvent(boolean isEvent) voidstoreTransformedMask(Class<?> modifiedClass, BitMask modificationMask, BitMask transforedMask) toString()voidvoid
-
Field Details
-
InitialFact_ObjectType
-
DroolsQuery_ObjectType
-
Map_ObjectType
-
ObjectArray_ObjectType
-
Match_ObjectType
-
cls
Java object class. -
clsName
-
valueType
-
-
Constructor Details
-
ClassObjectType
public ClassObjectType() -
ClassObjectType
Creates a new class object type with shadow disabled.- Parameters:
objectTypeClass- Java object class.
-
ClassObjectType
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 Details
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
getClassType
- Specified by:
getClassTypein interfaceClassWireable
-
getTypeKey
- Specified by:
getTypeKeyin interfaceObjectType
-
getClassName
- Specified by:
getClassNamein interfaceClassWireable- Specified by:
getClassNamein interfaceObjectType
-
hasField
- Specified by:
hasFieldin interfaceObjectType
-
setClassType
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableFrom
- Specified by:
isAssignableFromin interfaceObjectType
-
isAssignableTo
- Specified by:
isAssignableToin interfaceObjectType
-
getValueType
- Specified by:
getValueTypein interfaceObjectType
-
isEvent
public boolean isEvent()Description copied from interface:ObjectTypeReturns true if the object type represented by this object is an event object type. False otherwise.- Specified by:
isEventin interfaceObjectType- Returns:
-
setEvent
public void setEvent(boolean isEvent) -
isPrototype
public boolean isPrototype()- Specified by:
isPrototypein interfaceObjectType
-
toString
-
equals
Determine if another object is equal to this. -
hashCode
public int hashCode() -
wire
- Specified by:
wirein interfaceClassWireable
-
getTransformedMask
-
storeTransformedMask
-