public class ClassObjectType extends Object implements ObjectType, ClassWireable, Externalizable
ObjectType
.Modifier and Type | Field and 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 and 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
|
Modifier and Type | Method and 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) |
public static final ClassObjectType InitialFact_ObjectType
public static final ClassObjectType DroolsQuery_ObjectType
public static final ClassObjectType Map_ObjectType
public static final ClassObjectType ObjectArray_ObjectType
public static final ClassObjectType Match_ObjectType
protected Class<?> cls
protected String clsName
protected ValueType valueType
public ClassObjectType()
public ClassObjectType(Class<?> objectTypeClass)
objectTypeClass
- Java object class.public ClassObjectType(Class<?> objectTypeClass, boolean isEvent)
objectTypeClass
- the class represented by this class object typeisEvent
- true if it is an event class, false otherwisepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public Class<?> getClassType()
getClassType
in interface ClassWireable
public String getClassName()
getClassName
in interface ClassWireable
public void setClassType(Class<?> cls)
public boolean isAssignableFrom(ObjectType objectType)
isAssignableFrom
in interface ObjectType
public boolean isAssignableFrom(Class<?> clazz)
isAssignableFrom
in interface ObjectType
public ValueType getValueType()
getValueType
in interface ObjectType
public boolean isEvent()
ObjectType
isEvent
in interface ObjectType
public void setEvent(boolean isEvent)
public boolean equals(Object object)
public void wire(Class<?> klass)
wire
in interface ClassWireable
public BitMask getTransformedMask(Class<?> modifiedClass, BitMask modificationMask)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.