Mercurial > hg > graal-compiler
diff graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeCastData.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/TypeCastData.java Tue Apr 14 22:12:03 2015 +0200 +++ b/graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/model/TypeCastData.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 TypeCastData extends TemplateMethod { - private final TypeData targetType; - private final TypeData sourceType; + private final TypeMirror targetType; + private final TypeMirror sourceType; - public TypeCastData(TemplateMethod method, TypeData sourceType, TypeData targetType) { + public TypeCastData(TemplateMethod method, TypeMirror sourceType, TypeMirror targetType) { super(method); this.sourceType = sourceType; this.targetType = targetType; } - public boolean isGeneric() { - return sourceType.isGeneric(); - } - - public TypeData getSourceType() { + public TypeMirror getSourceType() { return sourceType; } - public TypeData getTargetType() { + public TypeMirror getTargetType() { return targetType; } }