public static class RecordComponentDescription.Token extends Object implements ByteCodeElement.Token<RecordComponentDescription.Token>
ByteCodeElement.Token.TokenList<S extends ByteCodeElement.Token<S>>| Constructor and Description |
|---|
Token(String name,
TypeDescription.Generic type)
Creates a new record component token without annotations.
|
Token(String name,
TypeDescription.Generic type,
List<? extends AnnotationDescription> annotations)
Creates a new record component token.
|
| Modifier and Type | Method and Description |
|---|---|
RecordComponentDescription.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 token's annotations.
|
String |
getName()
Returns the token's name.
|
TypeDescription.Generic |
getType()
Returns the token's type.
|
int |
hashCode() |
public Token(String name, TypeDescription.Generic type)
name - The token's name.type - The token's type.public Token(String name, TypeDescription.Generic type, List<? extends AnnotationDescription> annotations)
name - The token's name.type - The token's type.annotations - The token's annotations.public String getName()
public TypeDescription.Generic getType()
public AnnotationList getAnnotations()
public RecordComponentDescription.Token accept(TypeDescription.Generic.Visitor<? extends TypeDescription.Generic> visitor)
accept in interface ByteCodeElement.Token<RecordComponentDescription.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–2025. All rights reserved.