final class NumberExpression extends PrimaryItemExpression
FALSE, TRUE| Constructor and Description |
|---|
NumberExpression(Number value) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
constant(NameEngine nameEngine) |
boolean |
equals(Object obj) |
int |
hashCode() |
Long |
invert(long rhs,
NameEngine nameEngine,
long bitmask) |
boolean |
isNumericLiteral() |
PrimaryItem |
leftHandSide()
Default implementation.
|
(package private) static NumberExpression |
newExpression(IrpParser.NumberContext numberContext) |
(package private) static NumberExpression |
newExpression(org.antlr.v4.runtime.tree.ParseTree ctx,
IrpParser.NumberContext numberContext) |
Map<String,Object> |
propertiesMap(boolean eval,
GeneralSpec generalSpec,
NameEngine nameEngine)
Generate a map of the properties in the very object.
|
PrimaryItem |
substituteConstantVariables(Map<String,Long> constantVariables)
Returns a PrimaryItem of the same type with all occurrences of the
variables in the dictionary replaced by their values in the dictionary.
|
BitwiseParameter |
toBitwiseParameter(RecognizeData recognizeData) |
Element |
toElement(Document document) |
String |
toIrpString(int radix) |
long |
toLong() |
long |
toLong(NameEngine nameEngine)
Produces a numerical result.
|
Number |
toNumber() |
newExpression, newExpressionnewExpression, weightcBoolean, newExpression, newExpression, newExpression, newExpression, newExpression, newExpression, newExpression, newExpressionEOF, newExpressionEOF, propertiesMap, toStringTree, toTreeViewerinvert, newPrimaryItem, newPrimaryItem, newPrimaryItemgetParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerNumberExpression(Number value)
static NumberExpression newExpression(IrpParser.NumberContext numberContext)
static NumberExpression newExpression(org.antlr.v4.runtime.tree.ParseTree ctx, IrpParser.NumberContext numberContext)
public long toLong()
toLong in interface NumericaltoLong in class Expressionpublic long toLong(NameEngine nameEngine)
NumericalnameEngine - used to resolve names in expressions.public Number toNumber()
toNumber in class Expressionpublic Element toElement(Document document)
toElement in interface XmlExporttoElement in class Expressionpublic String toIrpString(int radix)
toIrpString in class PrimaryItempublic Map<String,Object> propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine)
PrimaryItempropertiesMap in class PrimaryItemeval - If true, evaluate names.public Long invert(long rhs, NameEngine nameEngine, long bitmask)
public PrimaryItem leftHandSide()
PrimaryItemleftHandSide in interface EquationSolvingleftHandSide in class PrimaryItempublic boolean isNumericLiteral()
isNumericLiteral in class Expressionpublic PrimaryItem substituteConstantVariables(Map<String,Long> constantVariables)
PrimaryItemsubstituteConstantVariables in class PrimaryItemconstantVariables - Map<String, Long> of variables to replace.public boolean constant(NameEngine nameEngine)
constant in class Expressionpublic BitwiseParameter toBitwiseParameter(RecognizeData recognizeData)
Copyright © 2019. All rights reserved.