Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @ 22325:414e82b9fc35
Release 0.9 is out, let's remove deprecated elements from the API
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Fri, 23 Oct 2015 20:23:00 +0200 |
parents | 518f8ead5d01 |
children | dea950d41ef3 78594d342228 163fdf64587d |
comparison
equal
deleted
inserted
replaced
22324:ad67d348e361 | 22325:414e82b9fc35 |
---|---|
24 */ | 24 */ |
25 package com.oracle.truffle.api; | 25 package com.oracle.truffle.api; |
26 | 26 |
27 import java.io.IOException; | 27 import java.io.IOException; |
28 import java.io.InputStream; | 28 import java.io.InputStream; |
29 import java.io.InputStreamReader; | |
30 import java.io.OutputStream; | 29 import java.io.OutputStream; |
31 import java.io.OutputStreamWriter; | |
32 import java.io.Reader; | |
33 import java.io.Writer; | |
34 import java.lang.annotation.ElementType; | 30 import java.lang.annotation.ElementType; |
35 import java.lang.annotation.Retention; | 31 import java.lang.annotation.Retention; |
36 import java.lang.annotation.RetentionPolicy; | 32 import java.lang.annotation.RetentionPolicy; |
37 import java.lang.annotation.Target; | 33 import java.lang.annotation.Target; |
38 import java.util.Collections; | 34 import java.util.Collections; |
396 */ | 392 */ |
397 public InputStream in() { | 393 public InputStream in() { |
398 return in; | 394 return in; |
399 } | 395 } |
400 | 396 |
401 @Deprecated | |
402 public Reader stdIn() { | |
403 return new InputStreamReader(in); | |
404 } | |
405 | |
406 /** | 397 /** |
407 * Standard output writer for {@link com.oracle.truffle.api.vm.PolyglotEngine} this language | 398 * Standard output writer for {@link com.oracle.truffle.api.vm.PolyglotEngine} this language |
408 * is being executed in. | 399 * is being executed in. |
409 * | 400 * |
410 * @return writer, never <code>null</code> | 401 * @return writer, never <code>null</code> |
411 */ | 402 */ |
412 public OutputStream out() { | 403 public OutputStream out() { |
413 return out; | 404 return out; |
414 } | 405 } |
415 | 406 |
416 @Deprecated | |
417 public Writer stdOut() { | |
418 return new OutputStreamWriter(out); | |
419 } | |
420 | |
421 /** | 407 /** |
422 * Standard error writer for {@link com.oracle.truffle.api.vm.PolyglotEngine} this language | 408 * Standard error writer for {@link com.oracle.truffle.api.vm.PolyglotEngine} this language |
423 * is being executed in. | 409 * is being executed in. |
424 * | 410 * |
425 * @return writer, never <code>null</code> | 411 * @return writer, never <code>null</code> |
426 */ | 412 */ |
427 public OutputStream err() { | 413 public OutputStream err() { |
428 return err; | 414 return err; |
429 } | |
430 | |
431 @Deprecated | |
432 public Writer stdErr() { | |
433 return new OutputStreamWriter(err); | |
434 } | 415 } |
435 | 416 |
436 public Instrumenter instrumenter() { | 417 public Instrumenter instrumenter() { |
437 return instrumenter; | 418 return instrumenter; |
438 } | 419 } |