Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api.interop/src/com/oracle/truffle/api/interop/InteropPredicate.java @ 18865:d6dba4c723c0
Interop: improve exception names and JavaDoc
author | Matthias Grimmer <grimmer@ssw.jku.at> |
---|---|
date | Wed, 14 Jan 2015 13:43:16 +0100 |
parents | 5294b624e2f0 |
children |
comparison
equal
deleted
inserted
replaced
18864:552993e5795a | 18865:d6dba4c723c0 |
---|---|
22 * or visit www.oracle.com if you need additional information or have any | 22 * or visit www.oracle.com if you need additional information or have any |
23 * questions. | 23 * questions. |
24 */ | 24 */ |
25 package com.oracle.truffle.api.interop; | 25 package com.oracle.truffle.api.interop; |
26 | 26 |
27 //TODO(mg): remove this interface and use java.util.function.Predicate once api.interop can use Java 8 | 27 /** |
28 * Represents a predicate of a {@code TruffleObject} argument. | |
29 */ | |
30 public interface InteropPredicate { | |
28 | 31 |
29 public interface InteropPredicate { | 32 /** |
30 boolean test(Object object); | 33 * Evaluates the predicate on the given {@code TruffleObject}. |
34 * | |
35 * @param object the input argument | |
36 * @return {@code true} if the {@code TruffleObject} argument matches the predicate, otherwise | |
37 * {@code false} | |
38 */ | |
39 boolean test(TruffleObject object); | |
31 } | 40 } |