|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object LpexCommonParser com.ibm.etools.iseries.parsers.ISeriesEditorParser com.ibm.etools.iseries.parsers.ISeriesEditorRPGILEParser
public class ISeriesEditorRPGILEParser
Port of evrilda.c
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser |
---|
ISeriesEditorParser.DataLineMarkListener, ISeriesEditorParser.RunnableParseAll |
Fields inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorParser |
---|
_action, _bDataElementChanged, _bDebugMode, _bFromStylePreview, _bIgnoreParseExtras, _bIsPrimaryLpexView, _bLocal, _bOutlineViewNeedsResetting, _bParseAll, _bParsing, _compileEditManager, _compileErrorMarkerListener, _compileMarkNames, _dataLineMarkID, _dataLineMarkListener, _editor, _helpResourceBundle, _iCCSID, _iFile, _labelProvider, _member, _menuLanguageHelp, _menuSource, _outlinePage, _strImagePath, _strLocalFileName, _strSpecialChars, _view, DATA_LINE |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG |
---|
_straSQLWords, _straSQLWordsWithComment, 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.parsers.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 |
Constructor Summary | |
---|---|
ISeriesEditorRPGILEParser(LpexView view)
Constructor |
Method Summary | |
---|---|
void |
blockMarkWord()
Marks blocks of text for C-Free specifications. |
protected int |
checkForFixFormType(int iElement,
String strElement,
boolean needToUpdateClasses)
|
void |
cleanupMenu(ITextEditor editor,
IMenuManager menuManager)
Removes the Source and Compile menu items |
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. |
int |
determineElement(int iElement)
Sets the line class bits, and returns the opcode type. |
protected int |
determineElement(int iElement,
boolean needToSetCFreeAndSQLClasses)
Sets the line class bits, and returns the opcode type. |
protected int |
determineLine(int iLine)
Deprecated. |
void |
documentChanged(LpexView lpexView,
int type,
int line,
int position,
int len)
Used by the parser to determine the element where the compile data is |
void |
doRefresh()
Remove block nesting in the prefix area |
void |
finishedSaving(ITextEditor editor)
Method finishedSaving Does nothing for the ILE RPG Parser |
void |
focusGained(FocusEvent event)
when focus is gained, reset the tabs |
long |
get_lClassProcedure()
|
long |
get_lClassSubroutine()
|
int |
getBeginCFREE(int iElement)
retrives the begin of Free from statement |
protected String |
getCFreeString(String text)
Removes all irrelevant parts to a c free string (ie columns 1-7 |
String |
getCommentStyleCharacters()
Returns the style characters used for styling comments ("cs"). |
int |
getElementSpecType(int iElement)
Returns the spec type of an element. |
int |
getElementSpecType(int iElement,
boolean needToTagLineClasses)
Returns the spec type of an element D62355 - the flag needToTagLineClasses to determine if we need to update the CFree or CFreeSQL related tabs for in the range of line for this statement. |
protected int |
getElementSpecTypeAndUpdateClasses(int iElement)
Returns the spec type of an element D62355 - the flag needToSetSQLType to determine if we need to update the CFreeSQL related tabs for in the range of line for this SQL statement. |
protected int |
getElementSpecTypeOnly(int iElement)
Returns the spec type of an element D62355 - the flag needToSetSQLType to determine if we need to update the CFreeSQL related tabs for in the range of line for this SQL statement. |
protected int |
getElementSpecTypeWhenFileLoading(int iElement)
Returns the spec type of an element D62355 - the flag needToSetSQLType to determine if we need to update the CFreeSQL related tabs for in the range of line for this SQL statement. |
IQSYSFile |
getFieldFile()
Method getFieldFile. |
LpexFieldsProvider |
getFieldsProvider()
Retrieves the fields provided for the parser. |
IISeriesEditorFormatLine |
getFormatLine()
Returns the format line ruler. |
ISeriesEditorRPGILEFreeFormConverter |
getFreeFormConverter()
Returns the Conversion tool. |
SystemTextEditorHelpHandler |
getHelpHandler()
Returns the help handler for this parser. |
IQSYSMember |
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. |
ISeriesEditorRPGILEPrompter |
getPrompter()
|
String |
getPromptFormatLine(int iSpecType)
Returns the format string of the spec type. |
LpexSourceViewerConfiguration |
getSourceViewerConfiguration()
Returns the source viewer configuration. |
int |
getStatementEndElement(int iElement)
retrives the statement end element number. |
protected int |
getStatementEndElement(int iElement,
int iSpecType)
retrives the statement end element number. |
int |
getStatementStartElement(int iElement)
retrives the statement start element number. |
protected int |
getStatementStartElement(int iElement,
int iSpecType)
retrives the statement start element number. |
IISeriesEditorSyntaxChecker |
getSyntaxChecker()
Returns the syntax checker. |
void |
initializeColors(LpexView view)
Initializes the display colors. |
void |
initializeElementClassTypes()
Registers the element class types with Lpex |
void |
initializeLpexView(LpexView lpexView)
Declared in IISeriesEditorParser Update lpex profile with tabbing support. |
protected void |
initParser()
initialize parser |
protected boolean |
isElementEndingInSemicolon(int iElement)
Determines whether or not an element ends in a semocolon, after comments have been stripped. |
protected boolean |
isElementHaveBeginStatement(int iElement)
Determines whether or not the element contains a BEGIN statement, after blanks have been stripped. |
protected boolean |
isElementHaveEndStatement(int iElement)
Determines whether or not the element contains an END statement, after blanks have been stripped. |
protected boolean |
isElementStartingWithSlash(int iElement)
Determines whether or not an element starts with a / (slash), but isn't a comment line. |
protected boolean |
isElementStartSQLStatement(int iElement)
Determines whether or not an element has an EXEC SQL statement, assuming C free format, after comments have been stripped. |
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 LpexDocumentLocation |
matchToken(LpexDocumentLocation loc)
Match tokens Matches the token that the location specifies. |
boolean |
modelBuiltAsynchronous()
Whether or not the parser supports building of the model asynchronously. |
void |
parseElement(int iElement)
Declared in LpexCommonParser. |
protected void |
parseElementAfterDelete(int iElement)
This method will handle the case for parseElement, where its previous element is deleted. |
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. |
protected int |
parseRegionForElement(int iElement,
int iSpecType)
D62355 - This method will do the parse region job for one particular element The type of this element is known already. |
protected void |
postParseLineCleanUp(int iElement,
int iSpecType)
|
protected void |
printLineClasses(int iElementFirst,
int iElementLast)
|
void |
promptRequest()
Called when the shift-F4 key was just pressed, before the focus is given to the prompter. |
protected String |
stripComments(String text)
Removes the comments from a supplied string. |
protected boolean |
supportsOutlineView()
Returns false by default. |
void |
terminateParser()
When parsing is disabled, turn off document listeners |
protected boolean |
withinContextOfCFree(int iElement)
This method check if the input line is within the context of CFree D62355 |
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 static final IPreferenceStore _store
protected ISeriesEditorRPGILETokenizer _tokenizer
protected ISeriesEditorRPGILEFormatLine _ruler
protected ISeriesEditorRPGILEPrefixProcessor _prefixer
protected IBMiEditorRPGILEProgramVerifier _programVerifier
protected ISeriesEditorRPGILEPrompter _prompter
protected ISeriesEditorRPGILESourceViewerConfiguration _configuration
public ISeriesEditorRPGILESyntaxChecker _syntaxChecker
protected ISeriesEditorRPGILEFreeFormConverter _freeFormConverter
protected SystemTextEditorHelpHandler _helpHandler
protected SystemTextEditorHelpHandler _helpMessageHandler
protected boolean _bInCF
protected boolean _bInCFSQL
protected ISeriesEditorRPGILEModel _model
protected int _lineClassChangedFlag
protected boolean _alreadyParseAll
protected boolean _needToAutoSyntaxCheck
protected long _lClassComment
protected long _lClassControl
protected long _lClassMask
protected long _lClassProcedure
protected long _lClassSpace
protected long _lClassSql
protected long _lClassSubroutine
protected long _lClassForwardLink
protected long _lClassBackwardLink
protected long _lClassError
protected long _lClass_CFreeDirective
protected long _lClass_EndCFreeDirective
protected long _lClass_CFree
protected long _lClass_FixSQLStart
protected long _lClass_FixSQLEnd
Constructor Detail |
---|
public ISeriesEditorRPGILEParser(LpexView view)
Method Detail |
---|
protected void initParser()
initParser
in class ISeriesEditorParser
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 ISystemTextEditorContextContributor
contributeToMenu
in class ISeriesEditorParser
public void contributeToPopupMenu(ITextEditor editor, IMenuManager menuRoot)
contributeToPopupMenu
in interface ISystemTextEditorContextContributor
public void contributeToToolBar(ITextEditor editor, IToolBarManager toolBarManager)
contributeToToolBar
in interface 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 ISystemTextEditorContextContributor
cleanupToolBar
in class ISeriesEditorParser
ISystemTextEditorContextContributor.cleanupToolBar(ITextEditor, IToolBarManager)
protected void createActions(ITextEditor editor)
public void documentChanged(LpexView lpexView, int type, int line, int position, int len)
com.ibm.lpex.core.LpexDocumentListener#documentChanged(LpexView, int, int, int, int)
protected int determineLine(int iLine)
public int determineElement(int iElement)
protected int determineElement(int iElement, boolean needToSetCFreeAndSQLClasses)
public void finishedSaving(ITextEditor editor)
finishedSaving
in interface ISystemTextEditorContextContributor
ISystemTextEditorContextContributor.finishedSaving(ITextEditor)
public void focusGained(FocusEvent event)
focusGained
in class ISeriesEditorParser
FocusListener
public String getCommentStyleCharacters()
public IQSYSFile getFieldFile()
getFieldFile
in interface IISeriesEditorParser
getFieldFile
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getFieldFile()
public IISeriesEditorFormatLine getFormatLine()
getFormatLine
in interface IISeriesEditorParser
getFormatLine
in class ISeriesEditorParser
public SystemTextEditorHelpHandler getHelpHandler()
getHelpHandler
in interface IISeriesEditorParser
public IQSYSMember getIncludeMember()
ISeriesEditorParser
getIncludeMember
in interface IISeriesEditorParser
getIncludeMember
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#getIncludeMember()
public String getLanguage()
getLanguage
in interface ISystemTextEditorParser
getLanguage
in class ISeriesEditorParser
protected long getLineClassTypes(String strLine, int iSpecType)
protected int getLineSpecType(int iLine)
public int getElementSpecType(int iElement)
public int getElementSpecType(int iElement, boolean needToTagLineClasses)
protected int getElementSpecTypeOnly(int iElement)
protected int getElementSpecTypeAndUpdateClasses(int iElement)
protected int getElementSpecTypeWhenFileLoading(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)
protected boolean supportsOutlineView()
ISeriesEditorParser
supportsOutlineView
in class ISeriesEditorParser
public LanguageModel getModel(boolean bUpdate)
getModel
in interface IISeriesEditorParser
getModel
in class ISeriesEditorParser
public boolean modelBuiltAsynchronous()
ISeriesEditorParser
modelBuiltAsynchronous
in class ISeriesEditorParser
protected int getNextFreeFormBoundaryLine(int iLine)
protected int getNextFreeFormBoundaryElement(int iElement)
public String getPopupItems(int popupLocation)
getPopupItems
in class ISeriesEditorParser
com.ibm.lpex.core.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 LpexSourceViewerConfiguration getSourceViewerConfiguration()
getSourceViewerConfiguration
in interface 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(LpexView lpexView)
initializeLpexView
in interface IISeriesEditorParser
initializeLpexView
in class ISeriesEditorParser
public void initializeColors(LpexView view)
protected LpexDocumentLocation matchToken(LpexDocumentLocation loc)
loc
- the location of the token to match
com.ibm.lpex.core.LpexCommonParser#matchToken(LpexDocumentLocation)
public boolean isValidFieldAction()
isValidFieldAction
in interface IISeriesEditorParser
isValidFieldAction
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidFieldAction()
public boolean isValidIncludeAction()
isValidIncludeAction
in interface IISeriesEditorParser
isValidIncludeAction
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.IISeriesEditorParser#isValidIncludeAction()
public boolean isLineDebuggable(int iLine)
isLineDebuggable
in interface ISystemTextEditorDebugContributor
public void parseElement(int iElement)
parseElement
in class ISeriesEditorParser
public void parseElements(int iElementFirst, int iElementLast, int iElementCurrent)
ISeriesEditorParser
parseElements
in class ISeriesEditorParser
com.ibm.etools.iseries.editor.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
protected int parseRegionForElement(int iElement, int iSpecType)
protected int checkForFixFormType(int iElement, String strElement, boolean needToUpdateClasses)
public void promptRequest()
promptRequest
in class ISeriesEditorParser
public void terminateParser()
terminateParser
in class ISeriesEditorParser
com.ibm.lpex.core.LpexCommonParser#terminateParser()
public int getBeginCFREE(int iElement)
iElement
- The element to search for its start statement
public int getStatementStartElement(int iElement)
iElement
- The element to search for its start statement
protected int getStatementStartElement(int iElement, int iSpecType)
iElement
- The element to search for its start statement
public int getStatementEndElement(int iElement)
iElement
- The element to search for its end statement
protected int getStatementEndElement(int iElement, int iSpecType)
iElement
- The element to search for its end statement
protected boolean isElementEndingInSemicolon(int iElement)
iElement
- the element to check
protected boolean isElementStartingWithSlash(int iElement)
iElement
- The element to check
protected boolean isElementStartSQLStatement(int iElement)
iElement
- the element to check
protected boolean isElementHaveBeginStatement(int iElement)
iElement
- The element to check
protected boolean isElementHaveEndStatement(int iElement)
iElement
- The element to check
protected String stripComments(String text)
text
- The string to remove comments from.
protected String getCFreeString(String text)
text
- The text to get the c free string from
public LpexFieldsProvider getFieldsProvider()
getFieldsProvider
in interface IISeriesEditorParser
getFieldsProvider
in class ISeriesEditorParser
public void cleanupMenu(ITextEditor editor, IMenuManager menuManager)
ISeriesEditorParser
subclasses which add other menus should subclass and call super
cleanupMenu
in interface ISystemTextEditorContextContributor
cleanupMenu
in class ISeriesEditorParser
ISystemTextEditorContextContributor.cleanupMenu(ITextEditor, IMenuManager)
public void doRefresh()
doRefresh
in interface ISystemTextEditorParser
doRefresh
in class ISeriesEditorParser
ISystemTextEditorParser.doRefresh()
protected boolean withinContextOfCFree(int iElement)
protected void parseElementAfterDelete(int iElement)
iElement
- protected void postParseLineCleanUp(int iElement, int iSpecType)
protected void printLineClasses(int iElementFirst, int iElementLast)
public ISeriesEditorRPGILEPrompter getPrompter()
public long get_lClassProcedure()
public long get_lClassSubroutine()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |