// then just create an instance of the special class field extractor
return new SelfReferenceClassFieldExtractor( clazz,
fieldName );
} else if ( fieldName.indexOf( '.' ) > -1 || fieldName.indexOf( '[' ) > -1 ) {
// we need MVEL extractor for expressions
return new MVELClassFieldExtractor( clazz,
fieldName,
classLoader );
} else {
// otherwise, bytecode generate a specific extractor
ClassFieldInspector inspector = (ClassFieldInspector) inspectors.get( clazz );