|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.metamodel.specloader.internal.TypeExtractorMethodParameters
public class TypeExtractorMethodParameters
Helper that finds all parameter types (including generic types) for the
provided Method.
For example,
public class CustomerRepository {
public void filterCustomers(List customerList) { ... }
}
will find both List and Customer.
| Constructor Summary | |
|---|---|
TypeExtractorMethodParameters(java.lang.reflect.Method method)
|
|
| Method Summary | |
|---|---|
protected void |
add(java.lang.Class<?> cls)
Adds to list of classes, provided not
Void. |
protected void |
addParameterizedTypes(java.lang.reflect.Type... genericTypes)
|
java.util.List<java.lang.Class<?>> |
getClasses()
|
protected java.lang.reflect.Method |
getMethod()
The Method provided in the constructor. |
java.lang.Class<?>[] |
getParameterTypes()
|
java.util.Iterator<java.lang.Class<?>> |
iterator()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeExtractorMethodParameters(java.lang.reflect.Method method)
| Method Detail |
|---|
public java.lang.Class<?>[] getParameterTypes()
protected void addParameterizedTypes(java.lang.reflect.Type... genericTypes)
protected void add(java.lang.Class<?> cls)
list of classes, provided not
Void.
protected java.lang.reflect.Method getMethod()
Method provided in the constructor.
public java.util.List<java.lang.Class<?>> getClasses()
public java.util.Iterator<java.lang.Class<?>> iterator()
iterator in interface java.lang.Iterable<java.lang.Class<?>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||