public static class ParameterDescription.Token extends Object implements ByteCodeElement.Token<ParameterDescription.Token>
Modifier and Type | Class and Description |
---|---|
static class |
ParameterDescription.Token.TypeList
A list of types represented as a list of parameter tokens.
|
ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>
Modifier and Type | Field and Description |
---|---|
static Integer |
NO_MODIFIERS
Indicator for a method parameter without explicit modifiers.
|
static String |
NO_NAME
Indicator for a method parameter without an explicit name.
|
Constructor and Description |
---|
Token(TypeDescription.Generic type)
Creates a new parameter token without an explicit name, an explicit modifier or annotations.
|
Token(TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new parameter token without an explicit name or an explicit modifier.
|
Token(TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations,
String name,
Integer modifiers)
Creates a new parameter token.
|
Token(TypeDescription.Generic type,
String name,
Integer modifiers)
Creates a parameter token without annotations.
|
Modifier and Type | Method and Description |
---|---|
ParameterDescription.Token |
accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
Transforms the types represented by this token by applying the given visitor to them.
|
boolean |
equals(Object other) |
AnnotationList |
getAnnotations()
Returns the annotations of the represented method parameter.
|
Integer |
getModifiers()
Returns the modifiers of the represented method parameter.
|
String |
getName()
Returns the name of the represented method parameter.
|
TypeDescription.Generic |
getType()
Returns the type of the represented method parameter.
|
int |
hashCode() |
String |
toString() |
@AlwaysNull public static final String NO_NAME
@AlwaysNull public static final Integer NO_MODIFIERS
public Token(TypeDescription.Generic type)
type
- The type of the represented parameter.public Token(TypeDescription.Generic type, List<? extends AnnotationDescription> annotations)
type
- The type of the represented parameter.annotations
- The annotations of the parameter.public Token(TypeDescription.Generic type, @MaybeNull String name, @MaybeNull Integer modifiers)
type
- The type of the represented parameter.name
- The name of the parameter or null
if no explicit name is defined.modifiers
- The modifiers of the parameter or null
if no explicit modifiers is defined.public Token(TypeDescription.Generic type, List<? extends AnnotationDescription> annotations, @MaybeNull String name, @MaybeNull Integer modifiers)
type
- The type of the represented parameter.annotations
- The annotations of the parameter.name
- The name of the parameter or null
if no explicit name is defined.modifiers
- The modifiers of the parameter or null
if no explicit modifiers is defined.public TypeDescription.Generic getType()
public AnnotationList getAnnotations()
@MaybeNull public String getName()
null
if no explicit name is defined.@MaybeNull public Integer getModifiers()
null
if no explicit modifiers is defined.public ParameterDescription.Token accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
accept
in interface ByteCodeElement.Token<ParameterDescription.Token>
visitor
- The visitor to transform all types that are represented by this token.@CachedReturnPlugin.Enhance(value="hashCode") public int hashCode()
public boolean equals(@MaybeNull Object other)
Copyright © 2014–1970. All rights reserved.