Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.editor
Class ISeriesEditorCobolSyntaxChecker

java.lang.Object
  extended by com.ibm.etools.iseries.parsers.ISeriesEditorSyntaxChecker
      extended by com.ibm.etools.iseries.editor.ISeriesEditorCobolSyntaxChecker
All Implemented Interfaces:
IISeriesEditorConstantsCobol400, IISeriesEditorConstants, IISeriesEditorNativeConstants, IISeriesEditorSyntaxChecker, ISystemEditorConstants

public class ISeriesEditorCobolSyntaxChecker
extends ISeriesEditorSyntaxChecker
implements IISeriesEditorSyntaxChecker, IISeriesEditorConstants, IISeriesEditorNativeConstants, IISeriesEditorConstantsCobol400


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorSyntaxChecker
ISeriesEditorSyntaxChecker.RunnableSyntaxChecker
 
Field Summary
protected  boolean _offline
           
protected  LpexParser _parser
           
protected  String _strHostname
           
protected  String _strMsgFileName
           
protected  String _strSourceType
           
protected  boolean _syntaxCheckSQL
           
static String Copyright
           
protected  int iHostCommunicationsPort
           
 
Fields inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorSyntaxChecker
_aEmpty, _bIsPrimaryLpexView, _disableSyntaxCheckAuto, _invokedAuto, _progressMonitor, _ptRange, _strAutoPreferenceName, _strEmpty, _vectorSyntaxErrors, _view, copyright
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorConstants
ACTION_VERIFYPROGRAM_ID, APPLICATION_DIAGRAM, COMPILE_ERROR_MESSAGE_STYLE, copyright, FILE_TYPE_CL, FILE_TYPE_DDS, FILE_TYPE_OTHER, FILE_TYPE_RPGILE, FILE_TYPE_RPGOPM, MAX_DS_NESTING, OUTLINE_VIEW, PREF_AUTO_FORMAT, PREF_AUTO_FORMAT_T, PREF_AUTO_UPPER, PREF_AUTO_UPPER_T, PREF_BASE_PREFIX, PREF_BLANK, PREF_BLANK_SUFFIX, PREF_BLANK_T, PREF_COMMAND_POS, PREF_COMMAND_POS_T, PREF_HIGHLIGHT, PREF_HIGHLIGHT_BACKGROUND, PREF_HIGHLIGHT_BACKGROUND_T, PREF_HIGHLIGHT_T, PREF_INDENT, PREF_INDENT_T, PREF_INDENTATION, PREF_INDENTATION_T, PREF_LABEL_ABOVE_CMD, PREF_LABEL_ABOVE_CMD_T, PREF_LABEL_POS, PREF_LABEL_POS_T, PREF_LINE_LENGTH, PREF_LINE_LENGTH_T, PREF_ONE_PARM_PER_LINE, PREF_ONE_PARM_PER_LINE_T, PREF_PARSER_ASSOC, PREF_PARSER_STYLES, PREF_SIGNATURE_T, PREF_SQL_SYNTAX_CHECK, PREF_SQL_SYNTAX_CHECK_T, PREF_SYNTAX_CHECK, PREF_SYNTAX_CHECK_T, PREF_TAB, PREF_TAB_GENERAL, PREF_TAB_GENERAL_T, PREF_TAB_T, PREF_TOOLTIP_SUFFIX, PROGRAM_VERIFICATION
 
Fields inherited from interface com.ibm.etools.systems.editor.ISystemEditorConstants
COMPILE_ERROR_CLASS_NAME, ICON_EDITOR_COMPILE, ICON_EDITOR_COMPILE_D, ICON_EDITOR_COMPILE_D_ID, ICON_EDITOR_COMPILE_D_ROOT, ICON_EDITOR_COMPILE_ID, ICON_EDITOR_COMPILE_ROOT, ICON_EDITOR_NEXT_ERROR, ICON_EDITOR_NEXT_ERROR_D, ICON_EDITOR_NEXT_ERROR_D_ID, ICON_EDITOR_NEXT_ERROR_D_ROOT, ICON_EDITOR_NEXT_ERROR_ID, ICON_EDITOR_NEXT_ERROR_ROOT, ICON_EDITOR_PREVIOUS_ERROR, ICON_EDITOR_PREVIOUS_ERROR_D, ICON_EDITOR_PREVIOUS_ERROR_D_ID, ICON_EDITOR_PREVIOUS_ERROR_D_ROOT, ICON_EDITOR_PREVIOUS_ERROR_ID, ICON_EDITOR_PREVIOUS_ERROR_ROOT, ICON_EXT, ICON_RELATIVE_PATH_DLCL16, ICON_RELATIVE_PATH_ELCL16, ICON_RELATIVE_PATH_FULL, ICON_SUFFIX, PREFIX, SYNTAX_ERROR_CLASS_NAME
 
Fields inherited from interface com.ibm.etools.iseries.edit.IISeriesEditorNativeConstants
CODE400_ERROR_LOADING_CODE_INTERFACE_LIBRARY, CODE400_ERROR_LOADING_CODE_LIBRARY, CODE400_ERROR_LOADING_CODE_METHOD, CODE400_ERROR_LOADING_REGISTRY_KEY_ADTS_INSTALL, CODE400_ERROR_LOADING_REGISTRY_KEY_WDT_DIRECTORY, CODE400_OK, NATIVE_ERROR_LOADING_NATIVE_INTERFACE_LIBRARY, NATIVE_ERROR_LOADING_NATIVE_LIBRARY, NATIVE_ERROR_LOADING_NATIVE_METHOD, NATIVE_ERROR_NO_PATH_GIVEN, NATIVE_ERROR_RESOLVING_PLUGIN_PATH, NATIVE_OK
 
Fields inherited from interface com.ibm.etools.iseries.edit.cobol.IISeriesEditorConstantsCobol400
ILECOBOL_SQLSYNTAXCHECK, PREF_COBOL_PREFIX, STRING_HELP_DOC_PLUGIN_ID, STRING_HELP_TABLE_FILENAME, STRING_HELP_TABLE_PLUGIN_ID, STRING_MESSAGE_HELP_DOC_PLUGIN_ID, STRING_MESSAGE_HELP_TABLE_FILENAME, STRING_MESSAGE_HELP_TABLE_PLUGIN_ID, STYLENAME_COMMENT, STYLENAME_COMPILER_DIRECTIVE, STYLENAME_DATE_FORMAT, STYLENAME_ERROR, STYLENAME_FUNCTION, STYLENAME_INDICATOR_AREA, STYLENAME_LAYOUT_BLANKS, STYLENAME_NONNUMERIC_LITERAL, STYLENAME_NUMERIC_LITERAL, STYLENAME_PICTURE_STRING, STYLENAME_PREPROCESSOR_STRING, STYLENAME_PSEUDO_TEXT, STYLENAME_RESERVED_WORD, STYLENAME_SEPERATOR, STYLENAME_SEQUENCE_NUMBER, STYLENAME_USER_DEFINED_WORD
 
Constructor Summary
ISeriesEditorCobolSyntaxChecker(LpexView lpexView)
          Constructor.
 
Method Summary
 ISeriesEditorSyntaxError[] checkSyntax(int iElementStart, int iElementEnd)
          Invokes the syntax checker proxy if available.
 void checkSyntaxOfRange(int iElementStart, int iElementEnd)
          Syntax checks the specified range of lines
 boolean isAvailable()
          Returns whether syntax checking is available.
 boolean isCancelable()
          Returns whether the syntax checker is cancelable before the operation is complete.
 
Methods inherited from class com.ibm.etools.iseries.parsers.ISeriesEditorSyntaxChecker
callbackAddSyntaxError, callbackGetLineText, callbackGetNextLine, callbackGetPreviousLine, callbackIsCanceled, callbackIsShowLine, checkSyntaxAuto, checkSyntaxAuto, checkSyntaxOfCurrentLine, checkSyntaxOfDocument, checkSyntaxOfRangeWithProgress, checkSyntaxOfSelection, displaySyntaxErrors, getHostCommunicationsPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.ibm.etools.iseries.parsers.IISeriesEditorSyntaxChecker
checkSyntaxOfCurrentLine, checkSyntaxOfDocument, checkSyntaxOfSelection
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_syntaxCheckSQL

protected boolean _syntaxCheckSQL

_parser

protected LpexParser _parser

_strSourceType

protected String _strSourceType

iHostCommunicationsPort

protected int iHostCommunicationsPort

_offline

protected boolean _offline

_strHostname

protected String _strHostname

_strMsgFileName

protected String _strMsgFileName
Constructor Detail

ISeriesEditorCobolSyntaxChecker

public ISeriesEditorCobolSyntaxChecker(LpexView lpexView)
Constructor.

Method Detail

checkSyntax

public ISeriesEditorSyntaxError[] checkSyntax(int iElementStart,
                                              int iElementEnd)
Invokes the syntax checker proxy if available. The proxy is given the instance to this class. The proxy calls this instance's addSyntaxError method for each syntax error string.

Specified by:
checkSyntax in interface IISeriesEditorSyntaxChecker
Specified by:
checkSyntax in class ISeriesEditorSyntaxChecker

checkSyntaxOfRange

public void checkSyntaxOfRange(int iElementStart,
                               int iElementEnd)
Syntax checks the specified range of lines

Specified by:
checkSyntaxOfRange in interface IISeriesEditorSyntaxChecker
Specified by:
checkSyntaxOfRange in class ISeriesEditorSyntaxChecker

isAvailable

public boolean isAvailable()
Returns whether syntax checking is available.

Specified by:
isAvailable in interface IISeriesEditorSyntaxChecker
Specified by:
isAvailable in class ISeriesEditorSyntaxChecker

isCancelable

public boolean isCancelable()
Returns whether the syntax checker is cancelable before the operation is complete.

Specified by:
isCancelable in class ISeriesEditorSyntaxChecker

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.