com.sas.dataselectors.exceptionhighlighting
Class ExpressionUtil
com.sas.dataselectors.exceptionhighlighting.ExpressionUtil
public class ExpressionUtil
util class to help in generating rpf expressions.
- Since:
- 3.1.4
Method Summary |
static com.sas.rpf.expr.ExpressionInterface |
betweenExpression(java.lang.String varName,
java.lang.String minValue,
java.lang.String maxValue)
|
static com.sas.rpf.expr.ExpressionInterface |
betweenExpression(java.lang.String varName,
java.lang.String minValue,
java.lang.String maxValue,
java.util.List levels)
|
static java.lang.String |
getCondition(java.lang.String exprString)
|
static java.lang.String |
getElementValue(com.sas.rpf.expr.ExpressionElementInterface expressionElt)
|
static java.util.Map |
getLevelMap(java.util.List levels)
|
static java.util.List |
getLevels(java.lang.String exprString)
|
static java.lang.String |
getMaxValue(java.lang.String exprString)
|
static java.lang.String |
getMeasure(java.lang.String exprString)
|
static java.lang.String |
getMinValue(java.lang.String exprString)
|
static java.lang.String |
getValue(java.lang.String exprString)
|
static boolean |
isBetweenCondition(java.lang.String exprString)
|
static void |
main(java.lang.String[] args)
|
static com.sas.rpf.expr.ExpressionInterface |
simpleExpression(com.sas.rpf.expr.PrimitiveInterface left,
java.lang.String condition,
com.sas.rpf.expr.PrimitiveInterface right)
|
static com.sas.rpf.expr.ExpressionInterface |
simpleExpression(java.lang.String leftVarName,
java.lang.String condition,
java.lang.String rightVarName)
|
static com.sas.rpf.expr.ExpressionInterface |
simpleExpression(java.lang.String leftVarName,
java.lang.String condition,
java.lang.String rightVarName,
java.util.List levels)
|
ExpressionUtil
public ExpressionUtil()
main
public static void main(java.lang.String[] args)
betweenExpression
public static com.sas.rpf.expr.ExpressionInterface betweenExpression(java.lang.String varName,
java.lang.String minValue,
java.lang.String maxValue)
betweenExpression
public static com.sas.rpf.expr.ExpressionInterface betweenExpression(java.lang.String varName,
java.lang.String minValue,
java.lang.String maxValue,
java.util.List levels)
simpleExpression
public static com.sas.rpf.expr.ExpressionInterface simpleExpression(java.lang.String leftVarName,
java.lang.String condition,
java.lang.String rightVarName)
simpleExpression
public static com.sas.rpf.expr.ExpressionInterface simpleExpression(java.lang.String leftVarName,
java.lang.String condition,
java.lang.String rightVarName,
java.util.List levels)
simpleExpression
public static com.sas.rpf.expr.ExpressionInterface simpleExpression(com.sas.rpf.expr.PrimitiveInterface left,
java.lang.String condition,
com.sas.rpf.expr.PrimitiveInterface right)
getLevelMap
public static java.util.Map getLevelMap(java.util.List levels)
isBetweenCondition
public static boolean isBetweenCondition(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getCondition
public static java.lang.String getCondition(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getMeasure
public static java.lang.String getMeasure(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getValue
public static java.lang.String getValue(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getMinValue
public static java.lang.String getMinValue(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getMaxValue
public static java.lang.String getMaxValue(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getLevels
public static java.util.List getLevels(java.lang.String exprString)
throws com.sas.rpf.exception.ParseException
- Throws:
com.sas.rpf.exception.ParseException
getElementValue
public static java.lang.String getElementValue(com.sas.rpf.expr.ExpressionElementInterface expressionElt)
Copyright © 2009 SAS Institute Inc. All Rights Reserved.