Drools :: Core 6.1.0.Beta1

org.drools.core.base.extractors
Class ConstantValueReader

java.lang.Object
  extended by org.drools.core.base.extractors.ConstantValueReader
All Implemented Interfaces:
InternalReadAccessor, ReadAccessor

public class ConstantValueReader
extends Object
implements InternalReadAccessor


Constructor Summary
ConstantValueReader(Object value)
           
 
Method Summary
 BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory, Object object)
           
 BigDecimal getBigDecimalValue(Object object)
           
 BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory, Object object)
           
 BigInteger getBigIntegerValue(Object object)
           
 boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
           
 boolean getBooleanValue(Object object)
           
 byte getByteValue(InternalWorkingMemory workingMemory, Object object)
           
 byte getByteValue(Object object)
           
 char getCharValue(InternalWorkingMemory workingMemory, Object object)
           
 char getCharValue(Object object)
           
 double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
           
 double getDoubleValue(Object object)
           
 Class<?> getExtractToClass()
           
 String getExtractToClassName()
           
 float getFloatValue(InternalWorkingMemory workingMemory, Object object)
           
 float getFloatValue(Object object)
           
 int getHashCode(InternalWorkingMemory workingMemory, Object object)
           
 int getHashCode(Object object)
           
 int getIndex()
           
 int getIntValue(InternalWorkingMemory workingMemory, Object object)
           
 int getIntValue(Object object)
           
 long getLongValue(InternalWorkingMemory workingMemory, Object object)
           
 long getLongValue(Object object)
           
 Method getNativeReadMethod()
           
 String getNativeReadMethodName()
           
 short getShortValue(InternalWorkingMemory workingMemory, Object object)
           
 short getShortValue(Object object)
           
 Object getValue(InternalWorkingMemory workingMemory, Object object)
           
 Object getValue(Object object)
           
 ValueType getValueType()
           
 boolean isGlobal()
           
 boolean isNullValue(InternalWorkingMemory workingMemory, Object object)
           
 boolean isNullValue(Object object)
           
 boolean isSelfReference()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstantValueReader

public ConstantValueReader(Object value)
Method Detail

getValue

public Object getValue(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getValue in interface InternalReadAccessor

getBigDecimalValue

public BigDecimal getBigDecimalValue(InternalWorkingMemory workingMemory,
                                     Object object)
Specified by:
getBigDecimalValue in interface InternalReadAccessor

getBigIntegerValue

public BigInteger getBigIntegerValue(InternalWorkingMemory workingMemory,
                                     Object object)
Specified by:
getBigIntegerValue in interface InternalReadAccessor

getCharValue

public char getCharValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getCharValue in interface InternalReadAccessor

getIntValue

public int getIntValue(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getIntValue in interface InternalReadAccessor

getByteValue

public byte getByteValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getByteValue in interface InternalReadAccessor

getShortValue

public short getShortValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
getShortValue in interface InternalReadAccessor

getLongValue

public long getLongValue(InternalWorkingMemory workingMemory,
                         Object object)
Specified by:
getLongValue in interface InternalReadAccessor

getFloatValue

public float getFloatValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
getFloatValue in interface InternalReadAccessor

getDoubleValue

public double getDoubleValue(InternalWorkingMemory workingMemory,
                             Object object)
Specified by:
getDoubleValue in interface InternalReadAccessor

getBooleanValue

public boolean getBooleanValue(InternalWorkingMemory workingMemory,
                               Object object)
Specified by:
getBooleanValue in interface InternalReadAccessor

isNullValue

public boolean isNullValue(InternalWorkingMemory workingMemory,
                           Object object)
Specified by:
isNullValue in interface InternalReadAccessor

getHashCode

public int getHashCode(InternalWorkingMemory workingMemory,
                       Object object)
Specified by:
getHashCode in interface InternalReadAccessor

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface InternalReadAccessor

isSelfReference

public boolean isSelfReference()
Specified by:
isSelfReference in interface InternalReadAccessor

getValue

public Object getValue(Object object)
Specified by:
getValue in interface ReadAccessor

getBigDecimalValue

public BigDecimal getBigDecimalValue(Object object)
Specified by:
getBigDecimalValue in interface ReadAccessor

getBigIntegerValue

public BigInteger getBigIntegerValue(Object object)
Specified by:
getBigIntegerValue in interface ReadAccessor

getCharValue

public char getCharValue(Object object)
Specified by:
getCharValue in interface ReadAccessor

getIntValue

public int getIntValue(Object object)
Specified by:
getIntValue in interface ReadAccessor

getByteValue

public byte getByteValue(Object object)
Specified by:
getByteValue in interface ReadAccessor

getShortValue

public short getShortValue(Object object)
Specified by:
getShortValue in interface ReadAccessor

getLongValue

public long getLongValue(Object object)
Specified by:
getLongValue in interface ReadAccessor

getFloatValue

public float getFloatValue(Object object)
Specified by:
getFloatValue in interface ReadAccessor

getDoubleValue

public double getDoubleValue(Object object)
Specified by:
getDoubleValue in interface ReadAccessor

getBooleanValue

public boolean getBooleanValue(Object object)
Specified by:
getBooleanValue in interface ReadAccessor

isNullValue

public boolean isNullValue(Object object)
Specified by:
isNullValue in interface ReadAccessor

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface ReadAccessor

getExtractToClass

public Class<?> getExtractToClass()
Specified by:
getExtractToClass in interface ReadAccessor

getExtractToClassName

public String getExtractToClassName()
Specified by:
getExtractToClassName in interface ReadAccessor

getNativeReadMethod

public Method getNativeReadMethod()
Specified by:
getNativeReadMethod in interface ReadAccessor

getNativeReadMethodName

public String getNativeReadMethodName()
Specified by:
getNativeReadMethodName in interface ReadAccessor

getHashCode

public int getHashCode(Object object)
Specified by:
getHashCode in interface ReadAccessor

getIndex

public int getIndex()
Specified by:
getIndex in interface ReadAccessor

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.