Package org.drools.core.base
Class BaseClassFieldReader
- java.lang.Object
-
- org.drools.core.base.BaseClassFieldReader
-
- All Implemented Interfaces:
Externalizable,Serializable,ReadAccessor
- Direct Known Subclasses:
BaseObjectClassFieldReader
public abstract class BaseClassFieldReader extends Object implements ReadAccessor, Externalizable
This is the supertype for the ASM generated classes for accessing a field.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description BaseClassFieldReader()protectedBaseClassFieldReader(int index, Class<?> fieldType, ValueType valueType)This constructor is not supposed to be used from outside the class hirarchy
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)Class<?>getExtractToClass()StringgetExtractToClassName()intgetHashCode(Object object)intgetIndex()ObjectgetValue(Object object)ValueTypegetValueType()inthashCode()booleanisGlobal()booleanisNullValue(Object object)booleanisSelfReference()voidreadExternal(ObjectInput in)voidsetFieldType(Class<?> fieldType)voidsetIndex(int i)voidsetValueType(ValueType valueType)voidwriteExternal(ObjectOutput out)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.rule.accessor.ReadAccessor
getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getHashCode, getIntValue, getLongValue, getNativeReadMethod, getNativeReadMethodName, getShortValue, getValue, isNullValue
-
-
-
-
Method Detail
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceReadAccessor
-
setIndex
public void setIndex(int i)
-
getExtractToClass
public Class<?> getExtractToClass()
- Specified by:
getExtractToClassin interfaceReadAccessor
-
getExtractToClassName
public String getExtractToClassName()
- Specified by:
getExtractToClassNamein interfaceReadAccessor
-
setFieldType
public void setFieldType(Class<?> fieldType)
-
setValueType
public void setValueType(ValueType valueType)
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceReadAccessor
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobalin interfaceReadAccessor
-
isSelfReference
public boolean isSelfReference()
- Specified by:
isSelfReferencein interfaceReadAccessor
-
getValue
public Object getValue(Object object)
- Specified by:
getValuein interfaceReadAccessor
-
isNullValue
public boolean isNullValue(Object object)
- Specified by:
isNullValuein interfaceReadAccessor
-
getHashCode
public int getHashCode(Object object)
- Specified by:
getHashCodein interfaceReadAccessor
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
-