iSeries Remote Systems
v6.0.0

com.ibm.etools.iseries.editor
Class ISeriesEditorRPGOPMSyntaxChecker

java.lang.Object
  extended bycom.ibm.etools.iseries.editor.ISeriesEditorSyntaxChecker
      extended bycom.ibm.etools.iseries.editor.ISeriesEditorRPGOPMSyntaxChecker
All Implemented Interfaces:
IISeriesEditorSyntaxChecker

public class ISeriesEditorRPGOPMSyntaxChecker
extends ISeriesEditorSyntaxChecker
implements IISeriesEditorSyntaxChecker

This class interfaces to the OPM syntax checker proxy which is written in 'C'.


Nested Class Summary
 
Nested classes inherited from class com.ibm.etools.iseries.editor.ISeriesEditorSyntaxChecker
ISeriesEditorSyntaxChecker.RunnableSyntaxChecker
 
Field Summary
protected  boolean _isAvailable
           
protected  ISeriesEditorRPGOPMParser _parser
           
protected  String _strFilename
           
protected  String _strSpecialChars
           
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.editor.ISeriesEditorSyntaxChecker
_aEmpty, _bIsPrimaryLpexView, _disableSyntaxCheckAuto, _invokedAuto, _progressMonitor, _ptRange, _strAutoPreferenceName, _strEmpty, _vectorSyntaxErrors, _view, copyright
 
Constructor Summary
ISeriesEditorRPGOPMSyntaxChecker(com.ibm.lpex.core.LpexView lpexView, ISeriesEditorRPGOPMParser parser)
          Constructor.
 
Method Summary
 ISeriesEditorSyntaxError[] checkSyntax(int iElementStart, int iElementEnd)
          Syntax checks the given Element number.
 ISeriesEditorSyntaxError[] checkSyntax(String strLine)
          Invokes the syntax checker proxy if available.
 void checkSyntaxOfRange(int iElementStart, int iElementEnd)
          Syntax checks the specified line
 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.editor.ISeriesEditorSyntaxChecker
callbackAddSyntaxError, callbackGetLineText, callbackGetNextLine, callbackGetPreviousLine, callbackIsCanceled, callbackIsShowLine, checkSyntaxAuto, checkSyntaxAuto, checkSyntaxOfCurrentLine, checkSyntaxOfDocument, checkSyntaxOfRangeWithProgress, checkSyntaxOfSelection, displaySyntaxErrors
 
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.editor.IISeriesEditorSyntaxChecker
checkSyntaxOfCurrentLine, checkSyntaxOfDocument, checkSyntaxOfSelection
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values

_parser

protected ISeriesEditorRPGOPMParser _parser

_strSpecialChars

protected String _strSpecialChars

_strFilename

protected String _strFilename

_isAvailable

protected boolean _isAvailable
Constructor Detail

ISeriesEditorRPGOPMSyntaxChecker

public ISeriesEditorRPGOPMSyntaxChecker(com.ibm.lpex.core.LpexView lpexView,
                                        ISeriesEditorRPGOPMParser parser)
Constructor.

Method Detail

checkSyntax

public ISeriesEditorSyntaxError[] checkSyntax(int iElementStart,
                                              int iElementEnd)
Syntax checks the given Element number.

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

checkSyntax

public ISeriesEditorSyntaxError[] checkSyntax(String strLine)
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.


checkSyntaxOfRange

public void checkSyntaxOfRange(int iElementStart,
                               int iElementEnd)
Syntax checks the specified line

Specified by:
checkSyntaxOfRange in interface IISeriesEditorSyntaxChecker
Specified by:
checkSyntaxOfRange in class ISeriesEditorSyntaxChecker
See Also:
ISeriesEditorSyntaxChecker.checkSyntaxOfRange(int, int)

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

iSeries Remote Systems
v6.0.0

Copyright © 2005 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.