|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.core.LpexCommonParser
com.ibm.etools.iseries.editor.ISeriesEditorParser
com.ibm.etools.iseries.editor.ISeriesEditorRPGILEParser
Port of evrilda.c
Nested Class Summary |
---|
Nested classes inherited from class com.ibm.etools.iseries.editor.ISeriesEditorParser |
---|
ISeriesEditorParser.RunnableParseAll |
Field Summary | |
---|---|
protected boolean |
_bInCF
|
protected static ResourceBundle |
_bundle
|
protected ISeriesEditorRPGILESourceViewerConfiguration |
_configuration
|
protected ISeriesEditorRPGILEFreeFormConverter |
_freeFormConverter
|
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
_helpHandler
|
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
_helpMessageHandler
|
protected long |
_lClassComment
|
protected long |
_lClassControl
|
protected long |
_lClassMask
|
protected long |
_lClassProcedure
|
protected long |
_lClassSpace
|
protected long |
_lClassSql
|
protected long |
_lClassSubroutine
|
protected ISeriesEditorRPGILEModel |
_model
|
protected ISeriesEditorRPGILEPrefixProcessor |
_prefixer
|
protected ISeriesEditorRPGILEProgramVerifier |
_programVerifier
|
protected ISeriesEditorRPGILEPrompter |
_prompter
|
protected ISeriesEditorRPGILEFormatLine |
_ruler
|
protected ISeriesEditorRPGILESyntaxChecker |
_syntaxChecker
|
protected ISeriesEditorRPGILETokenizer |
_tokenizer
|
static String |
copyright
|
Fields inherited from class com.ibm.etools.iseries.editor.ISeriesEditorParser |
---|
_action, _bDataElementChanged, _bDebugMode, _bIgnoreDatePreference, _bIgnoreParseExtras, _bIsPrimaryLpexView, _bLocal, _bParseAll, _bParsing, _compileEditManager, _compileErrorMarkerListener, _compileMarker, _compileMarkerList, _compileMessageLevel, _editor, _helpResourceBundle, _iCCSID, _iDataLine, _iFile, _labelProvider, _member, _menuCompile, _menuLanguageHelp, _menuSource, _outlinePage, _strImagePath, _strLocalFileName, _strSpecialChars, _view |
Fields inherited from class com.ibm.lpex.core.LpexCommonParser |
---|
ATTRIBUTES_COMMENT, ATTRIBUTES_COMMENT_KEYWORD, ATTRIBUTES_COMMENT1, ATTRIBUTES_DEFAULT, ATTRIBUTES_DIRECTIVE, ATTRIBUTES_ERROR, ATTRIBUTES_KEYWORD, ATTRIBUTES_KEYWORD1, ATTRIBUTES_LIBRARY, ATTRIBUTES_NONSOURCE, ATTRIBUTES_NUMERAL, ATTRIBUTES_STRING, ATTRIBUTES_STRING1, BACKGROUND_COLOR, CLASS_MESSAGE, LANGUAGE_CCPP, LANGUAGE_CICS, LANGUAGE_CL, LANGUAGE_COBOL, LANGUAGE_DDS, LANGUAGE_DLI, LANGUAGE_FORTRAN, LANGUAGE_HLASM, LANGUAGE_HTML, LANGUAGE_JAVA, LANGUAGE_JCL, LANGUAGE_LISP, LANGUAGE_PERL, LANGUAGE_PLI, LANGUAGE_REXX, LANGUAGE_RPG, LANGUAGE_SABRETALK, LANGUAGE_SQL, LANGUAGE_XMI, LANGUAGE_XML, LANGUAGE_XSL, LEXER_RC_END, LEXER_RC_EOF, LEXER_RC_MORE, LEXER_RC_OK, POPUP_END, POPUP_FILTERVIEW, POPUP_SOURCE, POPUP_TOP, PROTOKEY_EMPTY, STYLE_MESSAGE, STYLE_NAME, view |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG |
---|
_straSQLWords, CMD_SETFIELDS, CMD_SETFIELDSBLANK, CMD_SETFORMATLINETEXT, CMD_SETTABS, COLUMN_C_FREE, COLUMN_C_OPCODE, COLUMN_COMMENT, COLUMN_FACTOR1, COLUMN_FACTOR2, COLUMN_KEYWORDS, COLUMN_PROC_NAME_BEGIN, COLUMN_PROC_NAME_END, COLUMN_PROC_SPEC, COLUMN_SPEC, FIELD_FACTOR1, FIELD_FACTOR2, FIELD_FROM, FIELD_OPCODE, FIELD_TOLENGTH, OPM_COLUMN_FACTOR1 |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsColors |
---|
COLOR_BLACK_WHITE, COLOR_BLUE_WHITE, COLOR_BRIGHTBLUE_WHITE, COLOR_BRIGHTGREEN_WHITE, COLOR_BRIGHTGREY_WHITE, COLOR_BRIGHTPINK_WHITE, COLOR_BRIGHTRED_WHITE, COLOR_BROWN_WHITE, COLOR_CYAN_WHITE, COLOR_ERROR_HIGHLIGHT, COLOR_GREEN_WHITE, COLOR_GREY_WHITE, COLOR_HIGHLIGHT, COLOR_MAGENTA_WHITE, COLOR_PINK_WHITE, COLOR_RED_WHITE, COLOR_WHITE_BRIGHTRED |
Fields inherited from interface com.ibm.lpex.core.LpexDocumentListener |
---|
ELEMENT_INSERTED, ELEMENT_REMOVED, ELEMENT_REPLACED, END_CHANGES, START_CHANGES, TEXT_INSERTED, TEXT_REMOVED, TEXT_REPLACED |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorParser |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorAdapterContributor |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorDebugContributor |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorHelpContributor |
---|
Copyright |
Fields inherited from interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor |
---|
Copyright |
Fields inherited from interface com.ibm.lpex.core.LpexConstants |
---|
HELP_COMMAND_MAP, LPEX_VERSION, MSG_POPUP_ERRORS, MSG_POPUP_EXCLUDESELECTION, MSG_POPUP_FILTERVIEWMENU, MSG_POPUP_INSERTMENU, MSG_POPUP_SELECTEDMENU, MSG_POPUP_SHOWALL, MSG_POPUP_SOURCEMENU, PARSE_PENDING_CHANGE_MASK, PARSE_PENDING_INSERT_MASK, PARSE_PENDING_NEXT_DELETED_MASK, PARSE_PENDING_NEXT_SHOW_DELETED_MASK, PARSE_PENDING_PREV_DELETED_MASK, PARSE_PENDING_PREV_SHOW_DELETED_MASK, PLATFORM_AWT, PLATFORM_SWT, PLATFORM_SWT_KEY, STATUS_FILE_ERRORREADING, STATUS_FILE_INCORRECTENCODING, STATUS_FILE_NOTFOUND, STATUS_FINDTEXT_INVALIDPATTERN, STATUS_FINDTEXT_NOTFOUND, STATUS_FINDTEXT_ONLYOCCURRENCE, STATUS_FINDTEXT_READONLY, STATUS_FINDTEXT_WRAPPED, STATUS_LOCATE_NOSEQUENCETEXT, STATUS_LOCATE_NOTFOUND, STATUS_LOCATE_WRAPPED, STATUS_SAVE_CANCELLED, STATUS_SAVE_FAILED, STATUS_TEXTLIMIT_ENFORCED |
Constructor Summary | |
---|---|
ISeriesEditorRPGILEParser(com.ibm.lpex.core.LpexView view)
Constructor |
Method Summary | |
---|---|
void |
blockMarkWord()
Marks blocks of text for C-Free specifications. |
void |
cleanupToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
removes the next and previous error toolbar buttons |
protected void |
contributeMenuItems(IMenuManager menuRoot,
boolean bPopupMenu)
Adds common menu items to the top of the root menu. |
void |
contributeToMenu(ITextEditor editor,
IMenuManager menuRoot)
Contributes menu bar items. |
void |
contributeToPopupMenu(ITextEditor editor,
IMenuManager menuRoot)
Contributes popup menu bar items. |
void |
contributeToToolBar(ITextEditor editor,
IToolBarManager toolBarManager)
Contributes tool bar items. |
protected void |
createActions(ITextEditor editor)
Creates menubar and toolbar actions. |
protected int |
determineElement(int iElement)
Sets the line class bits, and returns the opcode type. |
protected int |
determineLine(int iLine)
Deprecated. |
void |
documentChanged(com.ibm.lpex.core.LpexView lpexView,
int type,
int line,
int position,
int len)
Used by the parser to determine the element where the compile data is |
void |
finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the ILE RPG Parser |
void |
focusGained(FocusEvent event)
when focus is gained, reset the tabs |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("cs"). |
int |
getElementSpecType(int iElement)
Returns the spec type of an element Port of evfrilda.c, SpecTypeOfLine. |
ISeriesFile |
getFieldFile()
Method getFieldFile. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
ISeriesEditorRPGILEFreeFormConverter |
getFreeFormConverter()
Returns the Conversion tool. |
com.ibm.etools.systems.editor.SystemTextEditorHelpHandler |
getHelpHandler()
Returns the help handler for this parser. |
ISeriesMember |
getIncludeMember()
Subclasses should override if implementing the action ActionOpenInclude |
String |
getLanguage()
Declared in ISystemEditorParser |
protected long |
getLineClassTypes(String strLine,
int iSpecType)
Port of evfrilda.c, ClassOfLine. |
protected int |
getLineSpecType(int iLine)
Deprecated. see getElementSpecType |
protected int |
getLineSpecTypeC(String strLine)
|
protected int |
getLineSpecTypeD(String strLine)
|
protected int |
getLineSpecTypeF(String strLine)
|
protected int |
getLineSpecTypeH(String strLine)
|
protected int |
getLineSpecTypeI(String strLine)
|
protected int |
getLineSpecTypeO(String strLine)
|
protected int |
getLineSpecTypeP(String strLine)
|
LanguageModel |
getModel(boolean bUpdate)
Returns the element tree model for the outline view. |
protected int |
getNextFreeFormBoundaryElement(int iElement)
Finds the start or end free form boundary beginning with the line after the given line. |
protected int |
getNextFreeFormBoundaryLine(int iLine)
Deprecated. see getNextFreeFormBoundaryElement |
String |
getPopupItems(int popupLocation)
56708 Return the popup menu items |
ResourceBundle |
getProfile()
|
IISeriesEditorProgramVerifier |
getProgramVerifier()
Returns the program verifier. |
IISeriesEditorPromptAdapter |
getPromptAdapter()
Method declared on ISeriesEditorParser. |
String |
getPromptFormatLine(int iSpecType)
Returns the format string of the spec type. |
com.ibm.lpex.alef.LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
void |
initializeColors(com.ibm.lpex.core.LpexView view)
Initializes the display colors. |
void |
initializeElementClassTypes()
Registers the element class types with Lpex |
void |
initializeLpexView(com.ibm.lpex.core.LpexView lpexView)
Declared in IISeriesEditorParser Update lpex profile with tabbing support. |
boolean |
isLineDebuggable(int iLine)
Returns true to let the super class know that this parser supports debugging. |
boolean |
isTokenDelimiter(char c)
Query whether the specified character is a token delimiter. |
boolean |
isValidFieldAction()
Method isValidFieldAction. |
boolean |
isValidIncludeAction()
Method isValidIncludeAction. |
protected com.ibm.lpex.core.LpexDocumentLocation |
matchToken(com.ibm.lpex.core.LpexDocumentLocation loc)
Match tokens Matches the token that the location specifies. |
void |
parseElements(int iElementFirst,
int iElementLast,
int iElementCurrent)
Parse range of elements This just calls parseLine(i) for each element, subclasses can handle it differently if they want (e.g. |
void |
parseLine(int iElement)
Port of evfripp.c, LineParse This really parses an element and not a line...... |
protected void |
parseRegion(int iElementFirst,
int iElementLast,
IProgressMonitor progressMonitor)
Parses a contiguous set of Elements given the first and last Element numbers. |
void |
promptRequest()
Called when the shift-F4 key was just pressed, before the focus is given to the prompter. |
void |
terminateParser()
When parsing is disabled, turn off document listeners |
Methods inherited from class com.ibm.lpex.core.LpexCommonParser |
---|
addDocumentMessage, addMessage, addMessage, addMessage, copyDocumentMessages, cursorIndent, defineFilterAction, expandProtoKeyword, getInstallStyleAttributes, getLanguage, getPopupParserItems, getPopupViewItems, getStyleName, getStyles, getTextIndent, getToken, getTokenLocation, indentText, indentText, indentText, isDebuggable, lineComment, lpexView, newLine, openLine, parse, propertySet, removeDocumentMessages, removeMessages, removeMessages, resetParser, setProperty, setStyle, splitLine, styleString, tokenBegin, tokenEnd, totalParse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String copyright
protected static ResourceBundle _bundle
protected ISeriesEditorRPGILETokenizer _tokenizer
protected ISeriesEditorRPGILEFormatLine _ruler
protected ISeriesEditorRPGILEPrefixProcessor _prefixer
protected ISeriesEditorRPGILEProgramVerifier _programVerifier
protected ISeriesEditorRPGILEPrompter _prompter
protected ISeriesEditorRPGILESourceViewerConfiguration _configuration
protected ISeriesEditorRPGILESyntaxChecker _syntaxChecker
protected ISeriesEditorRPGILEFreeFormConverter _freeFormConverter
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler _helpHandler
protected com.ibm.etools.systems.editor.SystemTextEditorHelpHandler _helpMessageHandler
protected boolean _bInCF
protected ISeriesEditorRPGILEModel _model
protected long _lClassComment
protected long _lClassControl
protected long _lClassMask
protected long _lClassProcedure
protected long _lClassSpace
protected long _lClassSql
protected long _lClassSubroutine
Constructor Detail |
public ISeriesEditorRPGILEParser(com.ibm.lpex.core.LpexView view)
Method Detail |
public void blockMarkWord()
public boolean isTokenDelimiter(char c)
c
-
protected void contributeMenuItems(IMenuManager menuRoot, boolean bPopupMenu)
public void contributeToMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToMenu
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
contributeToMenu
in class ISeriesEditorParser
public void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToPopupMenu
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
contributeToToolBar
in class ISeriesEditorParser
public void cleanupToolBar(ITextEditor editor, IToolBarManager toolBarManager)
ISeriesEditorParser
subclasses which add other toolbar buttons should subclass and call super
cleanupToolBar
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
cleanupToolBar
in class ISeriesEditorParser
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
protected void createActions(ITextEditor editor)
public void documentChanged(com.ibm.lpex.core.LpexView lpexView, int type, int line, int position, int len)
documentChanged
in interface com.ibm.lpex.core.LpexDocumentListener
LpexDocumentListener.documentChanged(LpexView, int, int, int, int)
protected int determineLine(int iLine)
protected int determineElement(int iElement)
public void finishedSaving(ITextEditor editor)
finishedSaving
in interface com.ibm.etools.systems.editor.ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)
public void focusGained(FocusEvent event)
focusGained
in interface FocusListener
focusGained
in class ISeriesEditorParser
FocusListener.focusGained(FocusEvent)
public String getCommentStyleCharacters()
public ISeriesFile getFieldFile()
getFieldFile
in interface IISeriesEditorParser
getFieldFile
in class ISeriesEditorParser
IISeriesEditorParser.getFieldFile()
public IISeriesEditorFormatLine getFormatLine()
getFormatLine
in interface IISeriesEditorParser
getFormatLine
in class ISeriesEditorParser
public com.ibm.etools.systems.editor.SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler
in interface IISeriesEditorParser
public ISeriesMember getIncludeMember()
ISeriesEditorParser
getIncludeMember
in interface IISeriesEditorParser
getIncludeMember
in class ISeriesEditorParser
IISeriesEditorParser.getIncludeMember()
public String getLanguage()
getLanguage
in interface com.ibm.etools.systems.editor.ISystemTextEditorParser
getLanguage
in class ISeriesEditorParser
protected long getLineClassTypes(String strLine, int iSpecType)
protected int getLineSpecType(int iLine)
public int getElementSpecType(int iElement)
protected int getLineSpecTypeC(String strLine)
protected int getLineSpecTypeD(String strLine)
protected int getLineSpecTypeF(String strLine)
protected int getLineSpecTypeH(String strLine)
protected int getLineSpecTypeI(String strLine)
protected int getLineSpecTypeO(String strLine)
protected int getLineSpecTypeP(String strLine)
public LanguageModel getModel(boolean bUpdate)
getModel
in interface IISeriesEditorParser
getModel
in class ISeriesEditorParser
protected int getNextFreeFormBoundaryLine(int iLine)
protected int getNextFreeFormBoundaryElement(int iElement)
public String getPopupItems(int popupLocation)
getPopupItems
in class ISeriesEditorParser
LpexCommonParser.getPopupItems(int)
public ResourceBundle getProfile()
public IISeriesEditorProgramVerifier getProgramVerifier()
getProgramVerifier
in interface IISeriesEditorParser
getProgramVerifier
in class ISeriesEditorParser
public IISeriesEditorPromptAdapter getPromptAdapter()
getPromptAdapter
in interface IISeriesEditorParser
getPromptAdapter
in class ISeriesEditorParser
public String getPromptFormatLine(int iSpecType)
public com.ibm.lpex.alef.LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration
in interface com.ibm.etools.systems.editor.ISystemTextEditorSourceViewerConfigurationContributor
getSourceViewerConfiguration
in class ISeriesEditorParser
public IISeriesEditorSyntaxChecker getSyntaxChecker()
getSyntaxChecker
in interface IISeriesEditorParser
getSyntaxChecker
in class ISeriesEditorParser
public ISeriesEditorRPGILEFreeFormConverter getFreeFormConverter()
public void initializeElementClassTypes()
public void initializeLpexView(com.ibm.lpex.core.LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
initializeLpexView
in class ISeriesEditorParser
public void initializeColors(com.ibm.lpex.core.LpexView view)
protected com.ibm.lpex.core.LpexDocumentLocation matchToken(com.ibm.lpex.core.LpexDocumentLocation loc)
loc
- the location of the token to match
LpexCommonParser.matchToken(LpexDocumentLocation)
public boolean isValidFieldAction()
isValidFieldAction
in interface IISeriesEditorParser
isValidFieldAction
in class ISeriesEditorParser
IISeriesEditorParser.isValidFieldAction()
public boolean isValidIncludeAction()
isValidIncludeAction
in interface IISeriesEditorParser
isValidIncludeAction
in class ISeriesEditorParser
IISeriesEditorParser.isValidIncludeAction()
public boolean isLineDebuggable(int iLine)
isLineDebuggable
in interface com.ibm.etools.systems.editor.ISystemTextEditorDebugContributor
public void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
ISeriesEditorParser
parseElements
in class ISeriesEditorParser
ISeriesEditorParser.parseElements(int, int, int)
public void parseLine(int iElement)
parseLine
in class ISeriesEditorParser
protected void parseRegion(int iElementFirst, int iElementLast, IProgressMonitor progressMonitor)
parseRegion
in class ISeriesEditorParser
public void promptRequest()
promptRequest
in class ISeriesEditorParser
public void terminateParser()
terminateParser
in class ISeriesEditorParser
LpexCommonParser.terminateParser()
|
iSeries Remote Systems v6.0.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |