接口 ParameterVisitor
- 所有已知实现类:
BasicInvocationUnit,ExecutingInvocationUnit,ReferenceTracingInvocationUnit,SimplifiedInvocationUnit
public interface ParameterVisitor
This interface specifies the methods for a visitor of method parameters or field types (which can
be considered parameters when storing values). The parameters do not include or count the 'this'
parameter or the method return value.
-
方法概要
修饰符和类型方法说明voidvisitParameter(Clazz clazz, Member member, int parameterIndex, int parameterCount, int parameterOffset, int parameterSize, String parameterType, Clazz referencedClass) Visits the given parameter.
-
方法详细资料
-
visitParameter
void visitParameter(Clazz clazz, Member member, int parameterIndex, int parameterCount, int parameterOffset, int parameterSize, String parameterType, Clazz referencedClass) Visits the given parameter.- 参数:
clazz- the class of the method.member- the field or method of the parameter.parameterIndex- the index of the parameter.parameterCount- the total number of parameters.parameterOffset- the offset of the parameter, accounting for longs and doubles taking up two entries.parameterSize- the total size of the parameters, accounting for longs and doubles taking up two entries.parameterType- the parameter type.referencedClass- the class contained in the parameter type, if any.
-