| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| protected final AnnotatedMethod. | |
| protected final AnnotatedMethod. | |
| protected final AnnotatedMethod. | |
| protected final transient Method | |
| protected Class |
| Access | Constructor and Description |
|---|---|
| public | AnnotatedMethod(TypeResolutionContext ctxt, Method method, AnnotationMap classAnn, AnnotationMap[] paramAnnotations)
|
| Modifier and Type | Method and Description |
|---|---|
| public final Object | call()
Implements abstract tools. Method that can be used to (try to) call this object without arguments. |
| public final Object | call(Object[] args)
Implements abstract tools. Method that can be used to (try to) call this object with specified arguments. |
| public final Object | call1(Object arg)
Implements abstract tools. Method that can be used to (try to) call this object with single arguments. |
| public final Object | |
| public final Object | |
| public boolean | equals(Object o)
Implements abstract tools. Indicates whether some other object is "equal to" this one. |
| public Method | getAnnotated()
Implements abstract tools. Method that can be used to find actual JDK element that this instance represents. |
| public Class | getDeclaringClass()
Implements abstract tools. Actual physical class in which this member was declared. |
| public String | |
| public Method | |
| public int | |
| public String | |
| public Parameter[] | getNativeParameters()
Implements abstract tools.
|
| public int | getParameterCount()
Implements abstract tools.
|
| public JavaType | getParameterType(int index)
Implements abstract tools.
|
| public Class | getRawParameterType(int index)
Implements abstract tools.
|
| public Class | |
| public Class | |
| public Class | getRawType()
Implements abstract tools. For methods, this returns declared return type, which is only useful with getters (setters do not usually return anything; hence "void" type is returned here) |
| public JavaType | getType()
Implements abstract tools. For methods, this returns declared return type, which is only useful with getters (setters do not return anything; hence `Void` would be returned here) |
| public Object | getValue(Object pojo)
Implements abstract tools. Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type. |
| public int | hashCode()
Implements abstract tools. Returns a hash code value for this object. |
| public void | setValue(Object pojo, Object value)
Implements abstract tools. Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type. |
| public String | toString()
Implements abstract tools. Returns a string representation of the object. |
| public AnnotatedMethod | withAnnotations(AnnotationMap ann)
Implements abstract tools. Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones. |
| _invokerFixedArity | back to summary |
|---|---|
| protected final AnnotatedMethod. | |
| _invokerNullary | back to summary |
|---|---|
| protected final AnnotatedMethod. | |
| _invokerUnary | back to summary |
|---|---|
| protected final AnnotatedMethod. | |
| _method | back to summary |
|---|---|
| protected final transient Method _method | |
| _paramClasses | back to summary |
|---|---|
| protected Class<?>[] _paramClasses | |
| AnnotatedMethod | back to summary |
|---|---|
| public AnnotatedMethod(TypeResolutionContext ctxt, Method method, AnnotationMap classAnn, AnnotationMap[] paramAnnotations) | |
| call | back to summary |
|---|---|
| public final Object call() throws Exception Implements abstract tools. Doc from tools. Method that can be used to (try to) call this object without arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call. Note only works for constructors and static methods.
| |
| call | back to summary |
|---|---|
| public final Object call(Object[] args) throws Exception Implements abstract tools. Doc from tools. Method that can be used to (try to) call this object with specified arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call. Note only works for constructors and static methods.
| |
| call1 | back to summary |
|---|---|
| public final Object call1(Object arg) throws Exception Implements abstract tools. Doc from tools. Method that can be used to (try to) call this object with single arguments. This may succeed or fail, depending on expected number of arguments: caller needs to take care to pass correct number. Exceptions are thrown directly from actual low-level call. Note only works for constructors and static methods.
| |
| callOn | back to summary |
|---|---|
| public final Object callOn(Object pojo) throws Exception | |
| callOnWith | back to summary |
|---|---|
| public final Object callOnWith(Object pojo, Object... args) throws Exception | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Implements abstract tools. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAnnotated | back to summary |
|---|---|
| public Method getAnnotated() Implements abstract tools. Doc from tools. Method that can be used to find actual JDK element that this instance represents. It is non-null, except for method/constructor parameters which do not have a JDK counterpart.
| |
| getDeclaringClass | back to summary |
|---|---|
| public Class Implements abstract tools. Doc from tools. Actual physical class in which this member was declared.
| |
| getFullName | back to summary |
|---|---|
| public String getFullName() Overrides tools.
| |
| getMember | back to summary |
|---|---|
| public Method getMember() Implements abstract tools.
| |
| getModifiers | back to summary |
|---|---|
| public int getModifiers() Implements abstract tools.
| |
| getName | back to summary |
|---|---|
| public String getName() Implements abstract tools.
| |
| getNativeParameters | back to summary |
|---|---|
| public Parameter[] getNativeParameters() Implements abstract tools.
| |
| getParameterCount | back to summary |
|---|---|
| public int getParameterCount() Implements abstract tools.
| |
| getParameterType | back to summary |
|---|---|
| public JavaType getParameterType(int index) Implements abstract tools.
| |
| getRawParameterType | back to summary |
|---|---|
| public Class Implements abstract tools.
| |
| getRawParameterTypes | back to summary |
|---|---|
| public Class | |
| getRawReturnType | back to summary |
|---|---|
| public Class | |
| getRawType | back to summary |
|---|---|
| public Class Implements abstract tools. For methods, this returns declared return type, which is only useful with getters (setters do not usually return anything; hence "void" type is returned here)
| |
| getType | back to summary |
|---|---|
| public JavaType getType() Implements abstract tools. For methods, this returns declared return type, which is only useful with getters (setters do not return anything; hence `Void` would be returned here)
| |
| getValue | back to summary |
|---|---|
| public Object getValue(Object pojo) throws IllegalArgumentException Implements abstract tools. Doc from tools. Optional method that can be used to access the value of this member on given object, if this is a supported operation for member type. This is implemented for fields and no-argument member methods; but not for constructor parameters or other types of methods (like static methods)
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract tools. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setValue | back to summary |
|---|---|
| public void setValue(Object pojo, Object value) throws IllegalArgumentException Implements abstract tools. Doc from tools. Optional method that can be used to assign value of this member on given object, if this is a supported operation for member type. This is implemented for fields and single-argument member methods; but not for constructor parameters or other types of methods (like static methods)
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract tools. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| withAnnotations | back to summary |
|---|---|
| public AnnotatedMethod withAnnotations(AnnotationMap ann) Implements abstract tools. Doc from tools. Fluent factory method that will construct a new instance that uses specified instance annotations instead of currently configured ones.
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected MethodHandle | unreflect()
Implements abstract tools.
|
| MethodHolder | back to summary |
|---|---|
| pack-priv MethodHolder(MethodType asType) | |
| unreflect | back to summary |
|---|---|
| protected MethodHandle unreflect() throws IllegalAccessException Implements abstract tools.
| |