A reference to an empty source file. More...
Public Member Functions | |
EmptySourceFile () | |
File | getFilename () |
String | getName () |
int | getLineCount () |
InputStream | getStream () |
boolean | isAvailable () |
void | setIsText (boolean bi) |
boolean | hasLine (int lineNumber) |
boolean | isText () |
int | getFileID () |
Static Public Attributes | |
static final SourceFile | NONE = new EmptySourceFile() |
Empty source file for use by scopes which logically lack a source file. |
A reference to an empty source file.
Such a file is useful as a placeholder to avoid special cases in code when there may sometimes be no logically appropriate source file. An empty source file has no associated experiment, its name is the empty string, and its text stream is empty. It is always "available".
Definition at line 45 of file EmptySourceFile.java.
edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.EmptySourceFile | ( | ) |
Definition at line 60 of file EmptySourceFile.java.
int edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getFileID | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 165 of file EmptySourceFile.java.
File edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getFilename | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 77 of file EmptySourceFile.java.
int edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getLineCount | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 98 of file EmptySourceFile.java.
String edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getName | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 86 of file EmptySourceFile.java.
InputStream edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getStream | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 113 of file EmptySourceFile.java.
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.hasLine | ( | int | lineNumber | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 147 of file EmptySourceFile.java.
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.isAvailable | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 132 of file EmptySourceFile.java.
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.isText | ( | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 157 of file EmptySourceFile.java.
void edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.setIsText | ( | boolean | bi | ) | [virtual] |
Implements edu.rice.cs.hpc.data.experiment.source.SourceFile.
Definition at line 138 of file EmptySourceFile.java.
final SourceFile edu.rice.cs.hpc.data.experiment.source.SourceFile.NONE = new EmptySourceFile() [static, inherited] |
Empty source file for use by scopes which logically lack a source file.
Definition at line 45 of file SourceFile.java.
Referenced by edu.rice.cs.hpc.viewer.util.Utilities.isFileReadable().