T
- The type of the java.lang.reflect.Executable
that this list represents.public abstract static class ParameterList.ForLoadedExecutable<T> extends ParameterList.AbstractBase<ParameterDescription.InDefinedShape>
Method
or Constructor
.Modifier and Type | Class and Description |
---|---|
protected static interface |
ParameterList.ForLoadedExecutable.Dispatcher
A dispatcher for creating descriptions of parameter lists and for evaluating the size of an
java.lang.reflect.Executable 's parameters. |
protected static class |
ParameterList.ForLoadedExecutable.OfConstructor
Describes the list of
Constructor parameters on a modern VM. |
protected static class |
ParameterList.ForLoadedExecutable.OfLegacyVmConstructor
Represents a list of constructor parameters on virtual machines where the
java.lang.reflect.Parameter
type is not available. |
protected static class |
ParameterList.ForLoadedExecutable.OfLegacyVmMethod
Represents a list of method parameters on virtual machines where the
java.lang.reflect.Parameter
type is not available. |
protected static class |
ParameterList.ForLoadedExecutable.OfMethod
Describes the list of
Method parameters on a modern VM. |
ParameterList.AbstractBase<S extends ParameterDescription>, ParameterList.Empty<S extends ParameterDescription>, ParameterList.Explicit<S extends ParameterDescription>, ParameterList.ForLoadedExecutable<T>, ParameterList.ForTokens, ParameterList.TypeSubstituting
Modifier and Type | Field and Description |
---|---|
protected T |
executable
The executable for which a parameter list is represented.
|
protected ParameterDescription.ForLoadedParameter.ParameterAnnotationSource |
parameterAnnotationSource
The parameter annotation source to query.
|
modCount
Modifier | Constructor and Description |
---|---|
protected |
ForLoadedExecutable(T executable,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Creates a new description for a loaded executable.
|
Modifier and Type | Method and Description |
---|---|
static ParameterList<ParameterDescription.InDefinedShape> |
of(Constructor<?> constructor)
Creates a new list that describes the parameters of the given
Constructor . |
static ParameterList<ParameterDescription.InDefinedShape> |
of(Constructor<?> constructor,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Creates a new list that describes the parameters of the given
Constructor . |
static ParameterList<ParameterDescription.InDefinedShape> |
of(Method method)
Creates a new list that describes the parameters of the given
Method . |
static ParameterList<ParameterDescription.InDefinedShape> |
of(Method method,
ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Creates a new list that describes the parameters of the given
Method . |
int |
size() |
asDefined, asTokenList, asTypeList, hasExplicitMetaData, wrap
filter, getOnly, subList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
filter, getOnly, subList
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, sort, spliterator, toArray, toArray
parallelStream, removeIf, stream
protected final T executable
protected final ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource
protected ForLoadedExecutable(T executable, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
executable
- The executable for which a parameter list is represented.parameterAnnotationSource
- The parameter annotation source to query.public static ParameterList<ParameterDescription.InDefinedShape> of(Constructor<?> constructor)
Constructor
.constructor
- The constructor for which the parameters should be described.public static ParameterList<ParameterDescription.InDefinedShape> of(Constructor<?> constructor, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Constructor
.constructor
- The constructor for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.public static ParameterList<ParameterDescription.InDefinedShape> of(Method method)
Method
.method
- The method for which the parameters should be described.public static ParameterList<ParameterDescription.InDefinedShape> of(Method method, ParameterDescription.ForLoadedParameter.ParameterAnnotationSource parameterAnnotationSource)
Method
.method
- The method for which the parameters should be described.parameterAnnotationSource
- The parameter annotation source to query.public int size()
size
in interface Collection<ParameterDescription.InDefinedShape>
size
in interface List<ParameterDescription.InDefinedShape>
size
in class AbstractCollection<ParameterDescription.InDefinedShape>
Copyright © 2014–2019. All rights reserved.