Record Class OpenProxy.MethodCall
java.lang.Object
java.lang.Record
cloud.opencode.base.reflect.proxy.OpenProxy.MethodCall
- Record Components:
method- the method | 方法args- the arguments | 参数
- Enclosing class:
OpenProxy
Method call record
方法调用记录
- Since:
- JDK 25, opencode-base-reflect V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionMethodCall(Method method, Object[] args) Creates an instance of aMethodCallrecord class. -
Method Summary
Modifier and TypeMethodDescriptionObject[]args()Returns the value of theargsrecord component.final booleanIndicates whether some other object is "equal to" this one.<T> TgetArg(int index) Gets an argument by index 按索引获取参数intGets the argument count 获取参数数量Gets the method name 获取方法名final inthashCode()Returns a hash code value for this object.method()Returns the value of themethodrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MethodCall
-
-
Method Details
-
getMethodName
-
getArgCount
public int getArgCount()Gets the argument count 获取参数数量- Returns:
- the count | 数量
-
getArg
public <T> T getArg(int index) Gets an argument by index 按索引获取参数- Type Parameters:
T- the argument type | 参数类型- Parameters:
index- the index | 索引- Returns:
- the argument | 参数
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
method
-
args
-