Skip to content

Commit 0a3f7f8

Browse files
author
Rafael Winterhalter
committed
Added missing javadoc.
1 parent ed355a5 commit 0a3f7f8

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

byte-buddy-dep/src/main/java/net/bytebuddy/description/method/ParameterDescription.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ public String toString() {
185185

186186
/**
187187
* Description of a loaded parameter with support for the information exposed by {@code java.lang.reflect.Parameter}.
188+
*
189+
* @param <T> The type of the {@code java.lang.reflect.Executable} that this list represents.
188190
*/
189191
abstract class ForLoadedParameter<T> extends InDefinedShape.AbstractBase {
190192

@@ -366,6 +368,13 @@ public String getName(Object executable, int index) {
366368
}
367369
}
368370

371+
/**
372+
* Returns the {@code java.lang.reflect.Parameter} of an executable at a given index.
373+
*
374+
* @param executable The executable for which a parameter should be read.
375+
* @param index The index of the parameter.
376+
* @return The parameter for the given index.
377+
*/
369378
private Object getParameter(Object executable, int index) {
370379
try {
371380
return Array.get(getParameters.invoke(executable), index);

byte-buddy-dep/src/main/java/net/bytebuddy/description/method/ParameterList.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,9 @@ protected ParameterList<S> wrap(List<S> values) {
116116
}
117117

118118
/**
119-
* Represents a list of parameters for an executable, i.e. a {@link java.lang.reflect.Method} or
120-
* {@link java.lang.reflect.Constructor}.
119+
* Represents a list of parameters for an executable, i.e. a {@link java.lang.reflect.Method} or {@link java.lang.reflect.Constructor}.
120+
*
121+
* @param <T> The type of the {@code java.lang.reflect.Executable} that this list represents.
121122
*/
122123
abstract class ForLoadedExecutable<T> extends AbstractBase<ParameterDescription.InDefinedShape> {
123124

byte-buddy-dep/src/main/java/net/bytebuddy/description/type/generic/GenericTypeDescription.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2418,6 +2418,9 @@ public TypeDescription asErasure() {
24182418
}
24192419
}
24202420

2421+
/**
2422+
* A lazy projection of the parameter type of a {@link Constructor}.
2423+
*/
24212424
public static class OfConstructorParameter extends LazyProjection {
24222425

24232426
/**
@@ -2462,6 +2465,9 @@ public TypeDescription asErasure() {
24622465
}
24632466
}
24642467

2468+
/**
2469+
* A lazy projection of the parameter type of a {@link Method}.
2470+
*/
24652471
public static class OfMethodParameter extends LazyProjection {
24662472

24672473
/**

0 commit comments

Comments
 (0)