35 * {@inheritDoc}
36 * <p>
37 * Only the {@linkplain Modifier#fieldModifiers() field flags} specified in the JVM
38 * specification will be included in the returned mask.
39 */
40 int getModifiers();
41
42 default boolean isFinal() {
43 return ModifiersProvider.super.isFinalFlagSet();
44 }
45
46 /**
47 * Determines if this field was injected by the VM. Such a field, for example, is not derived
48 * from a class file.
49 */
50 boolean isInternal();
51
52 /**
53 * Determines if this field is a synthetic field as defined by the Java Language Specification.
54 */
55 boolean isSynthetic();
56
57 /**
58 * Returns the {@link ResolvedJavaType} object representing the class or interface that declares
59 * this field.
60 */
61 ResolvedJavaType getDeclaringClass();
62 }
|
35 * {@inheritDoc}
36 * <p>
37 * Only the {@linkplain Modifier#fieldModifiers() field flags} specified in the JVM
38 * specification will be included in the returned mask.
39 */
40 int getModifiers();
41
42 default boolean isFinal() {
43 return ModifiersProvider.super.isFinalFlagSet();
44 }
45
46 /**
47 * Determines if this field was injected by the VM. Such a field, for example, is not derived
48 * from a class file.
49 */
50 boolean isInternal();
51
52 /**
53 * Determines if this field is a synthetic field as defined by the Java Language Specification.
54 */
55 default boolean isSynthetic() {
56 return (SYNTHETIC & getModifiers()) == SYNTHETIC;
57 }
58
59 /**
60 * Returns the {@link ResolvedJavaType} object representing the class or interface that declares
61 * this field.
62 */
63 ResolvedJavaType getDeclaringClass();
64 }
|