|
||||||||||
| 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.AsmHelper
public class AsmHelper
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 ASM library to inspect the class data.
| Constructor Summary | |
|---|---|
AsmHelper()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AsmHelper()
| 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 ClassHelper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||