Package ftbsc.lll.proxies.impl
Class MethodProxy
java.lang.Object
ftbsc.lll.proxies.AbstractProxy
ftbsc.lll.proxies.impl.MethodProxy
A container for information about class methods to be used
in ASM patching.
- Since:
- 0.3.0
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TypeProxy[]An array ofTypeProxyeach representing the parameters of the method.final TypeProxyTheTypeProxyfor the return type of the method.Fields inherited from class ftbsc.lll.proxies.AbstractProxy
descriptor, modifiers, name, parent, proxyType -
Constructor Summary
ConstructorsModifierConstructorDescriptionA public constructor, builds a proxy from aMethodobtained from reflection.protectedMethodProxy(String name, int modifiers, QualifiableProxy parent, org.objectweb.asm.Type[] parameters, org.objectweb.asm.Type returnType) A protected constructor, called only from the builder. -
Method Summary
Modifier and TypeMethodDescriptionstatic MethodProxy.BuilderReturns a new instance ofMethodProxy.Builder.booleanIndicates whether the given object is a proxy for the same element as this.
-
Field Details
-
Constructor Details
-
MethodProxy
protected MethodProxy(String name, int modifiers, QualifiableProxy parent, org.objectweb.asm.Type[] parameters, org.objectweb.asm.Type returnType) A protected constructor, called only from the builder.- Parameters:
name- the name of the methodmodifiers- the modifiers of the methodparent- theQualifiableProxyfor the parentparameters- the parameters of the methodreturnType- the return type of the method
-
MethodProxy
A public constructor, builds a proxy from aMethodobtained from reflection.- Parameters:
m- theMethodobject corresponding to this.
-
-
Method Details
-
builder
Returns a new instance ofMethodProxy.Builder.- Parameters:
name- the name of the method- Returns:
- the builder object for method proxies
-
equals
Indicates whether the given object is a proxy for the same element as this.- Overrides:
equalsin classAbstractProxy- Parameters:
obj- the object to perform- Returns:
- true if it's equal
-