|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DynamicMethods
An interface that defines methods for a handling dynamic method, static method and property invocations
Method Summary | |
---|---|
void |
addDynamicConstructor(DynamicConstructor constructor)
Adds a dynamic constructor |
void |
addDynamicMethodInvocation(DynamicMethodInvocation methodInvocation)
Adds a new dynamic method invocation |
void |
addDynamicProperty(DynamicProperty property)
Adds a new dynamic property |
void |
addStaticMethodInvocation(StaticMethodInvocation methodInvocation)
Adds a new static method invocation |
DynamicMethodInvocation |
getDynamicMethod(String method_signature)
Retrieves a dynamic method for the specified method name |
DynamicProperty |
getDynamicProperty(String propertyName)
Retrieves a dynamic property for the specified property name |
Object |
getProperty(Object object,
String propertyName,
InvocationCallback callback)
Attempts to get a dynamic property. |
Object |
invokeConstructor(Object[] arguments,
InvocationCallback callBack)
Attempts to invoke a dynamic constructor. |
Object |
invokeMethod(Object object,
String methodName,
Object[] arguments,
InvocationCallback callback)
Attempts to invoke a dynamic method with the specified name and arguments If successful the callback object is marked as invoked. |
Object |
invokeStaticMethod(Object object,
String methodName,
Object[] arguments,
InvocationCallback callBack)
Attempts to invoke a dynamic static method with the specified name and arguments If successful the callback object is marked as invoked. |
void |
setProperty(Object object,
String propertyName,
Object newValue,
InvocationCallback callback)
Attempts to set a dynamic property. |
Method Detail |
---|
void addDynamicConstructor(DynamicConstructor constructor)
constructor
- The constructor to addvoid addDynamicMethodInvocation(DynamicMethodInvocation methodInvocation)
methodInvocation
- void addStaticMethodInvocation(StaticMethodInvocation methodInvocation)
methodInvocation
- void addDynamicProperty(DynamicProperty property)
property
- DynamicProperty getDynamicProperty(String propertyName)
propertyName
- The name of the property
DynamicMethodInvocation getDynamicMethod(String method_signature)
method_signature
- Then signature of the method
Object getProperty(Object object, String propertyName, InvocationCallback callback)
object
- The instancepropertyName
- The property name to getcallback
- The callback object
void setProperty(Object object, String propertyName, Object newValue, InvocationCallback callback)
object
- The instancepropertyName
- The property name to setcallback
- The callback objectObject invokeMethod(Object object, String methodName, Object[] arguments, InvocationCallback callback)
object
- The instance to invoke onmethodName
- The name of the methodarguments
- The arguments of the methodcallback
- The callback object
Object invokeStaticMethod(Object object, String methodName, Object[] arguments, InvocationCallback callBack)
object
- The instance to invoke onmethodName
- The name of the methodarguments
- The arguments of the methodcallBack
- The callback object
Object invokeConstructor(Object[] arguments, InvocationCallback callBack)
arguments
- The argumentscallBack
- The callback object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |