Home | History | Annotate | Download | only in jdwp

Lines Matching refs:Tag

47         return new Value(JDWPConstants.Tag.BYTE_TAG, Byte.valueOf(value));
61 return new Value(JDWPConstants.Tag.SHORT_TAG, Short.valueOf(value));
68 return new Value(JDWPConstants.Tag.INT_TAG, Integer.valueOf(value));
75 return new Value(JDWPConstants.Tag.LONG_TAG, Long.valueOf(value));
82 return new Value(JDWPConstants.Tag.FLOAT_TAG, Float.valueOf(value));
89 return new Value(JDWPConstants.Tag.DOUBLE_TAG, Double.valueOf(value));
96 return new Value(JDWPConstants.Tag.VOID_TAG, Long.valueOf(0));
102 public static Value createObjectValue(byte tag, long value) {
103 if (isPrimitiveTag(tag)) {
104 throw new AssertionError(JDWPConstants.Tag.getName(tag) + " is primitive");
106 return new Value(tag, Long.valueOf(value));
109 private final byte tag;
120 private Value(byte tag, Number numberValue) {
121 this.tag = tag;
131 this.tag = JDWPConstants.Tag.BOOLEAN_TAG;
141 this.tag = JDWPConstants.Tag.CHAR_TAG;
148 * Returns tag of this value.
150 * @return Returns the tag.
153 return tag;
228 private static boolean isPrimitiveTag(byte tag) {
229 switch (tag) {
230 case JDWPConstants.Tag.BOOLEAN_TAG:
231 case JDWPConstants.Tag.BYTE_TAG:
232 case JDWPConstants.Tag.CHAR_TAG:
233 case JDWPConstants.Tag.SHORT_TAG:
234 case JDWPConstants.Tag.INT_TAG:
235 case JDWPConstants.Tag.LONG_TAG:
236 case JDWPConstants.Tag.FLOAT_TAG:
237 case JDWPConstants.Tag.DOUBLE_TAG:
238 case JDWPConstants.Tag.VOID_TAG:
240 case JDWPConstants.Tag.NO_TAG:
241 case JDWPConstants.Tag.ARRAY_TAG:
242 case JDWPConstants.Tag.CLASS_LOADER_TAG:
243 case JDWPConstants.Tag.CLASS_OBJECT_TAG:
244 case JDWPConstants.Tag.OBJECT_TAG:
245 case JDWPConstants.Tag.STRING_TAG:
246 case JDWPConstants.Tag.THREAD_TAG:
247 case JDWPConstants.Tag.THREAD_GROUP_TAG:
250 throw new TestErrorException("Illegal tag value: " + tag);
263 if (tag != value0.tag)
266 switch (tag) {
267 case JDWPConstants.Tag.BOOLEAN_TAG:
269 case JDWPConstants.Tag.BYTE_TAG:
271 case JDWPConstants.Tag.CHAR_TAG:
273 case JDWPConstants.Tag.DOUBLE_TAG:
278 case JDWPConstants.Tag.FLOAT_TAG:
283 case JDWPConstants.Tag.INT_TAG:
285 case JDWPConstants.Tag.LONG_TAG:
287 case JDWPConstants.Tag.SHORT_TAG:
289 case JDWPConstants.Tag.STRING_TAG:
290 case JDWPConstants.Tag.ARRAY_TAG:
291 case JDWPConstants.Tag.CLASS_LOADER_TAG:
292 case JDWPConstants.Tag.CLASS_OBJECT_TAG:
293 case JDWPConstants.Tag.OBJECT_TAG:
294 case JDWPConstants.Tag.THREAD_GROUP_TAG:
295 case JDWPConstants.Tag.THREAD_TAG:
299 throw new TestErrorException("Illegal tag value");
308 switch (tag) {
309 case JDWPConstants.Tag.BOOLEAN_TAG:
311 case JDWPConstants.Tag.BYTE_TAG:
313 case JDWPConstants.Tag.CHAR_TAG:
315 case JDWPConstants.Tag.DOUBLE_TAG:
317 case JDWPConstants.Tag.FLOAT_TAG:
319 case JDWPConstants.Tag.INT_TAG:
321 case JDWPConstants.Tag.LONG_TAG:
323 case JDWPConstants.Tag.SHORT_TAG:
325 case JDWPConstants.Tag.STRING_TAG:
327 case JDWPConstants.Tag.ARRAY_TAG:
329 case JDWPConstants.Tag.CLASS_LOADER_TAG:
331 case JDWPConstants.Tag.CLASS_OBJECT_TAG:
333 case JDWPConstants.Tag.OBJECT_TAG:
335 case JDWPConstants.Tag.THREAD_GROUP_TAG:
337 case JDWPConstants.Tag.THREAD_TAG:
341 throw new TestErrorException("Illegal tag value: " + tag);