public class Conversion
extends java.lang.Object
Messages produced here are always of kind MAYBE (never CERTAIN) because conversion generally may occur conditionally.
Modifier and Type | Class and Description |
---|---|
static class |
Conversion.Hint
Preferred type for conversion.
|
Modifier and Type | Method and Description |
---|---|
static Value |
fromBooltoNum(Bool b)
9.3 Boolean to Number.
|
static Value |
fromStrtoNum(Str str,
GenericSolver.SolverInterface c)
9.3.1 String to Number.
|
static boolean |
isMaybeNonCallable(Value v) |
static Value |
toBoolean(Value v)
9.2 ToBoolean.
|
static int |
toInt32(double nm)
9.5 ToInt32.
|
static Value |
toInteger(Value v,
GenericSolver.SolverInterface c)
9.4 ToInteger.
|
static Value |
toNumber(Value v,
GenericSolver.SolverInterface c)
9.3 ToNumber.
|
static Value |
toObject(AbstractNode node,
Value v,
boolean warnAboutCoercions,
GenericSolver.SolverInterface c)
9.9 ToObject, returning a Value.
|
static Value |
toObject(AbstractNode node,
Value v,
GenericSolver.SolverInterface c) |
static java.util.Set<ObjectLabel> |
toObjectLabels(AbstractNode node,
Value v,
boolean warnAboutCoercions,
GenericSolver.SolverInterface c)
9.9 ToObject, returning a set of object labels.
|
static java.util.Set<ObjectLabel> |
toObjectLabels(AbstractNode node,
Value v,
GenericSolver.SolverInterface c) |
static Value |
toPrimitive(Value v,
Conversion.Hint hint,
GenericSolver.SolverInterface c)
9.1 ToPrimitive.
|
static Value |
toProperty(Value v,
GenericSolver.SolverInterface c)
ToProperty.
|
static Value |
toString(Value v,
GenericSolver.SolverInterface c)
9.8 ToString.
|
static long |
toUInt32(double nm)
9.6 ToUInt32.
|
public static Value fromStrtoNum(Str str, GenericSolver.SolverInterface c)
public static boolean isMaybeNonCallable(Value v)
public static int toInt32(double nm)
public static Value toInteger(Value v, GenericSolver.SolverInterface c)
public static Value toNumber(Value v, GenericSolver.SolverInterface c)
public static Value toObject(AbstractNode node, Value v, boolean warnAboutCoercions, GenericSolver.SolverInterface c)
public static Value toObject(AbstractNode node, Value v, GenericSolver.SolverInterface c)
public static java.util.Set<ObjectLabel> toObjectLabels(AbstractNode node, Value v, boolean warnAboutCoercions, GenericSolver.SolverInterface c)
public static java.util.Set<ObjectLabel> toObjectLabels(AbstractNode node, Value v, GenericSolver.SolverInterface c)
public static Value toPrimitive(Value v, Conversion.Hint hint, GenericSolver.SolverInterface c)
public static Value toProperty(Value v, GenericSolver.SolverInterface c)
public static Value toString(Value v, GenericSolver.SolverInterface c)
public static long toUInt32(double nm)
Copyright © 2009-2019 Aarhus University