public class Conversion extends Object
| 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 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 |
toInteger(Value v,
int register,
GenericSolver.SolverInterface c)
9.4 ToInteger.
|
static Value |
toNumber(Value v,
GenericSolver.SolverInterface c)
9.3 ToNumber.
|
static Value |
toNumber(Value v,
int register,
GenericSolver.SolverInterface c)
9.3 ToNumber.
|
static Value |
toObject(State state,
AbstractNode node,
Value v,
GenericSolver.SolverInterface c)
9.9 ToObject, returning a Value.
|
static Set<ObjectLabel> |
toObjectLabels(State state,
AbstractNode node,
Value v,
GenericSolver.SolverInterface c)
9.9 ToObject, returning a set of object labels.
|
static Value |
toPrimitive(Value v,
Conversion.Hint hint,
GenericSolver.SolverInterface c)
9.1 ToPrimitive.
|
static Value |
toPrimitive(Value v,
int register,
Conversion.Hint hint,
GenericSolver.SolverInterface c)
9.1 ToPrimitive.
|
static Value |
toString(Value v,
GenericSolver.SolverInterface c)
9.8 ToString.
|
static Value |
toString(Value v,
int register,
GenericSolver.SolverInterface c)
9.8 ToString.
|
static long |
toUInt16(double nm)
9.7 ToUInt16.
|
static long |
toUInt32(double nm)
9.6 ToUInt32.
|
public static Value fromStrtoNum(Str str, GenericSolver.SolverInterface c)
public static int toInt32(double nm)
public static Value toInteger(Value v, GenericSolver.SolverInterface c)
public static Value toInteger(Value v, int register, GenericSolver.SolverInterface c)
public static Value toNumber(Value v, GenericSolver.SolverInterface c)
public static Value toNumber(Value v, int register, GenericSolver.SolverInterface c)
public static Value toObject(State state, AbstractNode node, Value v, GenericSolver.SolverInterface c)
public static Set<ObjectLabel> toObjectLabels(State state, AbstractNode node, Value v, GenericSolver.SolverInterface c)
public static Value toPrimitive(Value v, Conversion.Hint hint, GenericSolver.SolverInterface c)
public static Value toPrimitive(Value v, int register, Conversion.Hint hint, GenericSolver.SolverInterface c)
public static Value toString(Value v, GenericSolver.SolverInterface c)
public static Value toString(Value v, int register, GenericSolver.SolverInterface c)
public static long toUInt16(double nm)
public static long toUInt32(double nm)
Copyright © 2012 Aarhus University