Package net.bytebuddy.pool
Class TypePool.Default.ParameterBag
java.lang.Object
net.bytebuddy.pool.TypePool.Default.ParameterBag
- Enclosing class:
TypePool.Default
A bag for collecting parameter meta information that is stored as debug information for implemented
methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionA map containing the tokens that were collected until now.private final org.objectweb.asm.Type[]
An array of the method's parameter types. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ParameterBag
(org.objectweb.asm.Type[] parameterType) Creates a new bag. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Registers a new parameter.resolve
(boolean isStatic) Resolves the collected parameters as a list of parameter tokens.
-
Field Details
-
parameterType
private final org.objectweb.asm.Type[] parameterTypeAn array of the method's parameter types. -
parameterRegistry
A map containing the tokens that were collected until now.
-
-
Constructor Details
-
ParameterBag
protected ParameterBag(org.objectweb.asm.Type[] parameterType) Creates a new bag.- Parameters:
parameterType
- An array of parameter types for the method on which this parameter bag is used.
-
-
Method Details
-
register
Registers a new parameter.- Parameters:
offset
- The offset of the registered entry on the local variable array of the method.name
- The name of the parameter.
-
resolve
protected List<TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken> resolve(boolean isStatic) Resolves the collected parameters as a list of parameter tokens.- Parameters:
isStatic
-true
if the analyzed method is static.- Returns:
- A list of parameter tokens based on the collected information.
-