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

A reference to a source file in an HPCView experiment. More...

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

List of all members.

Public Member Functions

 FileSystemSourceFile (BaseExperiment experiment, File filename, int idFile)
int getFileID ()
String getName ()
File getFilename ()
int getLineCount ()
InputStream getStream ()
boolean isAvailable ()
boolean isText ()
void setIsText (boolean bi)
boolean hasLine (int lineNumber)
String getCompleteFilename ()
 Laks: need this function for Eclipse editor ! Get the complete filename when it is available based on resolvedPath.

Static Public Attributes

static final int STATICID = 1111
 The type ID of the Source file.
static final SourceFile NONE = new EmptySourceFile()
 Empty source file for use by scopes which logically lack a source file.

Protected Member Functions

void computeLineCount ()
void requireAvailable ()
void searchForContents ()
File makeSearchFile (File search)

Protected Attributes

BaseExperiment experiment
 The experiment owning this source file.
File filename
 The filename of this source file.
boolean hasBeenSought
 Whether an attempt has been made to locate this source file's contents.
boolean contentsAvailable
 Whether this source file's contents can be located and read.
File resolvedPath
 The actual path to this source file's contents, lazily computed.
int lineCount
 The number of lines in this source file, lazily computed.
boolean istext
String longName
int id
 The ID of the file, to be looked in the experiment's hashtable.

Detailed Description

A reference to a source file in an HPCView experiment.

Definition at line 40 of file FileSystemSourceFile.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.FileSystemSourceFile ( BaseExperiment  experiment,
File  filename,
int  idFile 
)

Member Function Documentation

void edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.computeLineCount (  )  [protected]
String edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.getCompleteFilename (  ) 

Laks: need this function for Eclipse editor ! Get the complete filename when it is available based on resolvedPath.

Returns:
the complete absolute file path

Definition at line 375 of file FileSystemSourceFile.java.

References edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.contentsAvailable, edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.getFilename(), and edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.resolvedPath.

Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.displayFileEditor().

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

Member Data Documentation

The ID of the file, to be looked in the experiment's hashtable.

Definition at line 71 of file FileSystemSourceFile.java.

Referenced by edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.getFileID().

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 type ID of the Source file.

Definition at line 43 of file FileSystemSourceFile.java.


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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1