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

 

Package: com.arsi.mj.maprpt.lexer.tokens.content  previous next contents

Package com.arsi.mj.maprpt.lexer.tokens.content contains the following classes and interfaces.
Classes and Interfaces
ColumnMetadataContent Special content token for parsing column headings, bundling one or more asterisk lines where a column mask was detected, including column names and sizes that were extracted as column metadata.
ContentTokenBase Base class that provides for common attributes of content tokens, all "true" concrete content token implementations derive from this class.
TextContent A token that represents lines of textual content within the report (e.g., output area).
TokenReplacementContent Special content token for parsing DEFINEd constants from colon lines.
TupleContent Special content token for parsing Mapper lines that are actually data tuples (rows of columnar data preceded by column headings), bundling the lines as tuples whose column values have been parsed.

Class: ColumnMetadataContent   next package

Special content token for parsing column headings, bundling one or more asterisk lines where a column mask was detected, including column names and sizes that were extracted as column metadata.
Treat this class as "thread-safe", since it is immutable once created.
public class com.arsi.mj.maprpt.lexer.tokens.content.ColumnMetadataContent
  extends java.lang.Object
  implements com.arsi.mj.maprpt.lexer.tokens.IContentToken
Constructors
public ColumnMetadataContent(com.arsi.mj.maprpt.parser.column.MaprptColumnMetadata aColumnMetadata)
Methods
public com.arsi.mj.maprpt.parser.column.MaprptColumnMetadata getColumnMetadata()

Class: ContentTokenBase   previous next package

Base class that provides for common attributes of content tokens, all "true" concrete content token implementations derive from this class.
Treat this class as essentially "thread-safe", since it's state is intended to be immutable once created (the method getContentLines return a mutable list, but alteration of list by caller is not expected behavior).
public abstract class com.arsi.mj.maprpt.lexer.tokens.content.ContentTokenBase
  extends java.lang.Object
Constructors
protected ContentTokenBase(java.util.List someContentLines)
protected ContentTokenBase(com.arsi.mj.maprpt.parser.line.types.MaprptLine aContentLine)
Methods
public final java.util.List getContentLines()

Class: TextContent   previous next package

A token that represents lines of textual content within the report (e.g., output area). The text lines stored by this token still require parsing for substitution of variables (e.g., <myvar>) and :DEFINEd constants.
Treat this class as "thread-safe" since it is immutable once created.
public class com.arsi.mj.maprpt.lexer.tokens.content.TextContent
  extends com.arsi.mj.maprpt.lexer.tokens.content.ContentTokenBase
  implements com.arsi.mj.maprpt.lexer.tokens.IContentToken
Constructors
Public ctor for initializing an instance of this class. Only this ctor is supported so a text content instance may only contain a single Mapper report line, which is important for handling jumps in a Mapper RUN correctly. If multiple lines are stored by a text content instance, it becomes possible to jump into the middle of those lines, which is problematic.
Parameters:
aContentLine - Mapper report line containing text (as opposed to a command or data tuple).
public TextContent(com.arsi.mj.maprpt.parser.line.types.MaprptLine aContentLine)

Class: TokenReplacementContent   previous next package

Special content token for parsing DEFINEd constants from colon lines. Colon line may contain plain old text content if the colon line is not a DEFINE or INCLUDE, this it qualifies as a content token.
However, if the colon line contains a parent, related DEFINEd constant, we need to return the parent DEFINE as a content token so child DEFINEs on subsequent colon lines are properly related. This is the purpose of this class.
Treat this class as "thread-safe", since it is immutable once created.
public class com.arsi.mj.maprpt.lexer.tokens.content.TokenReplacementContent
  extends java.lang.Object
  implements com.arsi.mj.maprpt.lexer.tokens.IContentToken
Constructors
public TokenReplacementContent(com.arsi.mj.maprpt.lexer.TokenReplacementContext.TokenReplacement aTokenRepl)
Methods
public com.arsi.mj.maprpt.lexer.TokenReplacementContext.TokenReplacement getTokenReplacement()

Class: TupleContent   previous package

Special content token for parsing Mapper lines that are actually data tuples (rows of columnar data preceded by column headings), bundling the lines as tuples whose column values have been parsed.
Treat this class as "thread-safe", since it is immutable once created.
public class com.arsi.mj.maprpt.lexer.tokens.content.TupleContent
  extends java.lang.Object
  implements com.arsi.mj.maprpt.lexer.tokens.IContentToken
Constructors
public TupleContent(java.util.List someTuples)
Methods
public final java.util.List getTuples()