T
- The type of the java.lang.reflect.Executable
that this list represents.public abstract static class ParameterDescription.ForLoadedParameter<T extends AccessibleObject> extends ParameterDescription.InDefinedShape.AbstractBase
java.lang.reflect.Parameter
.Modifier and Type | Class and Description |
---|---|
protected static interface |
ParameterDescription.ForLoadedParameter.Dispatcher
A dispatcher creating parameter descriptions based on the API that is available for the current JVM.
|
protected static class |
ParameterDescription.ForLoadedParameter.OfConstructor
A description of a loaded
Constructor parameter for a modern VM. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmConstructor
Description of a loaded constructor's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfLegacyVmMethod
Description of a loaded method's parameter on a virtual machine where
java.lang.reflect.Parameter
is not available. |
protected static class |
ParameterDescription.ForLoadedParameter.OfMethod
A description of a loaded
Method parameter for a modern VM. |
ParameterDescription.InDefinedShape.AbstractBase
ParameterDescription.ForLoadedParameter<T extends AccessibleObject>, ParameterDescription.InDefinedShape, ParameterDescription.InGenericShape, ParameterDescription.Latent, ParameterDescription.Token, ParameterDescription.TypeSubstituting
NamedElement.WithGenericName, NamedElement.WithRuntimeName
Modifier and Type | Field and Description |
---|---|
protected T |
executable
The
java.lang.reflect.Executable for which the parameter types are described. |
protected int |
index
The parameter's index.
|
NAME_PREFIX
EMPTY_NAME, NO_NAME
EMPTY_MASK
Modifier | Constructor and Description |
---|---|
protected |
ForLoadedParameter(T executable,
int index)
Creates a new description for a loaded parameter.
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns this parameter's index.
|
int |
getModifiers()
Returns the modifier that is described by this object.
|
String |
getName()
Returns the internalName of this byte code element.
|
boolean |
hasModifiers()
Checks if this parameter has an explicit modifier.
|
boolean |
isNamed()
Checks if this parameter has an explicit name.
|
asDefined
asToken, equals, getInternalName, getOffset, getSourceCodeName, hashCode, toString
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getDeclaringMethod
getOffset, getType
getDeclaredAnnotations
getInternalName
getSourceCodeName
isAbstract, isAnnotation, isBridge, isDeprecated, isEnum, isFinal, isInterface, isMandated, isNative, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isStrict, isSuper, isSynchronized, isSynthetic, isTransient, isVarArgs, isVolatile
asToken
protected final T extends AccessibleObject executable
java.lang.reflect.Executable
for which the parameter types are described.protected final int index
protected ForLoadedParameter(T executable, int index)
executable
- The java.lang.reflect.Executable
for which the parameter types are described.index
- The parameter's index.public String getName()
NamedElement.WithRuntimeName
getName
in interface NamedElement.WithRuntimeName
getName
in class ParameterDescription.AbstractBase
public int getIndex()
ParameterDescription
public boolean isNamed()
ParameterDescription
argX
with X
denoting the zero-based index.true
if the parameter has an explicit name.public int getModifiers()
ModifierReviewable
getModifiers
in interface ModifierReviewable
getModifiers
in class ParameterDescription.AbstractBase
public boolean hasModifiers()
ParameterDescription
true
if this parameter defines explicit modifiers.Copyright © 2014–2016. All rights reserved.