public final class Name extends PrimaryItem implements Floatable
| Constructor and Description |
|---|
Name(IrpParser.NameContext ctx) |
Name(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkName(String candidate)
Check the syntactical correctness of the name.
|
boolean |
constant(NameEngine nameEngine) |
boolean |
equals(Object obj) |
int |
hashCode() |
BitwiseParameter |
invert(BitwiseParameter rhs,
RecognizeData nameEngine)
Default implementation, for non-invertible expressions.
|
PrimaryItem |
leftHandSide()
Default implementation.
|
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) |
double |
toFloat(GeneralSpec generalSpec,
NameEngine nameEngine)
Produces a floating result.
|
String |
toIrpString(int radix) |
long |
toLong() |
static long |
toLong(IrpParser.NameContext ctx,
NameEngine nameEngine) |
long |
toLong(NameEngine nameEngine)
Produces a numerical result.
|
String |
toString() |
static String |
toString(IrpParser.NameContext ctx) |
static boolean |
validName(String name)
Check the syntactical correctness of the name.
|
int |
weight()
Returns a (somewhat arbitrary) measure of the complexity of the object.
|
newPrimaryItem, newPrimaryItem, newPrimaryItemgetParseTree, numberOfBits, numberOfBitSpecs, numberOfInfiniteRepeats, prerender, propertiesMap, stateWhenEntering, stateWhenExiting, toDocument, toIrpString, toStringTree, toStringTree, toTreeViewer, toTreeViewer, toTreeViewerpublic Name(IrpParser.NameContext ctx)
public Name(String name) throws InvalidNameException
InvalidNameExceptionpublic static boolean validName(String name)
name - Name to be checkedpublic static long toLong(IrpParser.NameContext ctx, NameEngine nameEngine) throws NameUnassignedException
NameUnassignedExceptionpublic static String toString(IrpParser.NameContext ctx)
public static void checkName(String candidate) throws InvalidNameException
candidate - Name to be checkedInvalidNameExceptionpublic PrimaryItem substituteConstantVariables(Map<String,Long> constantVariables)
PrimaryItemsubstituteConstantVariables in class PrimaryItemconstantVariables - Map<String, Long> of variables to replace.public String toIrpString(int radix)
toIrpString in interface FloatabletoIrpString in class PrimaryItempublic long toLong(NameEngine nameEngine) throws NameUnassignedException
NumericaltoLong in interface NumericalnameEngine - used to resolve names in expressions.NameUnassignedExceptionpublic long toLong()
throws NameUnassignedException
toLong in interface NumericalNameUnassignedExceptionpublic double toFloat(GeneralSpec generalSpec, NameEngine nameEngine) throws NameUnassignedException
FloatabletoFloat in interface FloatableNameUnassignedExceptionpublic boolean constant(NameEngine nameEngine)
constant in interface Floatableconstant in class PrimaryItempublic int weight()
IrpObjectpublic Map<String,Object> propertiesMap(boolean eval, GeneralSpec generalSpec, NameEngine nameEngine)
PrimaryItempropertiesMap in class PrimaryItemeval - If true, evaluate names.public BitwiseParameter invert(BitwiseParameter rhs, RecognizeData nameEngine)
PrimaryIteminvert in interface EquationSolvinginvert in class PrimaryItempublic PrimaryItem leftHandSide()
PrimaryItemleftHandSide in interface EquationSolvingleftHandSide in class PrimaryItempublic BitwiseParameter toBitwiseParameter(RecognizeData recognizeData)
toBitwiseParameter in interface NumericalCopyright © 2019. All rights reserved.