|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxdc.services.getset.GetSet
public class GetSet
A helper class to add getters and setters to a field of an XDCscript object.
Constructor Summary | |
---|---|
GetSet()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GetSet()
Method Detail |
---|
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)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |