Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.codegen.processor/src/com/oracle/truffle/codegen/processor/template/Template.java @ 8248:c4c3f50fa9c2
Fixes for codegen builtins support.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 12 Mar 2013 11:37:32 +0100 |
parents | 5e3d1a68664e |
children | 0905d796944a |
comparison
equal
deleted
inserted
replaced
8247:5b08b0f4d338 | 8248:c4c3f50fa9c2 |
---|---|
30 import com.oracle.truffle.codegen.processor.api.element.*; | 30 import com.oracle.truffle.codegen.processor.api.element.*; |
31 | 31 |
32 public abstract class Template { | 32 public abstract class Template { |
33 | 33 |
34 private final TypeElement templateType; | 34 private final TypeElement templateType; |
35 private final String templateMethodName; | |
35 private final AnnotationMirror annotation; | 36 private final AnnotationMirror annotation; |
36 | 37 |
37 private List<? extends WritableElement> extensionElements; | 38 private List<? extends WritableElement> extensionElements; |
38 | 39 |
39 public Template(TypeElement templateType, AnnotationMirror annotation) { | 40 public Template(TypeElement templateType, String templateMethodName, AnnotationMirror annotation) { |
40 this.templateType = templateType; | 41 this.templateType = templateType; |
42 this.templateMethodName = templateMethodName; | |
41 this.annotation = annotation; | 43 this.annotation = annotation; |
44 } | |
45 | |
46 public String getTemplateMethodName() { | |
47 return templateMethodName; | |
42 } | 48 } |
43 | 49 |
44 public TypeElement getTemplateType() { | 50 public TypeElement getTemplateType() { |
45 return templateType; | 51 return templateType; |
46 } | 52 } |