edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder Class Reference

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

List of all members.

Classes

class  StatementRange

Public Member Functions

 BaseExperimentBuilder (BaseExperiment experiment, String defaultName, IUserData< String, String > userData)
void beginElement (String element, String[] attributes, String[] values)
void endElement (String element)
void begin ()
void content (String s)
void end ()
void setParser (Parser parser)
int getParseOK ()
int getParseErrorLineNumber ()
void error (int lineNumber)
void error ()
void Assert (boolean predicate)

Static Public Attributes

static int PARSER_OK = 0
static int PARSER_FAIL = 1
static int PARSER_OLDXML = 2

Protected Member Functions

boolean isCallingContextTree ()
void saveTokenContext (TokenXML current)
void begin_SecData (String[] attributes, String[] values)
String getAttributeByName (String name, String[] attributes, String[] values)
void endScope ()
Scope getCurrentScope ()
SourceFile getOrCreateSourceFile (String fileLine, int keyFile)

Protected Attributes

String defaultName
 The default name for the experiment, in case none is found by the parser.
ExperimentConfiguration configuration
 The parsed configuration.
Scope rootScope
Scope viewRootScope []
BaseExperiment experiment
 The experiment to own parsed objects.
Stack< ScopescopeStack
 A stack to keep track of scope nesting while parsing.
Stack< SourceFilesrcFileStack
 The current source file while parsing.
Token2.TokenXML previousToken = TokenXML.T_INVALID_ELEMENT_NAME
Token2.TokenXML elemInfoState = TokenXML.T_INVALID_ELEMENT_NAME
Parser parser
 The parser which owns this builder.
int parseOK
 Whether parsing was successful.
int parseErrorLineNumber
 The line number of the first parse error in the file.

Static Protected Attributes

static final String LINE_ATTRIBUTE = "l"
static final String NAME_ATTRIBUTE = "n"
static final String FILENAME_ATTRIBUTE = "f"
static final String VALUE_ATTRIBUTE = "v"
static final String ID_ATTRIBUTE = "i"

Private Member Functions

SourceFile getSourceFile (String fileIdString)
void do_HPCTOOLKIT (String[] attributes, String[] values)
void do_Header (String[] attributes, String[] values)
void do_Info ()
void do_TITLE (String[] attributes, String[] values)
void do_LoadModule (String[] attributes, String[] values)
void do_File (String[] attributes, String[] values)
void begin_LM (String[] attributes, String[] values)
void begin_F (String[] attributes, String[] values)
void begin_PF (String[] attributes, String[] values)
int getCallSiteID (LineScope ls, ProcedureScope cs)
void begin_A (String[] attributes, String[] values)
void do_Procedure (String[] attributes, String[] values)
void begin_L (String[] attributes, String[] values)
void end_L ()
void begin_S (String[] attributes, String[] values)
void begin_S_internal (String[] attributes, String[] values, boolean isCallSite)
void end_S ()
void begin_CALLSITE (String[] attributes, String[] values)
void end_CALLSITE ()
void end_PGM ()
void end_LM ()
void end_F ()
void end_PF ()
void end_A ()
void begin_TraceDBTable (String[] attributes, String[] values)
void end_TraceDBTable ()
void do_TraceDB (String[] attributes, String[] values)
void beginScope (Scope scope)
String getProcedureName (String sProcIndex)

Private Attributes

boolean csviewer
final IUserData< String, String > userData
HashMap< Integer, String > hashProcedureTable
HashMap< Integer, LoadModuleScopehashLoadModuleTable
HashMap< Integer, SourceFilehashSourceFileTable
HashMap< Integer, ScopehashCallSiteTable
int current_cs_id = Integer.MAX_VALUE - 1

Static Private Attributes

static final String PROCEDURE_UNKNOWN = "unknown procedure"

Detailed Description

Definition at line 40 of file BaseExperimentBuilder.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.BaseExperimentBuilder ( BaseExperiment  experiment,
String  defaultName,
IUserData< String, String >  userData 
)

Member Function Documentation

void edu.rice.cs.hpc.data.experiment.xml.Builder.Assert ( boolean  predicate  )  [inherited]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin (  )  [virtual]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_A ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_CALLSITE ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_F ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_L ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_LM ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_PF ( String[]  attributes,
String[]  values 
) [private]

Definition at line 507 of file BaseExperimentBuilder.java.

References edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginScope(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.experiment, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.FILENAME_ATTRIBUTE, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getCallSiteID(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.StatementRange.getFirstLine(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.StatementRange.getLastLine(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getOrCreateSourceFile(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getProcedureName(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.hashLoadModuleTable, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.hashSourceFileTable, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.ID_ATTRIBUTE, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.LINE_ATTRIBUTE, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.NAME_ATTRIBUTE, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.PROCEDURE_UNKNOWN, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.scopeStack, edu.rice.cs.hpc.data.experiment.scope.Scope.setCpid(), edu.rice.cs.hpc.data.experiment.source.SourceFile.setIsText(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.srcFileStack, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.userData, and edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.VALUE_ATTRIBUTE.

Referenced by edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginElement().

void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_S ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_S_internal ( String[]  attributes,
String[]  values,
boolean  isCallSite 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_SecData ( String[]  attributes,
String[]  values 
) [protected]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_TraceDBTable ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginElement ( String  element,
String[]  attributes,
String[]  values 
) [virtual]

Implements edu.rice.cs.hpc.data.experiment.xml.Builder.

Reimplemented in edu.rice.cs.hpc.data.experiment.xml.ExperimentBuilder2.

Definition at line 150 of file BaseExperimentBuilder.java.

References edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_A(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_CALLSITE(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_F(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_L(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_LM(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_PF(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_S(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_SecData(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.begin_TraceDBTable(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.csviewer, edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_File(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Header(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_HPCTOOLKIT(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Info(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_LoadModule(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Procedure(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_TITLE(), edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_TraceDB(), and edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.saveTokenContext().

void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.beginScope ( Scope  scope  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.content ( String  s  )  [virtual]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_File ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Header ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_HPCTOOLKIT ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Info (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_LoadModule ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_Procedure ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_TITLE ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.do_TraceDB ( String[]  attributes,
String[]  values 
) [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end (  )  [virtual]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_A (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_CALLSITE (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_F (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_L (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_LM (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_PF (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_PGM (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_S (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.end_TraceDBTable (  )  [private]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.endElement ( String  element  )  [virtual]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.endScope (  )  [protected]
void edu.rice.cs.hpc.data.experiment.xml.Builder.error (  )  [inherited]
void edu.rice.cs.hpc.data.experiment.xml.Builder.error ( int  lineNumber  )  [inherited]
String edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getAttributeByName ( String  name,
String[]  attributes,
String[]  values 
) [protected]
int edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getCallSiteID ( LineScope  ls,
ProcedureScope  cs 
) [private]
Scope edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getCurrentScope (  )  [protected]
SourceFile edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getOrCreateSourceFile ( String  fileLine,
int  keyFile 
) [protected]
int edu.rice.cs.hpc.data.experiment.xml.Builder.getParseErrorLineNumber (  )  [inherited]
int edu.rice.cs.hpc.data.experiment.xml.Builder.getParseOK (  )  [inherited]
String edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getProcedureName ( String  sProcIndex  )  [private]
SourceFile edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.getSourceFile ( String  fileIdString  )  [private]
boolean edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.isCallingContextTree (  )  [protected]
void edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.saveTokenContext ( TokenXML  current  )  [protected]
void edu.rice.cs.hpc.data.experiment.xml.Builder.setParser ( Parser  parser  )  [inherited]

Definition at line 83 of file Builder.java.

Referenced by edu.rice.cs.hpc.data.experiment.xml.Parser.Parser().


Member Data Documentation

The default name for the experiment, in case none is found by the parser.

Definition at line 52 of file BaseExperimentBuilder.java.

Whether parsing was successful.

Definition at line 46 of file Builder.java.

Referenced by edu.rice.cs.hpc.data.experiment.xml.Builder.error(), and edu.rice.cs.hpc.data.experiment.xml.Builder.getParseOK().

Definition at line 39 of file Builder.java.

Definition at line 38 of file Builder.java.

Definition at line 40 of file Builder.java.

final String edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.PROCEDURE_UNKNOWN = "unknown procedure" [static, private]
final IUserData<String, String> edu.rice.cs.hpc.data.experiment.xml.BaseExperimentBuilder.userData [private]

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

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1