|
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.ClExpression
public class ClExpression
Parses expressions into queriable components.
Field Summary | |
---|---|
static int |
ARITHMATIC
|
static int |
CHARACTER
|
static String |
Copyright
|
static int |
LOGICAL
|
static int |
POINTER
|
static int |
RELATIONAL
|
static String |
VALUE
|
Constructor Summary | |
---|---|
ClExpression(String expression,
String kwd,
boolean checkBrackets)
One of the constructor for this class. |
|
ClExpression(String expression,
String kwd,
int nestingLevel,
boolean checkBrackets)
One of the constructors for this class. |
Method Summary | |
---|---|
int |
getNestingLevel()
retrieves the nesting level of the expression |
Object |
getParsedObject()
Returns a simplified object that represents the parsed expression, can be one of ClVariable ClBuiltInExpression ClExpression String Long |
int |
getType()
Retrieves the typeof this expression |
void |
setNestingLevel(int level)
Sets the nesting level for the expression |
String |
toString()
returns the string representation of this expression. |
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 ARITHMATIC
public static final int LOGICAL
public static final int CHARACTER
public static final int RELATIONAL
public static final int POINTER
public static final String VALUE
Constructor Detail |
---|
public ClExpression(String expression, String kwd, boolean checkBrackets) throws ClParseException, ClSyntaxException
expression
- the expression to parse.kwd
- The parameter keyword that this expression belongs to (used in error messages)checkBrackets
- Whether or not outer brackets should be enforced.
ClParseException
- This exception is thrown if the value specified isn't an expression
ClSyntaxException
- This exception is thrown if the expression specified has a syntax error.public ClExpression(String expression, String kwd, int nestingLevel, boolean checkBrackets) throws ClParseException, ClSyntaxException
expression
- the expression to parse.kwd
- The parameter keyword that this expression belongs to (used in error messages)nestingLevel
- The nesting level of the expression.checkBrackets
- Whether or not outer brackets should be enforced.
ClParseException
- This exception is thrown if the value specified isn't an expression
ClSyntaxException
- This exception is thrown if the expression specified has a syntax error.Method Detail |
---|
public Object getParsedObject()
public String toString()
toString
in class Object
public int getType()
public int getNestingLevel()
public void setNestingLevel(int level)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |