public class MethodProxy extends AbstractProxy
Modifier and Type | Class and Description |
---|---|
static class |
MethodProxy.Builder
A builder object for
MethodProxy . |
Modifier and Type | Field and Description |
---|---|
TypeProxy[] |
parameters
An array of
TypeProxy each representing the parameters of the method. |
TypeProxy |
returnType
The
TypeProxy for the return type of the method. |
descriptor, modifiers, name, parent, proxyType
Modifier | Constructor and Description |
---|---|
|
MethodProxy(java.lang.reflect.Method m)
A public constructor, builds a proxy from a
Method
obtained from reflection. |
protected |
MethodProxy(java.lang.String name,
int modifiers,
QualifiableProxy parent,
org.objectweb.asm.Type[] parameters,
org.objectweb.asm.Type returnType)
A protected constructor, called only from the builder.
|
Modifier and Type | Method and Description |
---|---|
static MethodProxy.Builder |
builder(java.lang.String name)
Returns a new instance of
MethodProxy.Builder . |
boolean |
equals(java.lang.Object obj)
Indicates whether the given object is a proxy for the same element as this.
|
public final TypeProxy[] parameters
TypeProxy
each representing the parameters of the method.protected MethodProxy(java.lang.String name, int modifiers, QualifiableProxy parent, org.objectweb.asm.Type[] parameters, org.objectweb.asm.Type returnType)
name
- the name of the methodmodifiers
- the modifiers of the methodparent
- the QualifiableProxy
for the parentparameters
- the parameters of the methodreturnType
- the return type of the methodpublic MethodProxy(java.lang.reflect.Method m)
Method
obtained from reflection.m
- the Method
object corresponding to this.public static MethodProxy.Builder builder(java.lang.String name)
MethodProxy.Builder
.name
- the name of the methodpublic boolean equals(java.lang.Object obj)
equals
in class AbstractProxy
obj
- the object to perform