Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeCheckData.java @ 20938:18c0f02fa4d2
Truffle-DSL: make type systems optional.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Tue, 14 Apr 2015 15:12:48 +0200 |
parents | e6d15134ca86 |
children |
comparison
equal
deleted
inserted
replaced
20937:37ea76052733 | 20938:18c0f02fa4d2 |
---|---|
20 * or visit www.oracle.com if you need additional information or have any | 20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.dsl.processor.model; | 23 package com.oracle.truffle.dsl.processor.model; |
24 | 24 |
25 import javax.lang.model.type.*; | |
26 | |
25 public class TypeCheckData extends TemplateMethod { | 27 public class TypeCheckData extends TemplateMethod { |
26 | 28 |
27 private final TypeData checkedType; | 29 private final TypeMirror checkedType; |
28 private final TypeData valueType; | 30 private final TypeMirror valueType; |
29 | 31 |
30 public TypeCheckData(TemplateMethod method, TypeData checkedType, TypeData valueType) { | 32 public TypeCheckData(TemplateMethod method, TypeMirror checkedType, TypeMirror valueType) { |
31 super(method); | 33 super(method); |
32 this.checkedType = checkedType; | 34 this.checkedType = checkedType; |
33 this.valueType = valueType; | 35 this.valueType = valueType; |
34 } | 36 } |
35 | 37 |
36 public boolean isGeneric() { | 38 public TypeMirror getCheckedType() { |
37 return valueType.isGeneric(); | |
38 } | |
39 | |
40 public TypeData getCheckedType() { | |
41 return checkedType; | 39 return checkedType; |
42 } | 40 } |
43 | 41 |
44 public TypeData getValueType() { | 42 public TypeMirror getValueType() { |
45 return valueType; | 43 return valueType; |
46 } | 44 } |
47 | 45 |
48 } | 46 } |