|
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.ISeriesEditorRPGILETokenizer
public class ISeriesEditorRPGILETokenizer
Nested Class Summary | |
---|---|
class |
ISeriesEditorRPGILETokenizer.CFOpcode
|
class |
ISeriesEditorRPGILETokenizer.TokenizeResult
|
Field Summary | |
---|---|
protected boolean |
_bIdCont
|
boolean |
_bInQuote
|
protected char |
_cDivider
|
protected static ISeriesEditorRPGILETokenizer.CFOpcode[] |
_CFOpcodes
|
protected ISeriesEditorRPGILEParser |
_parser
|
protected static String[] |
_straMacroFonts
|
protected LpexView |
_view
|
static String |
copyright
|
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 |
Constructor Summary | |
---|---|
ISeriesEditorRPGILETokenizer(LpexView view,
ISeriesEditorRPGILEParser parser)
Constructor |
Method Summary | |
---|---|
protected void |
colourNormalElement(int iElement)
Colours a line with or without comment using the default colours. |
protected void |
colourNormalLine(int iLine)
Deprecated. |
protected int |
completeLine(int iOpcodeIndex,
String strLine,
StringBuffer strbStyle,
int iIndex,
int iProcessed,
int iParametersOnNextLine,
int iKeywords)
Return a string that specifies how to colour the parameters and comments on a line. |
protected int |
countParameters(String strLine,
int iIndex)
This procedure will count the number of parameters on the current line. |
int |
getOpcodeIndex(String strLine)
The index of the opcode in the CFOpcode array is returned. |
protected String |
getOpcodeStyle(int iOpcode,
String strLine)
Return a string that tells the program how to colour the opcode. |
protected char |
getParameterColour(int iOpcodeIndex,
int i)
Determines the colour of the current parameter. |
protected int |
getParameterCount(int iElement,
String strElement)
Count the parameters top-down so that quoted strings that span multiple lines are counted correctly as one parameter. |
protected ISeriesEditorRPGILETokenizer.TokenizeResult |
tokenizeCF(int iElement,
String strElement,
int iNumberOfParametersOnNextElement,
int iSpecType)
Recursively tokenize a CF spec line. |
void |
tokenizeElement(int iElement,
int iSpecType)
Port of evfritok.c, TokenizeRPGLine |
void |
tokenizeLine(int iLine,
int iSpecType)
Deprecated. |
protected int |
traverseUp(int iElement)
Returns the closest line number of a line at or above the given line that contains either an opcode, semi-colon, or start boundary. |
void |
upperCaseElement(int iElement,
int iSpecType)
Port of evfritok.c, UpperCaseStatement |
String |
upperCaseLine(String strLine,
int iSpecType)
Port of evfritok.c, UpperCaseLine |
protected void |
upperCaseStatement(int iLine,
int iSpecType)
Deprecated. |
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 char _cDivider
protected boolean _bIdCont
public boolean _bInQuote
protected LpexView _view
protected ISeriesEditorRPGILEParser _parser
protected static ISeriesEditorRPGILETokenizer.CFOpcode[] _CFOpcodes
protected static final String[] _straMacroFonts
Constructor Detail |
---|
public ISeriesEditorRPGILETokenizer(LpexView view, ISeriesEditorRPGILEParser parser)
Method Detail |
---|
protected void colourNormalLine(int iLine)
protected void colourNormalElement(int iElement)
protected int completeLine(int iOpcodeIndex, String strLine, StringBuffer strbStyle, int iIndex, int iProcessed, int iParametersOnNextLine, int iKeywords)
protected int countParameters(String strLine, int iIndex)
public int getOpcodeIndex(String strLine)
protected String getOpcodeStyle(int iOpcode, String strLine)
protected char getParameterColour(int iOpcodeIndex, int i)
protected int getParameterCount(int iElement, String strElement)
protected ISeriesEditorRPGILETokenizer.TokenizeResult tokenizeCF(int iElement, String strElement, int iNumberOfParametersOnNextElement, int iSpecType)
public void tokenizeLine(int iLine, int iSpecType)
public void tokenizeElement(int iElement, int iSpecType)
protected int traverseUp(int iElement)
public String upperCaseLine(String strLine, int iSpecType)
protected void upperCaseStatement(int iLine, int iSpecType)
public void upperCaseElement(int iElement, int iSpecType)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |