|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.legstar.coxb.util.PictureUtil
public final class PictureUtil
These are methods to help analyze a COBOL picture clause.
Method Summary | |
---|---|
static int |
getNumericInParentheses(String input)
For a character sequence such as (nnn), this will extract the numeric value between parentheses. |
static int |
getSymbolsNumber(char[] symbols,
String input)
Examines the input for the requested symbols (case insensitive) and returns the number of symbols found. |
static int |
getSymbolsNumber(char symbol,
String input)
Examines the input for the requested symbol (case insensitive) and returns the number of symbols found. |
static String |
preparePicture(String input)
In order to simply parsing of picture clauses, this gets rid of any white space (which is illegal in picture clause anyway) and turns the sequence to uppercase. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String preparePicture(String input)
input
- the picture clause before
public static int getSymbolsNumber(char symbol, String input)
symbol
- the symbol to look upinput
- the character sequence
public static int getSymbolsNumber(char[] symbols, String input)
symbols
- the collection of symbols to look upinput
- the character sequence
public static int getNumericInParentheses(String input)
input
- starts with open parentheses
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |