FieldAttributes.java
1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.google.gson;
import com.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 a;
public FieldAttributes(Field paramField)
{
.Gson.Preconditions.checkNotNull(paramField);
this.a = paramField;
}
public final <T extends Annotation> T getAnnotation(Class<T> paramClass)
{
return this.a.getAnnotation(paramClass);
}
public final Collection<Annotation> getAnnotations()
{
return Arrays.asList(this.a.getAnnotations());
}
public final Class<?> getDeclaredClass()
{
return this.a.getType();
}
public final Type getDeclaredType()
{
return this.a.getGenericType();
}
public final Class<?> getDeclaringClass()
{
return this.a.getDeclaringClass();
}
public final String getName()
{
return this.a.getName();
}
public final boolean hasModifier(int paramInt)
{
return (this.a.getModifiers() & paramInt) != 0;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/google/gson/FieldAttributes.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/