public class ImmutableField extends BaseFieldReference implements Field
Reference.InvalidReferenceException| Modifier and Type | Field and Description |
|---|---|
protected int |
accessFlags |
protected com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
annotations |
protected java.lang.String |
definingClass |
protected ImmutableEncodedValue |
initialValue |
protected java.lang.String |
name |
protected java.lang.String |
type |
| Constructor and Description |
|---|
ImmutableField(java.lang.String definingClass,
java.lang.String name,
java.lang.String type,
int accessFlags,
EncodedValue initialValue,
java.util.Collection<? extends Annotation> annotations) |
ImmutableField(java.lang.String definingClass,
java.lang.String name,
java.lang.String type,
int accessFlags,
ImmutableEncodedValue initialValue,
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAccessFlags()
Gets the access flags for this field.
|
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> |
getAnnotations()
Gets a set of the annotations that are applied to this field.
|
java.lang.String |
getDefiningClass()
Gets the type of the class that defines this field.
|
EncodedValue |
getInitialValue()
Gets the initial value for this field, if available.
|
java.lang.String |
getName()
Gets the name of this field.
|
java.lang.String |
getType()
Gets the type of this field.
|
static com.google.common.collect.ImmutableSortedSet<ImmutableField> |
immutableSetOf(java.lang.Iterable<? extends Field> list) |
static ImmutableField |
of(Field field) |
compareTo, equals, hashCode, toStringvalidateReferenceclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompareTo, equals, hashCodevalidateReference@Nonnull protected final java.lang.String definingClass
@Nonnull protected final java.lang.String name
@Nonnull protected final java.lang.String type
protected final int accessFlags
@Nullable protected final ImmutableEncodedValue initialValue
@Nonnull protected final com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations
public ImmutableField(@Nonnull
java.lang.String definingClass,
@Nonnull
java.lang.String name,
@Nonnull
java.lang.String type,
int accessFlags,
@Nullable
EncodedValue initialValue,
@Nullable
java.util.Collection<? extends Annotation> annotations)
public ImmutableField(@Nonnull
java.lang.String definingClass,
@Nonnull
java.lang.String name,
@Nonnull
java.lang.String type,
int accessFlags,
@Nullable
ImmutableEncodedValue initialValue,
@Nullable
com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations)
public static ImmutableField of(Field field)
@Nonnull public java.lang.String getDefiningClass()
FieldgetDefiningClass in interface FieldgetDefiningClass in interface MembergetDefiningClass in interface FieldReference@Nonnull public java.lang.String getName()
Field@Nonnull public java.lang.String getType()
FieldgetType in interface FieldgetType in interface FieldReferencepublic int getAccessFlags()
FieldgetAccessFlags in interface FieldgetAccessFlags in interface Memberpublic EncodedValue getInitialValue()
FieldgetInitialValue in interface Field@Nonnull public com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> getAnnotations()
FieldgetAnnotations in interface AnnotatablegetAnnotations in interface Field@Nonnull public static com.google.common.collect.ImmutableSortedSet<ImmutableField> immutableSetOf(@Nullable java.lang.Iterable<? extends Field> list)