类 SynthesizingMethodParameter

    • 构造器详细资料

      • SynthesizingMethodParameter

        public SynthesizingMethodParameter​(Method method,
                                           int parameterIndex)
        Create a new SynthesizingMethodParameter for the given method, with nesting level 1.
        参数:
        method - the Method to specify a parameter for
        parameterIndex - the index of the parameter: -1 for the method return type; 0 for the first method parameter; 1 for the second method parameter, etc.
      • SynthesizingMethodParameter

        public SynthesizingMethodParameter​(Method method,
                                           int parameterIndex,
                                           int nestingLevel)
        Create a new SynthesizingMethodParameter for the given method.
        参数:
        method - the Method to specify a parameter for
        parameterIndex - the index of the parameter: -1 for the method return type; 0 for the first method parameter; 1 for the second method parameter, etc.
        nestingLevel - the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List)
      • SynthesizingMethodParameter

        public SynthesizingMethodParameter​(Constructor<?> constructor,
                                           int parameterIndex)
        Create a new SynthesizingMethodParameter for the given constructor, with nesting level 1.
        参数:
        constructor - the Constructor to specify a parameter for
        parameterIndex - the index of the parameter
      • SynthesizingMethodParameter

        public SynthesizingMethodParameter​(Constructor<?> constructor,
                                           int parameterIndex,
                                           int nestingLevel)
        Create a new SynthesizingMethodParameter for the given constructor.
        参数:
        constructor - the Constructor to specify a parameter for
        parameterIndex - the index of the parameter
        nestingLevel - the nesting level of the target type (typically 1; e.g. in case of a List of Lists, 1 would indicate the nested List, whereas 2 would indicate the element of the nested List)
      • SynthesizingMethodParameter

        protected SynthesizingMethodParameter​(SynthesizingMethodParameter original)
        Copy constructor, resulting in an independent SynthesizingMethodParameter based on the same metadata and cache state that the original object was in.
        参数:
        original - the original SynthesizingMethodParameter object to copy from