Mercurial > hg > graal-jvmci-8
comparison jvmci/com.oracle.jvmci.meta/src/com/oracle/jvmci/meta/ResolvedJavaField.java @ 22032:d1a41fbfcfd2
Replace ResolvedJavaType.isFinal with more meaningful and correct isLeaf
author | Tom Rodriguez <tom.rodriguez@oracle.com> |
---|---|
date | Thu, 18 Jun 2015 10:07:27 -0700 |
parents | 395ac43a8578 |
children |
comparison
equal
deleted
inserted
replaced
22014:35b153c26783 | 22032:d1a41fbfcfd2 |
---|---|
37 * Only the {@linkplain Modifier#fieldModifiers() field flags} specified in the JVM | 37 * Only the {@linkplain Modifier#fieldModifiers() field flags} specified in the JVM |
38 * specification will be included in the returned mask. | 38 * specification will be included in the returned mask. |
39 */ | 39 */ |
40 int getModifiers(); | 40 int getModifiers(); |
41 | 41 |
42 default boolean isFinal() { | |
43 return ModifiersProvider.super.isFinalFlagSet(); | |
44 } | |
45 | |
42 /** | 46 /** |
43 * Determines if this field was injected by the VM. Such a field, for example, is not derived | 47 * Determines if this field was injected by the VM. Such a field, for example, is not derived |
44 * from a class file. | 48 * from a class file. |
45 */ | 49 */ |
46 boolean isInternal(); | 50 boolean isInternal(); |
66 */ | 70 */ |
67 <T extends Annotation> T getAnnotation(Class<T> annotationClass); | 71 <T extends Annotation> T getAnnotation(Class<T> annotationClass); |
68 | 72 |
69 /** | 73 /** |
70 * Returns an object representing the unique location identity of this resolved Java field. | 74 * Returns an object representing the unique location identity of this resolved Java field. |
71 * | 75 * |
72 * @return the location identity of the field | 76 * @return the location identity of the field |
73 */ | 77 */ |
74 LocationIdentity getLocationIdentity(); | 78 LocationIdentity getLocationIdentity(); |
75 } | 79 } |