Package net.bytebuddy.pool
Class TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken
- java.lang.Object
-
- net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken
-
- Enclosing class:
- TypePool.Default.LazyTypeDescription.MethodToken
@Enhance protected static class TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken extends Object
A token representing a method's parameter.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Integer
NO_MODIFIERS
Donates an unknown modifier of a parameter.protected static String
NO_NAME
Donates an unknown name of a parameter.
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParameterToken()
Creates a parameter token for a parameter without an explicit name and without specific modifiers.protected
ParameterToken(String name)
Creates a parameter token for a parameter with an explicit name and without specific modifiers.protected
ParameterToken(String name, Integer modifiers)
Creates a parameter token for a parameter with an explicit name and with specific modifiers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
getModifiers()
Returns the modifiers of the parameter ornull
if no modifiers are known.protected String
getName()
Returns the name of the parameter ornull
if there is no such name.
-
-
-
Constructor Detail
-
ParameterToken
protected ParameterToken()
Creates a parameter token for a parameter without an explicit name and without specific modifiers.
-
ParameterToken
protected ParameterToken(String name)
Creates a parameter token for a parameter with an explicit name and without specific modifiers.- Parameters:
name
- The name of the parameter.
-
-
Method Detail
-
getName
protected String getName()
Returns the name of the parameter ornull
if there is no such name.- Returns:
- The name of the parameter or
null
if there is no such name.
-
getModifiers
protected Integer getModifiers()
Returns the modifiers of the parameter ornull
if no modifiers are known.- Returns:
- The modifiers of the parameter or
null
if no modifiers are known.
-
-