public class GetSet
extends java.lang.Object
Constructor and Description |
---|
GetSet() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getDebug()
Get whether to print debug trace.
|
static void |
init(xdc.services.intern.xsr.Value.Observable obj)
Initialize getter and setter support on every field.
|
static void |
init(xdc.services.intern.xsr.Value.Observable obj,
int prop)
Initialize getter and setter support on an array element,
or other property with a numeric index.
|
static void |
init(xdc.services.intern.xsr.Value.Observable obj,
java.lang.String prop)
Initialize getter and setter support on a field, or other
property labeled by an identifier.
|
static void |
onGet(xdc.services.intern.xsr.Value.Observable obj,
int prop,
org.mozilla.javascript.Callable getter)
Add a user getter to the indicated array element, or other
property with a numeric index.
|
static void |
onGet(xdc.services.intern.xsr.Value.Observable obj,
java.lang.String prop,
org.mozilla.javascript.Callable getter)
Add a user getter to the named field of the object, or other
property labeled by an identifier.
|
static void |
onSet(xdc.services.intern.xsr.Value.Observable obj,
int prop,
org.mozilla.javascript.Callable setter)
Add a user setter to the indicated array element, or other
property with a numeric index.
|
static void |
onSet(xdc.services.intern.xsr.Value.Observable obj,
java.lang.String prop,
org.mozilla.javascript.Callable setter)
Add a user setter to the named field of the object, or other
property labeled by an identifier.
|
static void |
setDebug(boolean debug)
Set whether to print debug trace.
|
public static void init(xdc.services.intern.xsr.Value.Observable obj)
public static void init(xdc.services.intern.xsr.Value.Observable obj, java.lang.String prop)
public static void init(xdc.services.intern.xsr.Value.Observable obj, int prop)
public static void onSet(xdc.services.intern.xsr.Value.Observable obj, java.lang.String prop, org.mozilla.javascript.Callable setter)
public static void onSet(xdc.services.intern.xsr.Value.Observable obj, int prop, org.mozilla.javascript.Callable setter)
public static void onGet(xdc.services.intern.xsr.Value.Observable obj, java.lang.String prop, org.mozilla.javascript.Callable getter)
public static void onGet(xdc.services.intern.xsr.Value.Observable obj, int prop, org.mozilla.javascript.Callable getter)
public static boolean getDebug()
public static void setDebug(boolean debug)