public final class NumericLiteral extends Literal implements INumericLiteralExpression
| Modifier and Type | Field and Description |
|---|---|
protected Number |
_value
The value of the numberic lister as a Double.
|
static LockingLazyVar<NumericLiteral> |
INFINITY |
static LockingLazyVar<NumericLiteral> |
NaN |
_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
NumericLiteral(String strValue,
Number value,
IType type) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
NumericLiteral |
copy() |
Object |
evaluate() |
String |
getStrValue() |
Number |
getValue() |
boolean |
isCompileTimeConstant() |
boolean |
isExplicitlyTyped() |
void |
setExplicitlyTyped(boolean b) |
void |
setValue(Number dvalue) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, getType, getTypeImpl, isNullSafe, isUnchecked, setTypeaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfoequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitevaluate, getContextType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isSuppressed, isSynthetic, setLocation, setParentpublic static final LockingLazyVar<NumericLiteral> NaN
public static final LockingLazyVar<NumericLiteral> INFINITY
protected Number _value
public NumericLiteral copy()
public Number getValue()
getValue in interface INumericLiteralExpressionpublic boolean isCompileTimeConstant()
isCompileTimeConstant in interface IParsedElementisCompileTimeConstant in class ParsedElementpublic Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic String toString()
ExpressiontoString in class Expressionpublic String getStrValue()
public void setValue(Number dvalue)
public void setExplicitlyTyped(boolean b)
public boolean isExplicitlyTyped()
Copyright © 2020. All rights reserved.