public class DOMConversion
extends java.lang.Object
Constructor and Description |
---|
DOMConversion() |
Modifier and Type | Method and Description |
---|---|
static Value |
toAttr(Value v,
GenericSolver.SolverInterface c)
Converts the given value to a DOMAttr value.
|
static Value |
toEventTarget(Value v,
GenericSolver.SolverInterface c)
Converts the given value to an EventTarget value.
|
static Value |
toHTMLElement(Value v,
GenericSolver.SolverInterface c)
Converts the given value to a HTMLElement value.
|
static Value |
toNativeObject(HostObject nativeObject,
Value value,
boolean prototype,
GenericSolver.SolverInterface solverInterface)
Converts the given value to the given NativeObject (optionally following
the prototype chains).
|
static Value |
toNode(Value v,
GenericSolver.SolverInterface c)
Converts the given value to a DOMNode value.
|
public static Value toAttr(Value v, GenericSolver.SolverInterface c)
public static Value toEventTarget(Value v, GenericSolver.SolverInterface c)
public static Value toHTMLElement(Value v, GenericSolver.SolverInterface c)
public static Value toNativeObject(HostObject nativeObject, Value value, boolean prototype, GenericSolver.SolverInterface solverInterface)
nativeObject
- target NativeObjectvalue
- Value to convertprototype
- use the prototype chain?public static Value toNode(Value v, GenericSolver.SolverInterface c)
Copyright © 2009-2019 Aarhus University