|
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 com.ibm.etools.iseries.parsers.ISeriesEditorSyntaxChecker
public abstract class ISeriesEditorSyntaxChecker
Base class for syntax checkers. Handles auto-syntax checking if the action passed to the constructor is not null.
Nested Class Summary | |
---|---|
protected class |
ISeriesEditorSyntaxChecker.RunnableSyntaxChecker
Inner class to parser all in a different thread |
Field Summary | |
---|---|
protected static ISeriesEditorSyntaxError[] |
_aEmpty
|
protected boolean |
_bIsPrimaryLpexView
|
protected boolean |
_disableSyntaxCheckAuto
|
protected boolean |
_invokedAuto
|
protected IProgressMonitor |
_progressMonitor
|
protected Point |
_ptRange
|
protected String |
_strAutoPreferenceName
|
protected static String |
_strEmpty
|
protected Vector |
_vectorSyntaxErrors
|
protected LpexView |
_view
|
static String |
copyright
|
Constructor Summary | |
---|---|
ISeriesEditorSyntaxChecker(LpexView view,
String strAutoPreferenceName)
Constructor. |
Method Summary | |
---|---|
void |
callbackAddSyntaxError(int iElementNumber,
byte[] byteaSyntaxError)
Called by the native proxy for each syntax error string. |
byte[] |
callbackGetLineText(int iElement)
Called by the native proxy to obtain the text at a Element number. |
int |
callbackGetNextLine(int iElement)
Called by the native proxy to obtain the Element number of the next line. |
int |
callbackGetPreviousLine(int iElement)
Called by the native proxy to obtain the line number of the previous line. |
boolean |
callbackIsCanceled()
Called by the native proxy to determine whether the syntax check has been cancelled. |
boolean |
callbackIsShowLine(int iElement)
Called by the native proxy to determine whether a line is a show line. |
abstract ISeriesEditorSyntaxError[] |
checkSyntax(int iElementStart,
int iElementEnd)
Subclasses to subclass. |
protected void |
checkSyntaxAuto(int iElement)
Syntax checks the given element if conditions are correct. |
void |
checkSyntaxAuto(int iElementFirst,
int iElementLast)
Syntax checks the given element range if conditions are correct. |
void |
checkSyntaxOfCurrentLine()
Syntax checks the current line |
void |
checkSyntaxOfDocument()
Syntax checks the entire document. |
abstract void |
checkSyntaxOfRange(int iElementStart,
int iElementEnd)
Subclasses to subclass. |
void |
checkSyntaxOfRangeWithProgress(int iElementStart,
int iElementEnd)
|
void |
checkSyntaxOfSelection()
Checks syntax of selected range. |
void |
displaySyntaxErrors(ISeriesEditorSyntaxError[] aSyntaxErrors,
char cSyntaxErrorMessageStyle,
char cSyntaxErrorHighlightStyle,
int iElementStart,
int iElementEnd)
Displays the given error messages. |
int |
getHostCommunicationsPort()
Returns the communications port that can be used by the verifier to communicate with the host. |
abstract boolean |
isAvailable()
Subclasses to return whether syntax checking is available. |
abstract boolean |
isCancelable()
Subclasses to return whether a syntax check may be canceled before completion. |
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 final String _strEmpty
protected boolean _disableSyntaxCheckAuto
protected IProgressMonitor _progressMonitor
protected LpexView _view
protected Point _ptRange
protected String _strAutoPreferenceName
protected Vector _vectorSyntaxErrors
protected boolean _invokedAuto
protected boolean _bIsPrimaryLpexView
protected static ISeriesEditorSyntaxError[] _aEmpty
Constructor Detail |
---|
public ISeriesEditorSyntaxChecker(LpexView view, String strAutoPreferenceName)
view
- the view that this syntax checker belongs tostrAutoPreferenceName
- the name of the preference which indicates whether automatic syntax checking is on or offMethod Detail |
---|
public void callbackAddSyntaxError(int iElementNumber, byte[] byteaSyntaxError)
public byte[] callbackGetLineText(int iElement)
public int callbackGetNextLine(int iElement)
public int callbackGetPreviousLine(int iElement)
public boolean callbackIsCanceled()
public boolean callbackIsShowLine(int iElement)
public abstract ISeriesEditorSyntaxError[] checkSyntax(int iElementStart, int iElementEnd)
protected void checkSyntaxAuto(int iElement)
public void checkSyntaxAuto(int iElementFirst, int iElementLast)
public void checkSyntaxOfCurrentLine()
public void checkSyntaxOfDocument()
public abstract void checkSyntaxOfRange(int iElementStart, int iElementEnd)
public void checkSyntaxOfRangeWithProgress(int iElementStart, int iElementEnd)
public void checkSyntaxOfSelection()
public void displaySyntaxErrors(ISeriesEditorSyntaxError[] aSyntaxErrors, char cSyntaxErrorMessageStyle, char cSyntaxErrorHighlightStyle, int iElementStart, int iElementEnd)
public int getHostCommunicationsPort()
public abstract boolean isAvailable()
public abstract boolean isCancelable()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |