Follow the links below to browse sample Javadoc for MJ classes and tools, including the MJ Runtime Library.
com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp
contains the following classes and interfaces.
Classes and Interfaces | |
EmpDirectiveNode | Parse node that represents a EMP SC directive. |
EmpDirectiveParser | Parses an EMP SC directive. |
EmpDirectiveState | Manages the processing state for EMP options. |
EMP
SC directive.
public class com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode
extends com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.ScDirectiveNode
Inner Class Option |
Enumerated options for EMP directive, associated with option letter
or character. This class must implement that static method fromLetter
for use with class CmdOptionConcatExpr .
public static final class com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option
|
Indicates column separators should be added to the text.public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option COLUMN_SEPARATOR
Indicates column separators should be added to the text. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option COLUMN_SEPARATOR2
Indicates the text should be struck through. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option STRIKETHRU
Indicates the text should be underscored. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option UNDERSCORE
Indicates the text should be underscored. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option UNDERSCORE2
|
Looks up an instance by the match for the internal representation.
public static com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option fromLetter(char aChar) Retrieves the internal representation.
public char getLetter() public static com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option valueOf(java.lang.String name) public static com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveNode.Option values()
|
Constructors |
Initializes an instance of this class.
public EmpDirectiveNode(com.arsi.mj.maprpt.parser.line.types.AtLine aHostLine, java.util.List someOptionExprs)
|
Methods |
Get options applicable to directive.
public final java.util.EnumSet getOptions()
|
EMP
SC directive.
public class com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveParser
extends com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.ScDirectiveParserBase
implements com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.IScDirectiveParser
Constructors |
public EmpDirectiveParser()
|
Methods |
public com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.ScDirectiveParseResult parseDirective(com.arsi.mj.maprpt.lexer.tokens.IMaprptToken anInitialToken, com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.ScDirectiveLexer aLexer, org.springframework.context.ApplicationContext anAppCtx)
|
EMP
options.
public class com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState
extends java.lang.Object
Inner Class EmpProcessingState |
The potential states.
public static final class com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState
|
Indicates that processing considers all content to be comments.public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState COMMENT
Indicates that processing is done. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState DONE
Indicates that a parsing error has occurred. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState ERROR
Indicates that we are looking for the next option. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState NEXT_OPTION
Indicates that an option was processed. public static final com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState OPTION
|
public static com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState valueOf(java.lang.String name) public static com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState values()
|
Constructors |
public EmpDirectiveState()
|
Methods |
Obtains the option values accumulated during processing.
public java.util.List getProcessedOptions()
|
Obtains the most recent state.
public com.arsi.mj.maprpt.lexer.ptree.cmd.sc.directive.emp.EmpDirectiveState.EmpProcessingState getState()
|
Adjusts the current processing state based on the provided token. If the token corresponds to
an option, it will be parsed and aggregated.
public void processToken(com.arsi.mj.maprpt.lexer.tokens.ICommandToken aToken)
|