Package org.drools.core.base.extractors
Class ConstantValueReader
- java.lang.Object
-
- org.drools.core.base.extractors.ConstantValueReader
-
- All Implemented Interfaces:
InternalReadAccessor,ReadAccessor
public class ConstantValueReader extends Object implements InternalReadAccessor
-
-
Constructor Summary
Constructors Constructor Description ConstantValueReader(Object value)
-
Method Summary
-
-
-
Constructor Detail
-
ConstantValueReader
public ConstantValueReader(Object value)
-
-
Method Detail
-
getValue
public Object getValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getValuein interfaceInternalReadAccessor
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBigDecimalValuein interfaceInternalReadAccessor
-
getBigIntegerValue
public BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBigIntegerValuein interfaceInternalReadAccessor
-
getCharValue
public char getCharValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getCharValuein interfaceInternalReadAccessor
-
getIntValue
public int getIntValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getIntValuein interfaceInternalReadAccessor
-
getByteValue
public byte getByteValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getByteValuein interfaceInternalReadAccessor
-
getShortValue
public short getShortValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getShortValuein interfaceInternalReadAccessor
-
getLongValue
public long getLongValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getLongValuein interfaceInternalReadAccessor
-
getFloatValue
public float getFloatValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getFloatValuein interfaceInternalReadAccessor
-
getDoubleValue
public double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getDoubleValuein interfaceInternalReadAccessor
-
getBooleanValue
public boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getBooleanValuein interfaceInternalReadAccessor
-
isNullValue
public boolean isNullValue(InternalWorkingMemory workingMemory, Object object)
- Specified by:
isNullValuein interfaceInternalReadAccessor
-
getHashCode
public int getHashCode(InternalWorkingMemory workingMemory, Object object)
- Specified by:
getHashCodein interfaceInternalReadAccessor
-
isGlobal
public boolean isGlobal()
- Specified by:
isGlobalin interfaceInternalReadAccessor
-
isSelfReference
public boolean isSelfReference()
- Specified by:
isSelfReferencein interfaceInternalReadAccessor
-
getValue
public Object getValue(Object object)
- Specified by:
getValuein interfaceReadAccessor
-
getBigDecimalValue
public BigDecimal getBigDecimalValue(Object object)
- Specified by:
getBigDecimalValuein interfaceReadAccessor
-
getBigIntegerValue
public BigInteger getBigIntegerValue(Object object)
- Specified by:
getBigIntegerValuein interfaceReadAccessor
-
getCharValue
public char getCharValue(Object object)
- Specified by:
getCharValuein interfaceReadAccessor
-
getIntValue
public int getIntValue(Object object)
- Specified by:
getIntValuein interfaceReadAccessor
-
getByteValue
public byte getByteValue(Object object)
- Specified by:
getByteValuein interfaceReadAccessor
-
getShortValue
public short getShortValue(Object object)
- Specified by:
getShortValuein interfaceReadAccessor
-
getLongValue
public long getLongValue(Object object)
- Specified by:
getLongValuein interfaceReadAccessor
-
getFloatValue
public float getFloatValue(Object object)
- Specified by:
getFloatValuein interfaceReadAccessor
-
getDoubleValue
public double getDoubleValue(Object object)
- Specified by:
getDoubleValuein interfaceReadAccessor
-
getBooleanValue
public boolean getBooleanValue(Object object)
- Specified by:
getBooleanValuein interfaceReadAccessor
-
isNullValue
public boolean isNullValue(Object object)
- Specified by:
isNullValuein interfaceReadAccessor
-
getValueType
public ValueType getValueType()
- Specified by:
getValueTypein interfaceReadAccessor
-
getExtractToClass
public Class<?> getExtractToClass()
- Specified by:
getExtractToClassin interfaceReadAccessor
-
getExtractToClassName
public String getExtractToClassName()
- Specified by:
getExtractToClassNamein interfaceReadAccessor
-
getNativeReadMethod
public Method getNativeReadMethod()
- Specified by:
getNativeReadMethodin interfaceReadAccessor
-
getNativeReadMethodName
public String getNativeReadMethodName()
- Specified by:
getNativeReadMethodNamein interfaceReadAccessor
-
getHashCode
public int getHashCode(Object object)
- Specified by:
getHashCodein interfaceReadAccessor
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceReadAccessor
-
-