public class Util extends Object
Constructor and Description |
---|
Util() |
Modifier and Type | Method and Description |
---|---|
static String |
asNonQuotedRef(Token token)
Returns the Token as a non quoted reference.
|
static String |
expressionListToString(Expression[] list)
Returns an array of Expression objects as a comma deliminated string.
|
static Expression |
normalize(Expression exp)
Normalizes the Expression by removing all NOT operators and altering
the expression as appropriate.
|
static TObject |
parseNumberToken(Token token,
boolean negative)
Parses a NUMBER_LITERAL Token with a sign boolean.
|
static FunctionDef |
resolveFunctionName(String name,
Expression[] exp_list)
Returns a Function object that represents the name and expression list
(of parameters) of a function.
|
static TObject |
toArrayParamObject(Expression[] arr)
Converts an expression array to an array type that can be added to an
expression.
|
static Object |
toParamObject(Token token,
boolean upper_identifiers)
Converts a Token which is either a STRING_LITERAL, NUMBER_LITERAL or
IDENTIFIER into a Java Object.
|
static TObject |
zeroNumber()
Returns numeric 0
|
public static String asNonQuotedRef(Token token)
public static Object toParamObject(Token token, boolean upper_identifiers)
public static TObject zeroNumber()
public static TObject parseNumberToken(Token token, boolean negative)
public static TObject toArrayParamObject(Expression[] arr)
public static String expressionListToString(Expression[] list)
public static Expression normalize(Expression exp)
public static FunctionDef resolveFunctionName(String name, Expression[] exp_list)
Copyright © 2015. All rights reserved.