Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/compiler/JavaCCompiler.java @ 16753:f78eafd5ba9e
Truffle-DSL: the processor compiler abstraction now supports declaration oder for enclosed elements of types for JDT which is not conforming to specification.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:05 +0200 |
parents | 288c23143d47 |
children |
comparison
equal
deleted
inserted
replaced
16752:0e05342037d7 | 16753:f78eafd5ba9e |
---|---|
38 } catch (ClassNotFoundException e) { | 38 } catch (ClassNotFoundException e) { |
39 return false; | 39 return false; |
40 } | 40 } |
41 } | 41 } |
42 | 42 |
43 public List<? extends Element> getEnclosedElementsDeclarationOrder(TypeElement type) { | 43 public List<? extends Element> getEnclosedElementsInDeclarationOrder(TypeElement type) { |
44 return type.getEnclosedElements(); | 44 return type.getEnclosedElements(); |
45 } | |
46 | |
47 public List<? extends Element> getAllMembersInDeclarationOrder(ProcessingEnvironment environment, TypeElement type) { | |
48 return environment.getElementUtils().getAllMembers(type); | |
45 } | 49 } |
46 | 50 |
47 private static final Class<?>[] getTreeAndTopLevelSignature = new Class[]{Element.class, AnnotationMirror.class, AnnotationValue.class}; | 51 private static final Class<?>[] getTreeAndTopLevelSignature = new Class[]{Element.class, AnnotationMirror.class, AnnotationValue.class}; |
48 private static final Class<?>[] getCharContentSignature = new Class[]{boolean.class}; | 52 private static final Class<?>[] getCharContentSignature = new Class[]{boolean.class}; |
49 | 53 |