|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.cobol.CobolWords
Keywords and keyword-related functions for the COBOL document parsers.
Nested Class Summary | |
---|---|
static class | CobolWords.Word
This class is used to combine a keyword String with an id int. |
Field Summary | |
---|---|
static int | AUTHOR
Id for a COBOL reserved word. |
static int | CBL
Id for a COBOL reserved word. |
static int | CONTROL
Id for a COBOL reserved word. |
static int | DATE
Id for a COBOL reserved word. |
static int | DATE_COMPILED
Id for a COBOL reserved word. |
static int | DATE_WRITTEN
Id for a COBOL reserved word. |
static int | DIVISION
Id for a COBOL reserved word. |
static int | EJECT
Id for a COBOL reserved word. |
static int | FORMAT
Id for a COBOL reserved word. |
static int | FUNCTION
Id for a COBOL reserved word. |
static int | INSTALLATION
Id for a COBOL reserved word. |
static int | IS
Id for a COBOL reserved word. |
static int | LAST_ID
Id for a COBOL reserved word. |
static int | PICTURE
Id for a COBOL reserved word. |
static int | PROGRAM_ID
Id for a COBOL reserved word. |
static int | SECTION
Id for a COBOL reserved word. |
static int | SECURITY
Id for a COBOL reserved word. |
static int | SKIP
Id for a COBOL reserved word. |
static int | TITLE
Id for a COBOL reserved word. |
Method Summary | |
---|---|
static String[] | controlOptions()
Return an array of the control options defined in here. |
static String[] | dateFormats()
Return an array of the date formats defined in here. |
static String[] | directives()
Return an array of the directives defined in here. |
static CobolWords.Word | findDirective(StringBuffer stringBuffer)
Determine if the specified string is a directive (compiler-directing statement keyword). |
static CobolWords.Word | findReservedWord(StringBuffer stringBuffer)
Determine if the specified string is a reserved word. |
static Object | findWord(Object[] _words,
StringBuffer word)
Perform a binary search for the specified word in an array of Words or Strings. |
static String[] | functionNames()
Return an array of the function names defined in here. |
static boolean | isControlOption(StringBuffer stringBuffer)
Determine if the specified string is a valid option for the *CONTROL (*CBL) directive. |
static boolean | isDateFormat(StringBuffer stringBuffer)
Determine if the specified string is a date format. |
static boolean | isFunctionName(StringBuffer stringBuffer)
Determine if the specified string is a function name. |
static String[] | listWords(Object[] _words)
Utility method to return an array of all the strings in an array of Words or Strings. |
static String[] | reservedWords()
Return an array of the reserved words defined in here. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AUTHOR
public static final int DATE
public static final int DATE_COMPILED
public static final int DATE_WRITTEN
public static final int DIVISION
public static final int FORMAT
public static final int FUNCTION
public static final int INSTALLATION
public static final int IS
public static final int PICTURE
public static final int PROGRAM_ID
public static final int SECTION
public static final int SECURITY
public static final int CBL
public static final int CONTROL
public static final int EJECT
public static final int SKIP
public static final int TITLE
public static final int LAST_ID
Method Detail |
public static CobolWords.Word findReservedWord(StringBuffer stringBuffer)
public static String[] reservedWords()
public static boolean isFunctionName(StringBuffer stringBuffer)
public static String[] functionNames()
public static boolean isDateFormat(StringBuffer stringBuffer)
public static String[] dateFormats()
public static CobolWords.Word findDirective(StringBuffer stringBuffer)
public static String[] directives()
public static boolean isControlOption(StringBuffer stringBuffer)
public static String[] controlOptions()
public static String[] listWords(Object[] _words)
public static Object findWord(Object[] _words, StringBuffer word)
|
SWT LPEX v3.0.0 | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |