| java.lang.Object pnuts.lang.Configuration pnuts.ext.ConfigurationAdapter pnuts.awt.EventQueueConfiguration
EventQueueConfiguration | public class EventQueueConfiguration extends ConfigurationAdapter (Code) | | This class allows you to execute all Java API access from scrips on the event dispatch thread.
e.g.
context.setConfiguration(new EventQueueConfiguration(context.getConfiguration()));
|
Method Summary | |
public Object | callConstructor(Context context, Class clazz, Object args, Class types) | public Object | callMethod(Context context, Class c, String name, Object args, Class types, Object target) Calls a method. | public Object | getField(Context context, Object target, String name) | public Object | getStaticField(Context context, Class clazz, String name) | public void | putField(Context context, Object target, String name, Object expr) | public void | putStaticField(Context context, Class clazz, String name, Object value) |
EventQueueConfiguration | public EventQueueConfiguration()(Code) | | Constructor
|
EventQueueConfiguration | public EventQueueConfiguration(Configuration base)(Code) | | Constructor
Parameters: base - the base configuration |
callMethod | public Object callMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code) | | Calls a method.
Parameters: method - the method to call Parameters: target - the object Parameters: args - the arguments the methods return value |
Methods inherited from pnuts.ext.ConfigurationAdapter | public Object callConstructor(Context context, Class c, Object[] args, Class[] types)(Code)(Java Doc) public Object callMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code)(Java Doc) public Map createMap(int size, Context context)(Code)(Java Doc) public String formatObject(Object target)(Code)(Java Doc) public Constructor[] getConstructors(Class cls)(Code)(Java Doc) public Object getElement(Context context, Object target, Object key)(Code)(Java Doc) public Object getField(Context context, Object target, String name)(Code)(Java Doc) public Method[] getMethods(Class cls)(Code)(Java Doc) public Configuration getParent()(Code)(Java Doc) public Object getRange(Context context, Object target, Object idx1, Object idx2)(Code)(Java Doc) public Object getStaticField(Context context, Class clazz, String name)(Code)(Java Doc) public Object handleUndefinedSymbol(String symbol, Context context)(Code)(Java Doc) public Object makeArray(Object[] array, Context context)(Code)(Java Doc) public void putField(Context context, Object target, String name, Object value)(Code)(Java Doc) public void putStaticField(Context context, Class clazz, String name, Object value)(Code)(Java Doc) public void setElement(Context context, Object target, Object key, Object value)(Code)(Java Doc) public Object setRange(Context context, Object target, Object idx1, Object idx2, Object value)(Code)(Java Doc) public Callable toCallable(Object obj)(Code)(Java Doc) public Enumeration toEnumeration(Object obj)(Code)(Java Doc)
|
Methods inherited from pnuts.lang.Configuration | abstract public Object callConstructor(Context context, Class c, Object[] args, Class[] types)(Code)(Java Doc) abstract public Object callMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code)(Java Doc) public List createList()(Code)(Java Doc) public Map createMap(int size, Context context)(Code)(Java Doc) public String formatObject(Object obj)(Code)(Java Doc) abstract public Constructor[] getConstructors(Class cls)(Code)(Java Doc) public static Configuration getDefault()(Code)(Java Doc) protected String[] getDefaultImports()(Code)(Java Doc) abstract public Object getElement(Context context, Object target, Object key)(Code)(Java Doc) abstract public Object getField(Context context, Object target, String name)(Code)(Java Doc) protected ClassLoader getInitialClassLoader()(Code)(Java Doc) abstract public Method[] getMethods(Class cls)(Code)(Java Doc) abstract public Object getRange(Context context, Object target, Object idx1, Object idx2)(Code)(Java Doc) abstract public Object getStaticField(Context context, Class clazz, String name)(Code)(Java Doc) public Object handleUndefinedSymbol(String symbol, Context context)(Code)(Java Doc) protected void initializeOperators()(Code)(Java Doc) protected static Object invokeMethod(Context context, Class c, String name, Object args, Class types, Object target)(Code)(Java Doc) public Object makeArray(Object[] parameters, Context context)(Code)(Java Doc) abstract public void putField(Context context, Object target, String name, Object value)(Code)(Java Doc) abstract public void putStaticField(Context context, Class clazz, String name, Object value)(Code)(Java Doc) abstract public void setElement(Context context, Object target, Object key, Object value)(Code)(Java Doc) abstract public Object setRange(Context context, Object target, Object idx1, Object idx2, Object value)(Code)(Java Doc) abstract public Callable toCallable(Object obj)(Code)(Java Doc) abstract public Enumeration toEnumeration(Object obj)(Code)(Java Doc)
|
|
|