.class public interface abstract annotation Lcom/google/gson/annotations/SerializedName; .super Ljava/lang/Object; .source ''

interfaces

.implements Ljava/lang/annotation/Annotation;

annotations

.annotation system Ldalvik/annotation/AnnotationDefault; value = .subannotation Lcom/google/gson/annotations/SerializedName; alternate = {} .end subannotation .end annotation

.annotation runtime Ljava/lang/annotation/Documented; .end annotation

.annotation runtime Ljava/lang/annotation/Retention; value = .enum Ljava/lang/annotation/RetentionPolicy;->RUNTIME:Ljava/lang/annotation/RetentionPolicy; .end annotation

.annotation runtime Ljava/lang/annotation/Target; value = { .enum Ljava/lang/annotation/ElementType;->FIELD:Ljava/lang/annotation/ElementType;, .enum Ljava/lang/annotation/ElementType;->METHOD:Ljava/lang/annotation/ElementType; } .end annotation

virtual methods

.method public abstract alternate()[Ljava/lang/String; .end method

.method public abstract value()Ljava/lang/String; .end method

代码意思内容:这是一个Java代码中的类文件,包含一个名为'SerializedName'的接口,其内部有两个抽象方法'alternate'和'value'。该接口还使用了三个注解:AnnotationDefault、Documented和Retention,并指定了它们的属性值。其中,Retention注解指定了该接口的保留策略为RUNTIME,Target注解指定了该接口可以用于注解在字段和方法上。

Gson SerializedName 接口解析

原文地址: https://www.cveoy.top/t/topic/ohxd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录