import net.sourceforge.phpdt.core.ISourceRange;
-
-/* package */ class CompilationUnitElementInfo extends OpenableElementInfo {
+/* package */class CompilationUnitElementInfo extends OpenableElementInfo {
/**
* The length of this compilation unit's source code <code>String</code>
*/
- protected int fSourceLength;
+ protected int sourceLength;
- /**
- * Timestamp of original resource at the time this element
- * was opened or last updated.
+ /**
+ * Timestamp of original resource at the time this element was opened or
+ * last updated.
*/
- protected long fTimestamp;
-/**
- * Returns the length of the source string.
- */
-public int getSourceLength() {
- return fSourceLength;
-}
-protected ISourceRange getSourceRange() {
- return new SourceRange(0, fSourceLength);
-}
-/**
- * Sets the length of the source string.
- */
-public void setSourceLength(int newSourceLength) {
- fSourceLength = newSourceLength;
-}
+ protected long timestamp;
+
+ /**
+ * Returns the length of the source string.
+ */
+ public int getSourceLength() {
+ return sourceLength;
+ }
+
+ protected ISourceRange getSourceRange() {
+ return new SourceRange(0, sourceLength);
+ }
+
+ protected boolean isOpen() {
+ return true;
+ }
+
+ /**
+ * Sets the length of the source string.
+ */
+ public void setSourceLength(int newSourceLength) {
+ sourceLength = newSourceLength;
+ }
}