Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/source/Source.java @ 22105:7ee578004be7
Formating and lints
author | Jaroslav Tulach <jaroslav.tulach@oracle.com> |
---|---|
date | Mon, 24 Aug 2015 09:07:43 +0200 |
parents | cf19259edf87 |
children | dc83cc1f94f2 f47b601edbc6 |
comparison
equal
deleted
inserted
replaced
22104:cf19259edf87 | 22105:7ee578004be7 |
---|---|
641 return TextMap.fromString(code); | 641 return TextMap.fromString(code); |
642 } | 642 } |
643 | 643 |
644 /** | 644 /** |
645 * Associates the source with specified MIME type. The mime type may be used to select the right | 645 * Associates the source with specified MIME type. The mime type may be used to select the right |
646 * {@link Registration Truffle language} to use to execute the returned source. The value of MIME | 646 * {@link Registration Truffle language} to use to execute the returned source. The value of |
647 * type can be obtained via {@link #getMimeType()} method. | 647 * MIME type can be obtained via {@link #getMimeType()} method. |
648 * | 648 * |
649 * @param mime mime type to use | 649 * @param mime mime type to use |
650 * @return new (identical) source, just associated {@link #getMimeType()} | 650 * @return new (identical) source, just associated {@link #getMimeType()} |
651 */ | 651 */ |
652 public final Source withMimeType(String mime) { | 652 public final Source withMimeType(String mime) { |