public class NativeFunctions extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
evaluateGetter(HostObject nativeobject,
ObjectLabel objlabel,
String propertyname,
GenericSolver.SolverInterface c) |
static void |
evaluateSetter(HostObject nativeobject,
ObjectLabel objlabel,
String propertyname,
Value v,
GenericSolver.SolverInterface c) |
static void |
expectParameters(HostObject hostobject,
FunctionCalls.CallInfo call,
GenericSolver.SolverInterface c,
int min,
int max)
Issues a warning if the number of parameters is not in the given interval.
|
static Value |
readParameter(FunctionCalls.CallInfo call,
State state,
int param)
Reads the value of a call parameter.
|
static Value |
readUnknownParameter(FunctionCalls.CallInfo call)
Reads the value of a call parameter.
|
static boolean |
throwTypeErrorIfConstructor(FunctionCalls.CallInfo call,
State state,
GenericSolver.SolverInterface c)
Throws a type error exception and issues a warning if the given call is a constructor call.
|
static boolean |
throwTypeErrorIfWrongKindOfThis(ECMAScriptObjects nativeobject,
FunctionCalls.CallInfo call,
State state,
GenericSolver.SolverInterface c,
ObjectLabel.Kind kind)
Throws a type error exception and issues a warning if the kind of the 'this' object is not as expected.
|
static void |
updateArrayLength(AbstractNode node,
State state,
Set<ObjectLabel> objlabels,
Str propertystr,
Value value,
int register,
GenericSolver.SolverInterface c)
Updates the length property of any arrays among the given objects in accordance with 15.4.5.1.
|
public static void evaluateGetter(HostObject nativeobject, ObjectLabel objlabel, String propertyname, GenericSolver.SolverInterface c)
public static void evaluateSetter(HostObject nativeobject, ObjectLabel objlabel, String propertyname, Value v, GenericSolver.SolverInterface c)
public static void expectParameters(HostObject hostobject, FunctionCalls.CallInfo call, GenericSolver.SolverInterface c, int min, int max)
public static Value readParameter(FunctionCalls.CallInfo call, State state, int param)
public static Value readUnknownParameter(FunctionCalls.CallInfo call)
public static boolean throwTypeErrorIfConstructor(FunctionCalls.CallInfo call, State state, GenericSolver.SolverInterface c)
public static boolean throwTypeErrorIfWrongKindOfThis(ECMAScriptObjects nativeobject, FunctionCalls.CallInfo call, State state, GenericSolver.SolverInterface c, ObjectLabel.Kind kind)
public static void updateArrayLength(AbstractNode node, State state, Set<ObjectLabel> objlabels, Str propertystr, Value value, int register, GenericSolver.SolverInterface c)
Copyright © 2012 Aarhus University