Mercurial > hg > truffle
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/java/model/CodeTypeElement.java @ 18753:f6b8787dc113
Truffle-DSL: replace complex factory system with a much simpler version
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:21 +0100 |
parents | 224a89858453 |
children | ae81dd154fb6 |
comparison
equal
deleted
inserted
replaced
18752:1acaa69ff61b | 18753:f6b8787dc113 |
---|---|
106 public List<? extends TypeParameterElement> getTypeParameters() { | 106 public List<? extends TypeParameterElement> getTypeParameters() { |
107 return Collections.emptyList(); | 107 return Collections.emptyList(); |
108 } | 108 } |
109 | 109 |
110 public boolean isTopLevelClass() { | 110 public boolean isTopLevelClass() { |
111 return super.getEnclosingElement() instanceof CodeCompilationUnit; | 111 return super.getEnclosingElement() instanceof CodeCompilationUnit || super.getEnclosingElement() == null; |
112 } | 112 } |
113 | 113 |
114 private Name createQualifiedName() { | 114 private Name createQualifiedName() { |
115 TypeElement enclosingType = getEnclosingClass(); | 115 TypeElement enclosingType = getEnclosingClass(); |
116 if (enclosingType == null) { | 116 if (enclosingType == null) { |