com.eg.google.gson.FieldAttributes Maven / Gradle / Ivy
package com.eg.google.gson;
import com.eg.google.gson.internal.$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;
public final class FieldAttributes
{
private final Field field;
public FieldAttributes(Field f) {
$Gson$Preconditions.checkNotNull(f);
this.field = f;
}
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 getAnnotation(Class annotation)
{
/* 111 */ return this.field.getAnnotation(annotation);
}
public Collection getAnnotations()
{
return Arrays.asList(this.field.getAnnotations());
}
public boolean hasModifier(int modifier) {
return (this.field.getModifiers() & modifier) != 0;
}
Object get(Object instance)
throws IllegalAccessException {
return this.field.get(instance);
}
boolean isSynthetic() {
return this.field.isSynthetic();
}
}
/* Location: D:\Android_Agent\AndroidInstrumentation\SampleApp_RE_code\NewRelic_Android_Agent_5.8.3\newrelic-android-5.8.3\lib\newrelic.android.jar!\com.google.gson\FieldAttributes.class
* Java compiler version: 5 (49.0)
* JD-Core Version: 0.7.1
*/
© 2015 - 2024 Weber Informatics LLC | Privacy Policy