comparison graal/com.oracle.truffle.api.dsl/src/com/oracle/truffle/api/dsl/TypeSystem.java @ 15040:288c23143d47

Fix most raw type references.
author Josef Eisl <josef.eisl@jku.at>
date Wed, 09 Apr 2014 19:08:53 +0200
parents f3a5036cc13c
children f57d86eb036f
comparison
equal deleted inserted replaced
15039:631ca3972292 15040:288c23143d47
59 * 59 *
60 * <pre> 60 * <pre>
61 * 61 *
62 * {@literal @}TypeSystem(types = {boolean.class, int.class, double.class}) 62 * {@literal @}TypeSystem(types = {boolean.class, int.class, double.class})
63 * public abstract class ExampleTypeSystem { 63 * public abstract class ExampleTypeSystem {
64 * 64 *
65 * {@literal @}TypeCheck 65 * {@literal @}TypeCheck
66 * public boolean isInteger(Object value) { 66 * public boolean isInteger(Object value) {
67 * return value instanceof Integer || value instanceof Double; 67 * return value instanceof Integer || value instanceof Double;
68 * } 68 * }
69 * 69 *
70 * {@literal @}TypeCast 70 * {@literal @}TypeCast
71 * public double asInteger(Object value) { 71 * public double asInteger(Object value) {
72 * return ((Number)value).doubleValue(); 72 * return ((Number)value).doubleValue();
73 * } 73 * }
74 * } 74 * }
83 public @interface TypeSystem { 83 public @interface TypeSystem {
84 84
85 /** 85 /**
86 * The list of types as child elements of the {@link TypeSystem}. Each precedes its super type. 86 * The list of types as child elements of the {@link TypeSystem}. Each precedes its super type.
87 */ 87 */
88 Class[] value(); 88 Class<?>[] value();
89 89
90 } 90 }