|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.lpex.cc.LpexCicsParserTokenManager com.ibm.lpex.cics.CicsLexer
public final class CicsLexer
CICS lexer for various document parsers. CicsLexer is currently used by the C/C++, COBOL, and PL/I parsers.
Field Summary |
---|
Fields inherited from class com.ibm.lpex.cc.LpexCicsParserTokenManager |
---|
curChar, jjnewLexState, jjstrLiteralImages, lexStateNames |
Constructor Summary | |
---|---|
CicsLexer(LpexCharStream charStream,
String hostLanguage,
CicsLexerStyles styles,
CicsLexerClasses classes)
Constructor. |
Method Summary | |
---|---|
void |
initialize()
Initializes the CICS lexer. |
int |
processToken()
Retrieves and processes the next CICS token. |
void |
reinitialize()
Reinitializes the CICS lexer. |
protected void |
setComment(Token t)
Sets the style and element class(es) for comments. |
void |
setTaskTags(String[] taskTags)
Sets the comment task tags to use. |
Methods inherited from class com.ibm.lpex.cc.LpexCicsParserTokenManager |
---|
getCurLexState, getNextToken, ReInit, ReInit, SwitchTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CicsLexer(LpexCharStream charStream, String hostLanguage, CicsLexerStyles styles, CicsLexerClasses classes)
charStream
- LPEX input character streamhostLanguage
- host language (e.g., LpexCommonParser.LANGUAGE_CCPP)styles
- style characters to use (predefined by the host parser)classes
- element classes to use (predefined by the host parser)Method Detail |
---|
public void initialize()
initialize
in interface LpexSubparser
public void reinitialize()
reinitialize
in interface LpexSubparser
public void setTaskTags(String[] taskTags)
setTaskTags
in interface ICicsLexer
public int processToken()
processToken
in interface LpexSubparser
LEXER_RC_OK
,
LEXER_RC_EOF
[+LEXER_RC_MORE
],
LEXER_RC_END
protected void setComment(Token t)
Does the real work for the extended dummy in LpexCicsParser.jj.
setComment
in class LpexCicsParserTokenManager
t
- special token (token.beginLine, token.beginColumn,
token.endLine, and token.endColumn identify its location: ONE-based
elements and positions in the associated document view)
|
LPEX 4.4.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |