Mercurial > hg > graal-compiler
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/frame/Frame.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 | 960a15fea39a |
comparison
equal
deleted
inserted
replaced
7529:4a11124a3563 | 7530:5e3d1a68664e |
---|---|
23 package com.oracle.truffle.api.frame; | 23 package com.oracle.truffle.api.frame; |
24 | 24 |
25 import com.oracle.truffle.api.*; | 25 import com.oracle.truffle.api.*; |
26 | 26 |
27 /** | 27 /** |
28 * Represents a frame containing values of local variables of the guest language. Instances of this type must not be | 28 * Represents a frame containing values of local variables of the guest language. Instances of this |
29 * stored in a field or cast to {@link java.lang.Object}. | 29 * type must not be stored in a field or cast to {@link java.lang.Object}. |
30 */ | 30 */ |
31 public interface Frame { | 31 public interface Frame { |
32 | 32 |
33 /** | 33 /** |
34 * @return the arguments used when calling this method | 34 * @return the arguments used when calling this method |
35 */ | 35 */ |
36 Arguments getArguments(); | 36 Arguments getArguments(); |
37 | 37 |
38 /** | 38 /** |
39 * Read access to a local variable of type {@link Object}. | 39 * Read access to a local variable of type {@link Object}. |
40 * | 40 * |
41 * @param slot the slot of the local variable | 41 * @param slot the slot of the local variable |
42 * @return the current value of the local variable | 42 * @return the current value of the local variable |
43 */ | 43 */ |
44 Object getObject(FrameSlot slot); | 44 Object getObject(FrameSlot slot); |
45 | 45 |
46 /** | 46 /** |
47 * Write access to a local variable of type {@link Object}. | 47 * Write access to a local variable of type {@link Object}. |
48 * | 48 * |
49 * @param slot the slot of the local variable | 49 * @param slot the slot of the local variable |
50 * @param value the new value of the local variable | 50 * @param value the new value of the local variable |
51 */ | 51 */ |
52 void setObject(FrameSlot slot, Object value); | 52 void setObject(FrameSlot slot, Object value); |
53 | 53 |
54 /** | 54 /** |
55 * Read access to a local variable of type boolean. | 55 * Read access to a local variable of type boolean. |
56 * | 56 * |
57 * @param slot the slot of the local variable | 57 * @param slot the slot of the local variable |
58 * @return the current value of the local variable | 58 * @return the current value of the local variable |
59 */ | 59 */ |
60 boolean getBoolean(FrameSlot slot); | 60 boolean getBoolean(FrameSlot slot); |
61 | 61 |
62 /** | 62 /** |
63 * Write access to a local variable of type boolean. | 63 * Write access to a local variable of type boolean. |
64 * | 64 * |
65 * @param slot the slot of the local variable | 65 * @param slot the slot of the local variable |
66 * @param value the new value of the local variable | 66 * @param value the new value of the local variable |
67 */ | 67 */ |
68 void setBoolean(FrameSlot slot, boolean value); | 68 void setBoolean(FrameSlot slot, boolean value); |
69 | 69 |
70 /** | 70 /** |
71 * Read access to a local variable of type int. | 71 * Read access to a local variable of type int. |
72 * | 72 * |
73 * @param slot the slot of the local variable | 73 * @param slot the slot of the local variable |
74 * @return the current value of the local variable | 74 * @return the current value of the local variable |
75 */ | 75 */ |
76 int getInt(FrameSlot slot); | 76 int getInt(FrameSlot slot); |
77 | 77 |
78 /** | 78 /** |
79 * Write access to a local variable of type int. | 79 * Write access to a local variable of type int. |
80 * | 80 * |
81 * @param slot the slot of the local variable | 81 * @param slot the slot of the local variable |
82 * @param value the new value of the local variable | 82 * @param value the new value of the local variable |
83 */ | 83 */ |
84 void setInt(FrameSlot slot, int value); | 84 void setInt(FrameSlot slot, int value); |
85 | 85 |
86 /** | 86 /** |
87 * Read access to a local variable of type long. | 87 * Read access to a local variable of type long. |
88 * | 88 * |
89 * @param slot the slot of the local variable | 89 * @param slot the slot of the local variable |
90 * @return the current value of the local variable | 90 * @return the current value of the local variable |
91 */ | 91 */ |
92 long getLong(FrameSlot slot); | 92 long getLong(FrameSlot slot); |
93 | 93 |
94 /** | 94 /** |
95 * Write access to a local variable of type long. | 95 * Write access to a local variable of type long. |
96 * | 96 * |
97 * @param slot the slot of the local variable | 97 * @param slot the slot of the local variable |
98 * @param value the new value of the local variable | 98 * @param value the new value of the local variable |
99 */ | 99 */ |
100 void setLong(FrameSlot slot, long value); | 100 void setLong(FrameSlot slot, long value); |
101 | 101 |
102 /** | 102 /** |
103 * Read access to a local variable of type float. | 103 * Read access to a local variable of type float. |
104 * | 104 * |
105 * @param slot the slot of the local variable | 105 * @param slot the slot of the local variable |
106 * @return the current value of the local variable | 106 * @return the current value of the local variable |
107 */ | 107 */ |
108 float getFloat(FrameSlot slot); | 108 float getFloat(FrameSlot slot); |
109 | 109 |
110 /** | 110 /** |
111 * Write access to a local variable of type float. | 111 * Write access to a local variable of type float. |
112 * | 112 * |
113 * @param slot the slot of the local variable | 113 * @param slot the slot of the local variable |
114 * @param value the new value of the local variable | 114 * @param value the new value of the local variable |
115 */ | 115 */ |
116 void setFloat(FrameSlot slot, float value); | 116 void setFloat(FrameSlot slot, float value); |
117 | 117 |
118 /** | 118 /** |
119 * Read access to a local variable of type double. | 119 * Read access to a local variable of type double. |
120 * | 120 * |
121 * @param slot the slot of the local variable | 121 * @param slot the slot of the local variable |
122 * @return the current value of the local variable | 122 * @return the current value of the local variable |
123 */ | 123 */ |
124 double getDouble(FrameSlot slot); | 124 double getDouble(FrameSlot slot); |
125 | 125 |
126 /** | 126 /** |
127 * Write access to a local variable of type double. | 127 * Write access to a local variable of type double. |
128 * | 128 * |
129 * @param slot the slot of the local variable | 129 * @param slot the slot of the local variable |
130 * @param value the new value of the local variable | 130 * @param value the new value of the local variable |
131 */ | 131 */ |
132 void setDouble(FrameSlot slot, double value); | 132 void setDouble(FrameSlot slot, double value); |
133 | 133 |