comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/ast/CodeTypeElement.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents 6343a09b2ec1
children
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
101 public List<TypeMirror> getInterfaces() { 101 public List<TypeMirror> getInterfaces() {
102 return implementsInterfaces; 102 return implementsInterfaces;
103 } 103 }
104 104
105 @Override 105 @Override
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;
182 return ElementFilter.fieldsIn(getEnclosedElements()); 182 return ElementFilter.fieldsIn(getEnclosedElements());
183 } 183 }
184 184
185 public ExecutableElement getMethod(String name) { 185 public ExecutableElement getMethod(String name) {
186 for (Element element : getEnclosedElements()) { 186 for (Element element : getEnclosedElements()) {
187 if (element.getKind() == ElementKind.METHOD 187 if (element.getKind() == ElementKind.METHOD && element.getSimpleName().toString().equals(name)) {
188 && element.getSimpleName().toString().equals(name)) { 188 return (ExecutableElement) element;
189 return (ExecutableElement) element;
190 } 189 }
191 } 190 }
192 return null; 191 return null;
193 } 192 }
194 193