Files
rr3-apk/decompiled/sources/com/google/gson/FieldAttributes.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

55 lines
1.3 KiB
Java

package com.google.gson;
import com.google.gson.internal.C$Gson$Preconditions;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.Collection;
/* loaded from: classes3.dex */
public final class FieldAttributes {
private final Field field;
public FieldAttributes(Field field) {
C$Gson$Preconditions.checkNotNull(field);
this.field = field;
}
public Class<?> getDeclaringClass() {
return this.field.getDeclaringClass();
}
public String getName() {
return this.field.getName();
}
public Type getDeclaredType() {
return this.field.getGenericType();
}
public Class<?> getDeclaredClass() {
return this.field.getType();
}
public <T extends Annotation> T getAnnotation(Class<T> cls) {
return (T) this.field.getAnnotation(cls);
}
public Collection<Annotation> getAnnotations() {
return Arrays.asList(this.field.getAnnotations());
}
public boolean hasModifier(int i) {
return (i & this.field.getModifiers()) != 0;
}
public Object get(Object obj) throws IllegalAccessException {
return this.field.get(obj);
}
public boolean isSynthetic() {
return this.field.isSynthetic();
}
}