|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.lpex.cobol.CobolWords
public final class 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
COBOL reserved word id. |
static int |
CBL
COBOL reserved word id. |
static int |
CONTROL
COBOL reserved word id. |
static int |
DATE
COBOL reserved word id. |
static int |
DATE_COMPILED
COBOL reserved word id. |
static int |
DATE_WRITTEN
COBOL reserved word id. |
static int |
DIVISION
COBOL reserved word id. |
static int |
EJECT
COBOL reserved word id. |
static int |
FORMAT
COBOL reserved word id. |
static int |
FUNCTION
COBOL reserved word id. |
static int |
INSTALLATION
COBOL reserved word id. |
static int |
IS
COBOL reserved word id. |
static int |
LAST_ID
COBOL reserved word id. |
static int |
PICTURE
COBOL reserved word id. |
static int |
PROGRAM_ID
COBOL reserved word id. |
static int |
SECTION
COBOL reserved word id. |
static int |
SECURITY
COBOL reserved word id. |
static int |
SKIP
COBOL reserved word id. |
static int |
TITLE
COBOL reserved word id. |
Method Summary | |
---|---|
static String[] |
controlOptions()
Returns an array of the control options defined in here. |
static String[] |
dateFormats()
Returns an array of the date formats defined in here. |
static String[] |
directives()
Returns an array of the directives defined in here. |
static CobolWords.Word |
findDirective(StringBuffer stringBuffer)
Returns whether the specified string is a directive (compiler-directing statement keyword). |
static CobolWords.Word |
findReservedWord(StringBuffer stringBuffer)
Returns whether the specified string is a reserved word. |
static Object |
findWord(Object[] _words,
StringBuffer word)
Performs a binary search for the specified word in an array of Words or Strings. |
static String[] |
functionNames()
Returns an array of the function names defined in here. |
static boolean |
isControlOption(StringBuffer stringBuffer)
Returns whether the specified string is a valid option for the *CONTROL (*CBL) directive. |
static boolean |
isDateFormat(StringBuffer stringBuffer)
Returns whether the specified string is a date format. |
static boolean |
isFunctionName(StringBuffer stringBuffer)
Returns whether 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()
Returns 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)
null
.
The array of words is assumed to be sorted and uppercase.
The search word may be any case, but will match case insensitively.
|
LPEX 3.6.5 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |