Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/source/SourceTag.java @ 20906:c8b83aa6cc82
Truffle/Source: remove proposed standard SourceTags; migrate the tags related to Source provenance into thte Source class.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Mon, 13 Apr 2015 10:55:15 -0700 |
parents | 191c55f08ed2 |
children | f166d264af9f |
comparison
equal
deleted
inserted
replaced
20900:ca13a009e38b | 20906:c8b83aa6cc82 |
---|---|
25 package com.oracle.truffle.api.source; | 25 package com.oracle.truffle.api.source; |
26 | 26 |
27 /** | 27 /** |
28 * Categorical information (best implemented as enums} about particular sources of Guest Language | 28 * Categorical information (best implemented as enums} about particular sources of Guest Language |
29 * code that can be useful to configure behavior of both the language runtime and external tools. | 29 * code that can be useful to configure behavior of both the language runtime and external tools. |
30 * These might include {@linkplain StandardSourceTag standard tags} noting, for example, whether the | 30 * These might include {@linkplain Source.Tags standard tags} noting, for example, |
31 * source was read from a file and whether it should be considered library code. | 31 * whether the source was read from a file and whether it should be considered library code. |
32 * <p> | |
33 * An untagged {@link Source} should by default be considered application code. | |
34 * <p> | 32 * <p> |
35 * The need for additional tags is likely to arise, in some cases because of issue specific to a | 33 * The need for additional tags is likely to arise, in some cases because of issue specific to a |
36 * Guest Language, but also for help configuring the behavior of particular tools. | 34 * Guest Language, but also for help configuring the behavior of particular tools. |
37 * | 35 * |
38 * @see Source | 36 * @see Source |
39 * @see StandardSourceTag | 37 * @see Source.Tags |
40 */ | 38 */ |
41 public interface SourceTag { | 39 public interface SourceTag { |
42 | 40 |
43 /** | 41 /** |
44 * Human-friendly name of a category of code sources, e.g. "file", or "library". | 42 * Human-friendly name of a category of code sources, e.g. "file", or "library". |