< prev index next >

src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.hotspot/src/jdk/vm/ci/hotspot/HotSpotResolvedJavaFieldImpl.java

Print this page




 130         }
 131         return type;
 132     }
 133 
 134     @Override
 135     public int getOffset() {
 136         return offset;
 137     }
 138 
 139     @Override
 140     public String toString() {
 141         return format("HotSpotField<%H.%n %t:") + offset + ">";
 142     }
 143 
 144     @Override
 145     public boolean isSynthetic() {
 146         return (config().jvmAccSynthetic & modifiers) != 0;
 147     }
 148 
 149     /**
 150      * Checks if this field has the {@link Stable} annotation.
 151      *
 152      * @return true if field has {@link Stable} annotation, false otherwise
 153      */
 154     @Override
 155     public boolean isStable() {
 156         return (config().jvmAccFieldStable & modifiers) != 0;
 157     }
 158 
 159     @Override
 160     public Annotation[] getAnnotations() {
 161         Field javaField = toJava();
 162         if (javaField != null) {
 163             return javaField.getAnnotations();
 164         }
 165         return new Annotation[0];
 166     }
 167 
 168     @Override
 169     public Annotation[] getDeclaredAnnotations() {
 170         Field javaField = toJava();
 171         if (javaField != null) {
 172             return javaField.getDeclaredAnnotations();




 130         }
 131         return type;
 132     }
 133 
 134     @Override
 135     public int getOffset() {
 136         return offset;
 137     }
 138 
 139     @Override
 140     public String toString() {
 141         return format("HotSpotField<%H.%n %t:") + offset + ">";
 142     }
 143 
 144     @Override
 145     public boolean isSynthetic() {
 146         return (config().jvmAccSynthetic & modifiers) != 0;
 147     }
 148 
 149     /**
 150      * Checks if this field has the {@code Stable} annotation.
 151      *
 152      * @return true if field has {@code Stable} annotation, false otherwise
 153      */
 154     @Override
 155     public boolean isStable() {
 156         return (config().jvmAccFieldStable & modifiers) != 0;
 157     }
 158 
 159     @Override
 160     public Annotation[] getAnnotations() {
 161         Field javaField = toJava();
 162         if (javaField != null) {
 163             return javaField.getAnnotations();
 164         }
 165         return new Annotation[0];
 166     }
 167 
 168     @Override
 169     public Annotation[] getDeclaredAnnotations() {
 170         Field javaField = toJava();
 171         if (javaField != null) {
 172             return javaField.getDeclaredAnnotations();


< prev index next >