final class ThreePartExpression extends Expression
FALSE, TRUE| Modifier and Type | Method and Description |
|---|---|
boolean |
constant(NameEngine nameEngine) |
boolean |
equals(Object obj) |
int |
hashCode() |
BitwiseParameter |
invert(BitwiseParameter rhs,
RecognizeData recognizeData)
Default implementation, for non-invertible expressions.
|
PrimaryItem |
leftHandSide()
Default implementation.
|
static Expression |
newExpression(IrpParser.ExpressionContext ctx) |
static Expression |
newExpression(org.antlr.v4.runtime.tree.ParseTree ctx,
IrpParser.ExpressionContext left,
String operator,
IrpParser.ExpressionContext right) |
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(NameEngine nameEngine)
Produces a numerical result.
|
int |
weight()
Returns a (somewhat arbitrary) measure of the complexity of the object.
|
cBoolean, isNumericLiteral, newExpression, newExpression, newExpression, newExpression, newExpression, newExpression, newExpressionEOF, newExpressionEOF, propertiesMap, toLong, toNumber, toStringTree, toTreeViewernewPrimaryItem, newPrimaryItem, newPrimaryItemgetParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerpublic static Expression newExpression(IrpParser.ExpressionContext ctx)
public static Expression newExpression(org.antlr.v4.runtime.tree.ParseTree ctx, IrpParser.ExpressionContext left, String operator, IrpParser.ExpressionContext right)
public PrimaryItem substituteConstantVariables(Map<String,Long> constantVariables)
PrimaryItemsubstituteConstantVariables in class PrimaryItemconstantVariables - Map<String, Long> of variables to replace.public 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 int weight()
IrpObjectpublic long toLong(NameEngine nameEngine) throws NameUnassignedException
NumericalnameEngine - used to resolve names in expressions.NameUnassignedExceptionpublic BitwiseParameter toBitwiseParameter(RecognizeData recognizeData)
public Element toElement(Document document)
toElement in interface XmlExporttoElement in class Expressionpublic BitwiseParameter invert(BitwiseParameter rhs, RecognizeData recognizeData) throws NameUnassignedException
PrimaryIteminvert in interface EquationSolvinginvert in class PrimaryItemNameUnassignedExceptionpublic PrimaryItem leftHandSide()
PrimaryItemleftHandSide in interface EquationSolvingleftHandSide in class PrimaryItempublic boolean constant(NameEngine nameEngine)
constant in class ExpressionCopyright © 2019. All rights reserved.