Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeCheckData.java Tue Apr 14 22:12:03 2015 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeCheckData.java Tue Apr 14 15:12:48 2015 +0200 @@ -22,26 +22,24 @@ */ package com.oracle.truffle.dsl.processor.model; +import javax.lang.model.type.*; + public class TypeCheckData extends TemplateMethod { - private final TypeData checkedType; - private final TypeData valueType; + private final TypeMirror checkedType; + private final TypeMirror valueType; - public TypeCheckData(TemplateMethod method, TypeData checkedType, TypeData valueType) { + public TypeCheckData(TemplateMethod method, TypeMirror checkedType, TypeMirror valueType) { super(method); this.checkedType = checkedType; this.valueType = valueType; } - public boolean isGeneric() { - return valueType.isGeneric(); - } - - public TypeData getCheckedType() { + public TypeMirror getCheckedType() { return checkedType; } - public TypeData getValueType() { + public TypeMirror getValueType() { return valueType; }