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)
           
 boolean equals(Object obj)
          
 Object getValue(InternalWorkingMemory workingMemory, Object object)
           
 int hashCode()
          
 void readExternal(ObjectInput in)
           
 String toString()
          
 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
getBigDecimalValue, getBigDecimalValue, getBigIntegerValue, getBigIntegerValue, getBooleanValue, getByteValue, getCharValue, getDoubleValue, getExtractToClass, getExtractToClassName, getFloatValue, getHashCode, getIndex, getIntValue, getLongValue, getShortValue, getValue, getValueType, isGlobal, isNullValue, isSelfReference, setFieldType, setIndex, setValueType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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

hashCode

public int hashCode()

Overrides:
hashCode in class BaseClassFieldReader

equals

public boolean equals(Object obj)

Overrides:
equals in class BaseClassFieldReader

toString

public String toString()

Overrides:
toString in class Object


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