comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/parser/NodeParser.java @ 19285:259a416388d7

Truffle-DSL: rename @ImportGuards to @ImportStatic
author Christian Humer <christian.humer@gmail.com>
date Tue, 03 Feb 2015 15:07:03 +0100
parents 08aa0372dad4
children 62c43fcf5be2
comparison
equal deleted inserted replaced
19284:b339d723a06b 19285:259a416388d7
192 return foundSpecialization; 192 return foundSpecialization;
193 } 193 }
194 194
195 private void initializeImportGuards(NodeData node, List<TypeElement> lookupTypes, List<Element> elements) { 195 private void initializeImportGuards(NodeData node, List<TypeElement> lookupTypes, List<Element> elements) {
196 for (TypeElement lookupType : lookupTypes) { 196 for (TypeElement lookupType : lookupTypes) {
197 AnnotationMirror importAnnotation = ElementUtils.findAnnotationMirror(processingEnv, lookupType, ImportGuards.class); 197 AnnotationMirror importAnnotation = ElementUtils.findAnnotationMirror(processingEnv, lookupType, ImportStatic.class);
198 if (importAnnotation == null) { 198 if (importAnnotation == null) {
199 continue; 199 continue;
200 } 200 }
201 AnnotationValue importClassesValue = ElementUtils.getAnnotationValue(importAnnotation, "value"); 201 AnnotationValue importClassesValue = ElementUtils.getAnnotationValue(importAnnotation, "value");
202 List<TypeMirror> importClasses = ElementUtils.getAnnotationValueList(TypeMirror.class, importAnnotation, "value"); 202 List<TypeMirror> importClasses = ElementUtils.getAnnotationValueList(TypeMirror.class, importAnnotation, "value");