final class FivePartExpression 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.
|
static FivePartExpression |
newExpression(IrpParser.ExpressionContext ctx) |
static FivePartExpression |
newExpression(org.antlr.v4.runtime.tree.ParseTree ctx,
org.antlr.v4.runtime.tree.ParseTree cond,
org.antlr.v4.runtime.tree.ParseTree trueExpression,
org.antlr.v4.runtime.tree.ParseTree falseExpression) |
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) |
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, toElement, toLong, toNumber, toStringTree, toTreeViewerleftHandSide, newPrimaryItem, newPrimaryItem, newPrimaryItemgetParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerpublic static FivePartExpression newExpression(IrpParser.ExpressionContext ctx)
public static FivePartExpression newExpression(org.antlr.v4.runtime.tree.ParseTree ctx, org.antlr.v4.runtime.tree.ParseTree cond, org.antlr.v4.runtime.tree.ParseTree trueExpression, org.antlr.v4.runtime.tree.ParseTree falseExpression)
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 boolean constant(NameEngine nameEngine)
constant in class Expressionpublic BitwiseParameter invert(BitwiseParameter rhs, RecognizeData recognizeData) throws NameUnassignedException
PrimaryIteminvert in interface EquationSolvinginvert in class PrimaryItemNameUnassignedExceptionCopyright © 2019. All rights reserved.