@HashCodeAndEqualsPlugin.Enhance protected static class TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.Integer |
modifiers
The modifiers of the parameter or
null if no modifiers are known for this parameter. |
private java.lang.String |
name
The name of the parameter or
null if no explicit name for this parameter is known. |
protected static java.lang.Integer |
NO_MODIFIERS
Donates an unknown modifier of a parameter.
|
protected static java.lang.String |
NO_NAME
Donates an unknown name of a parameter.
|
Modifier | Constructor and Description |
---|---|
protected |
ParameterToken()
Creates a parameter token for a parameter without an explicit name and without specific modifiers.
|
protected |
ParameterToken(java.lang.String name)
Creates a parameter token for a parameter with an explicit name and without specific modifiers.
|
protected |
ParameterToken(java.lang.String name,
java.lang.Integer modifiers)
Creates a parameter token for a parameter with an explicit name and with specific modifiers.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.Integer |
getModifiers()
Returns the modifiers of the parameter or
null if no modifiers are known. |
protected java.lang.String |
getName()
Returns the name of the parameter or
null if there is no such name. |
protected static final java.lang.String NO_NAME
protected static final java.lang.Integer NO_MODIFIERS
@HashCodeAndEqualsPlugin.ValueHandling(value=REVERSE_NULLABILITY) private final java.lang.String name
null
if no explicit name for this parameter is known.@HashCodeAndEqualsPlugin.ValueHandling(value=REVERSE_NULLABILITY) private final java.lang.Integer modifiers
null
if no modifiers are known for this parameter.protected ParameterToken()
protected ParameterToken(java.lang.String name)
name
- The name of the parameter.protected ParameterToken(java.lang.String name, java.lang.Integer modifiers)
name
- The name of the parameter.modifiers
- The modifiers of the parameter.protected java.lang.String getName()
null
if there is no such name.null
if there is no such name.protected java.lang.Integer getModifiers()
null
if no modifiers are known.null
if no modifiers are known.