org.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb
Class BcelHelper

java.lang.Object
  extended by org.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb.BcelHelper
All Implemented Interfaces:
ClassHelper

public class BcelHelper
extends Object
implements ClassHelper

Reimplement the reflection facilities provided by Class.class, but preserving the order in which the properties exist within the .class file.

Presumably the field order in the .class file is the same as the order they are declared within the source file. And presumably the code author arranged those in some logical order.

This class uses the BCEL library to inspect the class data.


Constructor Summary
BcelHelper()
           
 
Method Summary
 Field[] getFields(Class<?> clazz)
          Return a list of all the static and non-static fields of the specified class, regardless of their accessability.
 Method[] getMethods(Class<?> clazz)
          Return a list of all the get*, set* and is* method on the specified class, regardless of their accessability.
protected  Class<?> type2Class(org.apache.bcel.generic.Type type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BcelHelper

public BcelHelper()
Method Detail

getFields

public Field[] getFields(Class<?> clazz)
Return a list of all the static and non-static fields of the specified class, regardless of their accessability.

The array order matches the order in which the fields were declared within the original source file.

Specified by:
getFields in interface ClassHelper

getMethods

public Method[] getMethods(Class<?> clazz)
Return a list of all the get*, set* and is* method on the specified class, regardless of their accessability.

The array order matches the order in which the methods were declared within the original source file.

Specified by:
getMethods in interface ClassHelper

type2Class

protected Class<?> type2Class(org.apache.bcel.generic.Type type)


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.