comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/SourceSection.java @ 13564:35f637594acc

Truffle: refinements in the management of source information: a new marker interface for empty SourceSections and fix a bug that kept modified source files from being reloaded.
author Michael Van De Vanter <michael.van.de.vanter@oracle.com>
date Tue, 07 Jan 2014 18:21:20 -0800
parents 69d2e4baa215
children c54f5fa05fd5
comparison
equal deleted inserted replaced
13563:fb846424299f 13564:35f637594acc
1 /* 1 /*
2 * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 * 4 *
5 * This code is free software; you can redistribute it and/or modify it 5 * This code is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License version 2 only, as 6 * under the terms of the GNU General Public License version 2 only, as
7 * published by the Free Software Foundation. Oracle designates this 7 * published by the Free Software Foundation. Oracle designates this
93 String getCode(); 93 String getCode();
94 94
95 /** 95 /**
96 * Singleton instance with no content. 96 * Singleton instance with no content.
97 */ 97 */
98 SourceSection NULL = new SourceSection() { 98 SourceSection NULL = new NullSourceSection() {
99 99
100 public Source getSource() { 100 public Source getSource() {
101 return null; 101 return null;
102 } 102 }
103 103