comparison truffle/com.oracle.truffle.api.vm/src/com/oracle/truffle/api/vm/PolyglotEngine.java @ 22494:cff4a9d3e72a

Enumerating allowed interop types
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Mon, 14 Dec 2015 08:46:35 +0100
parents e4dd15f04c7d
children
comparison
equal deleted inserted replaced
22493:1cb72700c10e 22494:cff4a9d3e72a
676 * Executes the symbol. If the symbol represents a function, then it should be invoked with 676 * Executes the symbol. If the symbol represents a function, then it should be invoked with
677 * provided arguments. If the symbol represents a field, then first argument (if provided) 677 * provided arguments. If the symbol represents a field, then first argument (if provided)
678 * should set the value to the field; the return value should be the actual value of the 678 * should set the value to the field; the return value should be the actual value of the
679 * field when the <code>invoke</code> method returns. 679 * field when the <code>invoke</code> method returns.
680 * 680 *
681 * @param args arguments to pass when invoking the symbol 681 * @param args arguments to pass when invoking the symbol; either wrappers of Java primitive
682 * types (e.g. {@link java.lang.Byte}, {@link java.lang.Short},
683 * {@link java.lang.Integer}, {@link java.lang.Long}, {@link java.lang.Float},
684 * {@link java.lang.Double}, {@link java.lang.Character},
685 * {@link java.lang.Boolean}, and {@link java.lang.String}) or a
686 * {@link TruffleObject object created} by one of the languages)
687 *
682 * @return symbol wrapper around the value returned by invoking the symbol, never 688 * @return symbol wrapper around the value returned by invoking the symbol, never
683 * <code>null</code> 689 * <code>null</code>
684 * @throws IOException signals problem during execution 690 * @throws IOException signals problem during execution
685 */ 691 */
686 public Value execute(final Object... args) throws IOException { 692 public Value execute(final Object... args) throws IOException {