|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.orchestra.dynaForm.metadata.impl.ejb.BcelHelper
public class BcelHelper
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 |
|---|
public BcelHelper()
| Method Detail |
|---|
public Field[] getFields(Class<?> clazz)
The array order matches the order in which the fields were declared within the original source file.
getFields in interface ClassHelperpublic Method[] getMethods(Class<?> clazz)
The array order matches the order in which the methods were declared within the original source file.
getMethods in interface ClassHelperprotected Class<?> type2Class(org.apache.bcel.generic.Type type)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||