Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.util.evfparser
Class QSYSEventsFileMapTable

java.lang.Object
  extended by com.ibm.etools.iseries.util.evfparser.QSYSEventsFileMapTable

public class QSYSEventsFileMapTable
extends Object


Constructor Summary
QSYSEventsFileMapTable()
           
 
Method Summary
 void addExpansionRecord(QSYSEventsFileExpansionRecord record)
           
 void addFileInformation(QSYSEventsFileFileIDRecord record)
          Adds file information to the map
 void addFileToFileTable(QSYSEventsFileFileIDRecord record)
          Adds file information only to the file table.
 void closeFile(QSYSEventsFileFileEndRecord record)
          Sets the correct bounds for the files in the map that were added using AddFileInformation().
 void finalizeMap()
           
 Set getAllFileIDRecords()
          Get all file locations.
 QSYSEventsFileFileIDRecord getFileIDRecordForFileID(String ID)
          Returns the QSYSEventsFileFileIDRecord corresponding to a file ID
 String getFileLocationForFileID(String ID)
           
 void modifyErrorInformation(QSYSEventsFileErrorInformationRecord record)
          Modifies the information contained in the Error record based on the available map.
 String toString()
          Prints the map
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

QSYSEventsFileMapTable

public QSYSEventsFileMapTable()
Method Detail

addFileInformation

public void addFileInformation(QSYSEventsFileFileIDRecord record)
                        throws SecondLevelHelpException
Adds file information to the map

Parameters:
record - The File ID record
Throws:
SecondLevelHelpException

addFileToFileTable

public void addFileToFileTable(QSYSEventsFileFileIDRecord record)
Adds file information only to the file table. This is useful for processing the compiler (000) processor block, since we don't need to keep track of line mappings and FileIDLinesPair pairings.

Parameters:
record - The File ID record

closeFile

public void closeFile(QSYSEventsFileFileEndRecord record)
               throws SecondLevelHelpException
Sets the correct bounds for the files in the map that were added using AddFileInformation().

Parameters:
record - The FileEnd record that contains the number of lines in the source.
Throws:
SecondLevelHelpException

addExpansionRecord

public void addExpansionRecord(QSYSEventsFileExpansionRecord record)

getFileIDRecordForFileID

public QSYSEventsFileFileIDRecord getFileIDRecordForFileID(String ID)
Returns the QSYSEventsFileFileIDRecord corresponding to a file ID

Parameters:
ID - - the ID of the file to look for
Returns:
- the QSYSEventsFileFileIDRecord corresponding to the file ID if it exists in the table, null otherwise

getFileLocationForFileID

public String getFileLocationForFileID(String ID)

modifyErrorInformation

public void modifyErrorInformation(QSYSEventsFileErrorInformationRecord record)
                            throws SecondLevelHelpException
Modifies the information contained in the Error record based on the available map.

Parameters:
record - the Error record to be modified.
Throws:
SecondLevelHelpException

finalizeMap

public void finalizeMap()
                 throws SecondLevelHelpException
Throws:
SecondLevelHelpException

toString

public String toString()
Prints the map

Overrides:
toString in class Object

getAllFileIDRecords

public Set getAllFileIDRecords()
Get all file locations.


Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.