public class Util
extends java.lang.Object
Constructor | Description |
---|---|
Util() |
Modifier and Type | Method | Description |
---|---|---|
static java.lang.String |
asNonQuotedRef(Token token) |
Returns the Token as a non quoted reference.
|
static java.lang.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(java.lang.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 java.lang.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 java.lang.String asNonQuotedRef(Token token)
public static java.lang.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 java.lang.String expressionListToString(Expression[] list)
public static Expression normalize(Expression exp)
public static FunctionDef resolveFunctionName(java.lang.String name, Expression[] exp_list)
Copyright © 2018. All rights reserved.