站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

ClassFieldExtractorFactory (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.base
Class ClassFieldExtractorFactory

java.lang.Object
  extended by org.drools.base.ClassFieldExtractorFactory

public class ClassFieldExtractorFactory
extends Object

This generates subclasses of BaseClassFieldExtractor to provide field extractors. This should not be used directly, but via ClassFieldExtractor (which ensures that it is all nicely serializable).

Author:
Alexander Bagerman, Michael Neale

Constructor Summary
ClassFieldExtractorFactory()
           
 
Method Summary
protected static void buildClassHeader(Class superClass, String className, ClassWriter cw)
          Builds the class header
protected static void buildGetMethod(Class originalClass, String className, Class superClass, Method getterMethod, ClassWriter cw)
          Creates the proxy reader method for the given method
static BaseClassFieldExtractor getClassFieldExtractor(Class clazz, String fieldName)
           
static BaseClassFieldExtractor getClassFieldExtractor(Class clazz, String fieldName, ClassLoader classLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFieldExtractorFactory

public ClassFieldExtractorFactory()
Method Detail

getClassFieldExtractor

public static BaseClassFieldExtractor getClassFieldExtractor(Class clazz,
                                                             String fieldName)

getClassFieldExtractor

public static BaseClassFieldExtractor getClassFieldExtractor(Class clazz,
                                                             String fieldName,
                                                             ClassLoader classLoader)

buildClassHeader

protected static void buildClassHeader(Class superClass,
                                       String className,
                                       ClassWriter cw)
Builds the class header

Parameters:
clazz - The class to build the extractor for
className - The extractor class name
cw -

buildGetMethod

protected static void buildGetMethod(Class originalClass,
                                     String className,
                                     Class superClass,
                                     Method getterMethod,
                                     ClassWriter cw)
Creates the proxy reader method for the given method

Parameters:
fieldName -
fieldFlag -
method -
cw -


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