Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/ast/CodeTree.java @ 16754:55fd5be68a52
Truffle-DSL: minor adaptions to the processor AST.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Mon, 11 Aug 2014 15:53:05 +0200 |
parents | 79041ab43660 |
children | 0cd0bdedd4ad |
comparison
equal
deleted
inserted
replaced
16753:f78eafd5ba9e | 16754:55fd5be68a52 |
---|---|
27 | 27 |
28 public class CodeTree extends CodeElement<CodeTree> { | 28 public class CodeTree extends CodeElement<CodeTree> { |
29 | 29 |
30 private final CodeTreeKind kind; | 30 private final CodeTreeKind kind; |
31 | 31 |
32 private final TypeMirror type; | 32 private TypeMirror type; |
33 private final String string; | 33 private final String string; |
34 | 34 |
35 public CodeTree(CodeTreeKind kind, TypeMirror type, String string) { | 35 public CodeTree(CodeTreeKind kind, TypeMirror type, String string) { |
36 this.kind = kind; | 36 this.kind = kind; |
37 this.type = type; | 37 this.type = type; |
50 return string; | 50 return string; |
51 } | 51 } |
52 | 52 |
53 public <P> void acceptCodeElementScanner(CodeElementScanner<?, P> s, P p) { | 53 public <P> void acceptCodeElementScanner(CodeElementScanner<?, P> s, P p) { |
54 s.visitTree(this, p); | 54 s.visitTree(this, p); |
55 } | |
56 | |
57 public void setType(TypeMirror type) { | |
58 this.type = type; | |
55 } | 59 } |
56 | 60 |
57 @Override | 61 @Override |
58 public TypeMirror asType() { | 62 public TypeMirror asType() { |
59 return type; | 63 return type; |