Package net.bytebuddy.pool
Class TypePool.Default.ParameterBag
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.ParameterBag
-
- Enclosing class:
- TypePool.Default
protected static class TypePool.Default.ParameterBag extends java.lang.Object
A bag for collecting parameter meta information that is stored as debug information for implemented methods.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.Integer,java.lang.String>
parameterRegistry
A map containing the tokens that were collected until now.private org.objectweb.asm.Type[]
parameterType
An array of the method's parameter types.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParameterBag(org.objectweb.asm.Type[] parameterType)
Creates a new bag.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
register(int offset, java.lang.String name)
Registers a new parameter.protected java.util.List<TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken>
resolve(boolean isStatic)
Resolves the collected parameters as a list of parameter tokens.
-
-
-
Method Detail
-
register
protected void register(int offset, java.lang.String name)
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 java.util.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.
-
-