comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/Arguments.java @ 7530:5e3d1a68664e

applied mx eclipseformat to all Java files
author Doug Simon <doug.simon@oracle.com>
date Wed, 23 Jan 2013 16:34:57 +0100
parents a4b84ba6dc2e
children 494b818b527c
comparison
equal deleted inserted replaced
7529:4a11124a3563 7530:5e3d1a68664e
22 */ 22 */
23 package com.oracle.truffle.api; 23 package com.oracle.truffle.api;
24 24
25 /** 25 /**
26 * Base class for arguments passed to guest language methods via the 26 * Base class for arguments passed to guest language methods via the
27 * {@link CallTarget#call(com.oracle.truffle.api.frame.PackedFrame, Arguments)} method. A guest language create a 27 * {@link CallTarget#call(com.oracle.truffle.api.frame.PackedFrame, Arguments)} method. A guest
28 * subclass with immutable fields representing the arguments passed to a guest language method. The {@link Arguments} 28 * language create a subclass with immutable fields representing the arguments passed to a guest
29 * object must be created immediately before a method call and it must not be stored in a field or cast to 29 * language method. The {@link Arguments} object must be created immediately before a method call
30 * {@link java.lang.Object}. 30 * and it must not be stored in a field or cast to {@link java.lang.Object}.
31 */ 31 */
32 public class Arguments { 32 public class Arguments {
33 33
34 /** 34 /**
35 * Constant that can be used as an argument to 35 * Constant that can be used as an argument to
36 * {@link CallTarget#call(com.oracle.truffle.api.frame.PackedFrame, Arguments)} in case no arguments should be 36 * {@link CallTarget#call(com.oracle.truffle.api.frame.PackedFrame, Arguments)} in case no
37 * supplied. 37 * arguments should be supplied.
38 */ 38 */
39 public static final Arguments EMPTY_ARGUMENTS = new Arguments(); 39 public static final Arguments EMPTY_ARGUMENTS = new Arguments();
40 40
41 /** 41 /**
42 * Constructs an empty {@link Arguments} instance. Guest languages should create a subclass to specify their own arguments. 42 * Constructs an empty {@link Arguments} instance. Guest languages should create a subclass to
43 * specify their own arguments.
43 */ 44 */
44 protected Arguments() { 45 protected Arguments() {
45 } 46 }
46 } 47 }