Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.dsl.processor/src/com/oracle/truffle/dsl/processor/expression/DSLExpression.java @ 19294:b31b2f289e7d
Truffle-DSL: fix unnecessary frame cast warning.
author | Christian Humer <christian.humer@gmail.com> |
---|---|
date | Wed, 11 Feb 2015 16:10:45 +0100 |
parents | 62c43fcf5be2 |
children | 35c3e3af8c39 |
comparison
equal
deleted
inserted
replaced
19293:21b9b9941775 | 19294:b31b2f289e7d |
---|---|
27 import javax.lang.model.element.*; | 27 import javax.lang.model.element.*; |
28 import javax.lang.model.type.*; | 28 import javax.lang.model.type.*; |
29 | 29 |
30 public abstract class DSLExpression { | 30 public abstract class DSLExpression { |
31 | 31 |
32 private TypeMirror resolvedTargetType; | |
33 | |
32 private DSLExpression() { | 34 private DSLExpression() { |
33 } | 35 } |
34 | 36 |
35 public static DSLExpression parse(String input) { | 37 public static DSLExpression parse(String input) { |
36 return Parser.parse(input); | 38 return Parser.parse(input); |
64 | 66 |
65 }); | 67 }); |
66 return variables; | 68 return variables; |
67 } | 69 } |
68 | 70 |
71 public void setResolvedTargetType(TypeMirror resolvedTargetType) { | |
72 this.resolvedTargetType = resolvedTargetType; | |
73 } | |
74 | |
75 public TypeMirror getResolvedTargetType() { | |
76 return resolvedTargetType; | |
77 } | |
78 | |
69 public final boolean isVariableBound(VariableElement variableElement) { | 79 public final boolean isVariableBound(VariableElement variableElement) { |
70 return findBoundVariableElements().contains(variableElement); | 80 return findBoundVariableElements().contains(variableElement); |
71 } | 81 } |
72 | 82 |
73 public abstract TypeMirror getResolvedType(); | 83 public abstract TypeMirror getResolvedType(); |