public abstract class PrimaryItem extends IrpObject implements Numerical, EquationSolving
| Modifier | Constructor and Description |
|---|---|
protected |
PrimaryItem(org.antlr.v4.runtime.tree.ParseTree ctx) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
constant(NameEngine nameEngine) |
BitwiseParameter |
invert(BitwiseParameter rhs,
RecognizeData nameEngine)
Default implementation, for non-invertible expressions.
|
PrimaryItem |
leftHandSide()
Default implementation.
|
static PrimaryItem |
newPrimaryItem(IrpParser.Primary_itemContext ctx) |
static PrimaryItem |
newPrimaryItem(long n) |
static PrimaryItem |
newPrimaryItem(String name) |
abstract Map<String,Object> |
propertiesMap(boolean eval,
GeneralSpec generalSpec,
NameEngine nameEngine)
Generate a map of the properties in the very object.
|
abstract 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.
|
abstract String |
toIrpString(int radix) |
equals, getParseTree, hashCode, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toElement, toIrpString, toString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewer, weightclone, finalize, getClass, notify, notifyAll, wait, wait, waittoBitwiseParameter, toLong, toLongpublic static PrimaryItem newPrimaryItem(IrpParser.Primary_itemContext ctx)
public static PrimaryItem newPrimaryItem(long n)
public static PrimaryItem newPrimaryItem(String name) throws InvalidNameException
InvalidNameExceptionpublic abstract String toIrpString(int radix)
toIrpString in class IrpObjectpublic abstract Map<String,Object> propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine)
eval - If true, evaluate names.generalSpec - nameEngine - public BitwiseParameter invert(BitwiseParameter rhs, RecognizeData nameEngine) throws NameUnassignedException
invert in interface EquationSolvingrhs - nameEngine - NameUnassignedExceptionpublic PrimaryItem leftHandSide()
leftHandSide in interface EquationSolvingpublic abstract PrimaryItem substituteConstantVariables(Map<String,Long> constantVariables)
constantVariables - Map<String, Long> of variables to replace.public abstract boolean constant(NameEngine nameEngine)
Copyright © 2019. All rights reserved.