edu.rice.cs.hpc.data.experiment.source.EmptySourceFile Class Reference

A reference to an empty source file. More...

Inheritance diagram for edu.rice.cs.hpc.data.experiment.source.EmptySourceFile:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.data.experiment.source.EmptySourceFile:
Collaboration graph
[legend]

List of all members.

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.

Detailed Description

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".

See also:
edu.rice.cs.hpcview.view.source.SourceView.Scope()

Definition at line 45 of file EmptySourceFile.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.EmptySourceFile (  ) 

Definition at line 60 of file EmptySourceFile.java.


Member Function Documentation

int edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getFileID (  )  [virtual]
File edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getFilename (  )  [virtual]
int edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getLineCount (  )  [virtual]
String edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getName (  )  [virtual]
InputStream edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.getStream (  )  [virtual]
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.hasLine ( int  lineNumber  )  [virtual]
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.isAvailable (  )  [virtual]
boolean edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.isText (  )  [virtual]
void edu.rice.cs.hpc.data.experiment.source.EmptySourceFile.setIsText ( boolean  bi  )  [virtual]

Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1