Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java @ 13455:69d2e4baa215
Truffle: new infrastructure related to instrumentation, and in particular debugging: support for managing Source objects; framework for generalized "instrumentation proxy nodes" (to be inserted into ASTs with no runtime cost when inactive), and "probes" (which can be attached to proxy nodes to receive event notification); a rudimentary interface and abstract implementation for a "debug manager" (mostly a placeholder at this point); and the beginning of a language-agnostic ExecutionContext interface.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 17 Dec 2013 20:22:45 -0800 |
parents | 5f532ea846fb |
children | 35f637594acc |
comparison
equal
deleted
inserted
replaced
13306:dfb780080923 | 13455:69d2e4baa215 |
---|---|
90 * | 90 * |
91 * @return the code as a String object | 91 * @return the code as a String object |
92 */ | 92 */ |
93 String getCode(); | 93 String getCode(); |
94 | 94 |
95 /** | |
96 * Singleton instance with no content. | |
97 */ | |
98 SourceSection NULL = new SourceSection() { | |
99 | |
100 public Source getSource() { | |
101 return null; | |
102 } | |
103 | |
104 public int getStartLine() { | |
105 return 0; | |
106 } | |
107 | |
108 public int getStartColumn() { | |
109 return 0; | |
110 } | |
111 | |
112 public int getCharIndex() { | |
113 return 0; | |
114 } | |
115 | |
116 @Override | |
117 public int getCharLength() { | |
118 return 0; | |
119 } | |
120 | |
121 public int getCharEndIndex() { | |
122 return 0; | |
123 } | |
124 | |
125 public String getIdentifier() { | |
126 return null; | |
127 } | |
128 | |
129 public String getCode() { | |
130 return null; | |
131 } | |
132 | |
133 }; | |
134 | |
95 } | 135 } |