org.drools.base.extractors
Class MVELClassFieldReader

java.lang.Object
  extended by org.drools.base.BaseClassFieldReader
      extended by org.drools.base.extractors.BaseObjectClassFieldReader
          extended by org.drools.base.extractors.MVELClassFieldReader
All Implemented Interfaces:
Externalizable, Serializable, MVELCompileable, InternalReadAccessor, ReadAccessor

public class MVELClassFieldReader
extends BaseObjectClassFieldReader
implements Externalizable, MVELCompileable

A class field extractor that uses MVEL engine to extract the actual value for a given expression. We use MVEL to resolve nested accessor expressions.

See Also:
Serialized Form

Constructor Summary
MVELClassFieldReader()
           
MVELClassFieldReader(String className, String expr, boolean typesafe)
           
 
Method Summary
 void compile(MVELDialectRuntimeData runtimeData)
           
 Object getValue(InternalWorkingMemory workingMemory, Object object)
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.drools.base.extractors.BaseObjectClassFieldReader
getBooleanValue, getByteValue, getCharValue, getDoubleValue, getFloatValue, getHashCode, getIntValue, getLongValue, getNativeReadMethod, getShortValue, isNullValue
 
Methods inherited from class org.drools.base.BaseClassFieldReader
equals, getBigDecimalValue, getBigDecimalValue, getBigIntegerValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getExtractToClass, getExtractToClassName, getFloatValue, getHashCode, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValueType, hashCode, isGlobal, isNullValue, isSelfReference, setFieldType, setIndex, setValueType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MVELClassFieldReader

public MVELClassFieldReader()

MVELClassFieldReader

public MVELClassFieldReader(String className,
                            String expr,
                            boolean typesafe)
Method Detail

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

compile

public void compile(MVELDialectRuntimeData runtimeData)
Specified by:
compile in interface MVELCompileable

getValue

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


Copyright © 2001-2013 JBoss Inc.. All Rights Reserved.