Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.

 

Package: com.arsi.mj.maprpt.parser  previous next contents

Package com.arsi.mj.maprpt.parser contains the following classes and interfaces.
Classes and Interfaces
MaprptParser Parses a Mapper report into lines of various types (e.g., at-sign line, period line, asterisk line).
MaprptParseUnit Stores report lines that are the basic building blocks of Mapper (e.g., at-sign line, period line, asterisk line) that result from parsing a Mapper report.

Class: MaprptParser   next package

Parses a Mapper report into lines of various types (e.g., at-sign line, period line, asterisk line). These report lines are the basic building blocks of Mapper.
Treat this class as "thread-safe" since it is immutable once created.
public class com.arsi.mj.maprpt.parser.MaprptParser
  extends java.lang.Object
Constructors
public MaprptParser()
Methods
Parse input into Mapper report lines of various types (e.g., at-sign line, period line, asterisk line).
Parameters:
aReader - Reads lines from Mapper report file, keeping track of line number.
Throws:
MJTranslateException - if an error occurs while parsing.
Returns:
a parse unit of categorized Mapper report lines.
public com.arsi.mj.maprpt.parser.MaprptParseUnit parse(com.arsi.mj.maprpt.parser.line.LineNumberPushbackReader aReader)
    throws com.arsi.mj.MJTranslateException

Class: MaprptParseUnit   previous package

Stores report lines that are the basic building blocks of Mapper (e.g., at-sign line, period line, asterisk line) that result from parsing a Mapper report.
Treat this class as essentially "thread-safe", since it's state is intended to be immutable once created (e.g., the method getParsedLinesIncludingPragmas returns a mutable list, but alteration of list by caller is not expected behavior).
public class com.arsi.mj.maprpt.parser.MaprptParseUnit
  extends java.lang.Object
Methods
Get "raw" lines parsed from a Mapper report, including lines that contain pragmas. Most MJ processing should use getParsedLinesWithoutPragmas instead.
Returns:
"raw" lines, including lines that contain pragmas.
public java.util.List getParsedLinesIncludingPragmas()
Get report lines that have been filtered to exclude pragma lines, and processed to adjust line numbers and associate pragma lines with applicable report lines.
Returns:
report lines where pragmas have been processed and filtered.
public java.util.List getParsedLinesWithoutPragmas()
Make and set aliased line number(s) that correlate to Mapper report where source line originated based on line number from original report. This works for code extracted from the original report. For example, if lines 10 to 12 are extracted as a code snippet from Mapper report 3B10 and parsed as lines 1 to 3 in the snippet, calling this method with the original line number 10 creates line number aliases of 10 through 12.
Parameters:
anOriginalLineNum - line number in original Mapper report where first raw line in this parse unit occurred in the original report.
public void makeLineNumberAliases(int anOriginalLineNum)