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 java.lang.Object
A token representing a method's parameter.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.IntegermodifiersThe modifiers of the parameter ornullif no modifiers are known for this parameter.private java.lang.StringnameThe name of the parameter ornullif no explicit name for this parameter is known.protected static java.lang.IntegerNO_MODIFIERSDonates an unknown modifier of a parameter.protected static java.lang.StringNO_NAMEDonates an unknown name of a parameter.
-
Constructor Summary
Constructors Modifier Constructor Description protectedParameterToken()Creates a parameter token for a parameter without an explicit name and without specific modifiers.protectedParameterToken(java.lang.String name)Creates a parameter token for a parameter with an explicit name and without specific modifiers.protectedParameterToken(java.lang.String name, java.lang.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 java.lang.IntegergetModifiers()Returns the modifiers of the parameter ornullif no modifiers are known.protected java.lang.StringgetName()Returns the name of the parameter ornullif there is no such name.
-
-
-
Field Detail
-
NO_NAME
@AlwaysNull protected static final java.lang.String NO_NAME
Donates an unknown name of a parameter.
-
NO_MODIFIERS
@AlwaysNull protected static final java.lang.Integer NO_MODIFIERS
Donates an unknown modifier of a parameter.
-
name
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.lang.String name
The name of the parameter ornullif no explicit name for this parameter is known.
-
modifiers
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final java.lang.Integer modifiers
The modifiers of the parameter ornullif no modifiers are known for this parameter.
-
-
Constructor Detail
-
ParameterToken
protected ParameterToken()
Creates a parameter token for a parameter without an explicit name and without specific modifiers.
-
ParameterToken
protected ParameterToken(@MaybeNull java.lang.String name)
Creates a parameter token for a parameter with an explicit name and without specific modifiers.- Parameters:
name- The name of the parameter.
-
ParameterToken
protected ParameterToken(@MaybeNull java.lang.String name, @MaybeNull java.lang.Integer modifiers)
Creates a parameter token for a parameter with an explicit name and with specific modifiers.- Parameters:
name- The name of the parameter.modifiers- The modifiers of the parameter.
-
-
Method Detail
-
getName
@MaybeNull protected java.lang.String getName()
Returns the name of the parameter ornullif there is no such name.- Returns:
- The name of the parameter or
nullif there is no such name.
-
getModifiers
@MaybeNull protected java.lang.Integer getModifiers()
Returns the modifiers of the parameter ornullif no modifiers are known.- Returns:
- The modifiers of the parameter or
nullif no modifiers are known.
-
-