|
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.ClOperator
public class ClOperator
Field Summary | |
---|---|
static String |
Copyright
|
static int |
MIN_PRIORITY
|
Constructor Summary | |
---|---|
ClOperator(String text)
the constructor for this class |
Method Summary | |
---|---|
static void |
genCCSIDOperators()
Used to speed up initialization by generating operators that have CCSID dependancies.... |
int |
getPriority(boolean highest)
Indicates the priority of the operator in an expression. |
String |
getStringWithoutSpaces()
retrieves the operator without spaces. |
boolean |
isEqual()
indicates whether or not this operator is an equals operator |
boolean |
isNot()
Indicates if the operator is a NOT operator |
boolean |
isNot(boolean checkBoth)
Indicates if the operator is a NOT operator |
boolean |
isSign()
Indicates whether or not the operator is indicating a signed decimal |
boolean |
isValidOperand(Object object)
Indicates whether or not an operand is valid for this operator |
static boolean |
isValidRelationalOperands(Object operand1,
Object operand2)
Indicates whether or not the two operands are valid for a relational operator |
static String |
queryStartsWithArithmaticOperator(String text)
Query the string to see if starts with an arithmatic operator. |
static String |
queryStartsWithCharacterOperator(String text)
Query the string to see if starts with a character operator. |
static String |
queryStartsWithLogicalOperator(String text)
Query the string to see if starts with a logical operator. |
static String |
queryStartsWithPredefinedCharacterOperator(String text)
Query the string to see if starts with a predefined character operator. |
static String |
queryStartsWithPredefinedLogicalOperator(String text)
Query the string to see if starts with a predefined logical operator. |
static String |
queryStartsWithPredefinedRelationalOperator(String text)
Query the string to see if starts with a predefined relational operator. |
static String |
queryStartsWithRelationalOperator(String text)
Query the string to see if starts with a relational operator. |
void |
setIsSign(boolean value)
allows configuration as to whether or not the +/- is a sign or an operator. |
String |
toString()
Returns the operator with blanks before and after it |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final int MIN_PRIORITY
Constructor Detail |
---|
public ClOperator(String text)
text
- The text that makes up the operator.Method Detail |
---|
public static String queryStartsWithPredefinedCharacterOperator(String text)
text
- the String to query
public static String queryStartsWithPredefinedLogicalOperator(String text)
text
- the String to query
public static String queryStartsWithPredefinedRelationalOperator(String text)
text
- the String to query
public static String queryStartsWithLogicalOperator(String text)
text
- the String to query
public static String queryStartsWithCharacterOperator(String text)
text
- the String to query
public static String queryStartsWithRelationalOperator(String text)
text
- the String to query
public static String queryStartsWithArithmaticOperator(String text)
text
- the String to query
public static void genCCSIDOperators()
public String toString()
toString
in class Object
public int getPriority(boolean highest)
highest
- set to true if you want the highest available priority returned for this operator.
public boolean isValidOperand(Object object)
object
- The operand to check for validity
public boolean isNot()
public boolean isNot(boolean checkBoth)
checkBoth
- true if both *NOT and ¬ should be check, false if only ¬ should be checked
public boolean isSign()
public static boolean isValidRelationalOperands(Object operand1, Object operand2)
operand1
- the first object to compareoperand2
- the second object to compare
public void setIsSign(boolean value)
value
- true if the operator is for a signed decimal, false otherwise.public String getStringWithoutSpaces()
public boolean isEqual()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |