|
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.rse.util.clprompter.ClSyntax
public final class ClSyntax
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
ClSyntax()
|
Method Summary | |
---|---|
static boolean |
checkDelimiter(String text,
com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel,
int type,
boolean showError)
This method is used to verify if there are any delimiters in literals. |
static boolean |
checkExpression(com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel,
com.ibm.etools.iseries.rse.util.clprompter.ClCommonLayout cl,
String kwd,
String text,
boolean showError)
Checks an expression for error conditions. |
static void |
cleanup()
|
static Job |
getCurrentJob()
|
static String |
getSpecialChars()
|
static int |
indexNotInQuote(String textToSearch,
String item)
Searches for the location of the item, so long as it is not in single or double quotes |
static int |
indexNotInQuoteOrBracket(String textToSearch,
String item)
Searches for the specified item in textToSearch, ignoring items in brackets, single or double quotes |
protected static boolean |
isInterpretAsExpression(com.ibm.etools.iseries.rse.util.clprompter.ClCommonLayout cl)
Determines whether or not the parameter/command combo should interpret a field as an expression by force. |
static String |
quote(int type,
String string)
|
static String |
stripOuterBrackets(String value)
Strips the outer brackets of a string |
static String |
stripQuotes(String value)
|
static String |
stripQuotes(String value,
boolean stripDouble)
|
static String |
trim(String text)
Trims whitespace from the start and end of a string. |
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
Constructor Detail |
---|
public ClSyntax()
Method Detail |
---|
public static void cleanup()
public static final String quote(int type, String string) throws SystemMessageException
SystemMessageException
public static final String stripQuotes(String value)
public static final String stripQuotes(String value, boolean stripDouble)
public static String getSpecialChars()
public static int indexNotInQuote(String textToSearch, String item)
textToSearch
- the string to scanitem
- the string to find
public static String stripOuterBrackets(String value)
value
- The string to strip outer brackets from
public static boolean checkExpression(com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel, com.ibm.etools.iseries.rse.util.clprompter.ClCommonLayout cl, String kwd, String text, boolean showError) throws ClSyntaxException
panel
- The panel that the field is oncl
- The common layout that the parameter is usingkwd
- The keyword for the parameter.showError
- Whether or not errors should be displayed.
ClSyntaxException
- This exception is thrown if the expression has a syntax error issue.public static int indexNotInQuoteOrBracket(String textToSearch, String item)
textToSearch
- The test to searchitem
- The item to search for
public static String trim(String text)
text
- the text to trim
public static boolean checkDelimiter(String text, com.ibm.etools.iseries.rse.util.clprompter.ClPanel panel, int type, boolean showError) throws ClSyntaxException
text
- The text literal to checkpanel
- The panel to display any messages onshowError
- Whether or not errors are to be displayed on the panel.
ClSyntaxException
- If showError is false, then this exception will get thrown instead of an
error being displayed.protected static boolean isInterpretAsExpression(com.ibm.etools.iseries.rse.util.clprompter.ClCommonLayout cl)
cl
- the layout to check
public static Job getCurrentJob()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |