Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/Template.java @ 18761:a665483c3881
Truffle-DSL: new node layout implementation.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 29 Dec 2014 23:38:54 +0100 |
parents | 23415229349b |
children | 941761f6b736 |
comparison
equal
deleted
inserted
replaced
18760:6fa3999631d8 | 18761:a665483c3881 |
---|---|
31 | 31 |
32 public abstract class Template extends MessageContainer { | 32 public abstract class Template extends MessageContainer { |
33 | 33 |
34 private final ProcessorContext context; | 34 private final ProcessorContext context; |
35 private final TypeElement templateType; | 35 private final TypeElement templateType; |
36 private final String templateMethodName; | |
37 private final AnnotationMirror annotation; | 36 private final AnnotationMirror annotation; |
38 | 37 |
39 public Template(ProcessorContext context, TypeElement templateType, String templateMethodName, AnnotationMirror annotation) { | 38 public Template(ProcessorContext context, TypeElement templateType, AnnotationMirror annotation) { |
40 this.context = context; | 39 this.context = context; |
41 this.templateType = templateType; | 40 this.templateType = templateType; |
42 this.templateMethodName = templateMethodName; | |
43 this.annotation = annotation; | 41 this.annotation = annotation; |
44 } | 42 } |
45 | 43 |
46 public ProcessorContext getContext() { | 44 public ProcessorContext getContext() { |
47 return context; | 45 return context; |
62 @Override | 60 @Override |
63 protected List<MessageContainer> findChildContainers() { | 61 protected List<MessageContainer> findChildContainers() { |
64 return Collections.emptyList(); | 62 return Collections.emptyList(); |
65 } | 63 } |
66 | 64 |
67 public String getTemplateMethodName() { | |
68 return templateMethodName; | |
69 } | |
70 | |
71 public TypeElement getTemplateType() { | 65 public TypeElement getTemplateType() { |
72 return templateType; | 66 return templateType; |
73 } | 67 } |
74 | 68 |
75 public AnnotationMirror getTemplateTypeAnnotation() { | 69 public AnnotationMirror getTemplateTypeAnnotation() { |