Public Member Functions | |
SearchableObjectRegistry () | |
Creates a new instance of SearchableObjectRegistry. | |
SearchableObjectRegistry (SearchableObjectRegistry parent) | |
void | register (String name, Object obj) |
void | unregister (String name) |
Object | lookup (String name) throws IllegalArgumentException |
List | completeName (String context, String part) |
Tries to complete this string!! Strategy: attempt only to do this for objects and variables i.e. | |
List | provideHelp (String method) |
This function returns a list of help Strings. | |
Protected Member Functions | |
List | completeVarName (String str) |
Completes a name that is definately a var name (or nothing!). | |
List | completeMemberName (Object var, String expr, String prefix) |
Completes a member name. | |
Class | parseString (Class c, String str) |
Returns the class associated with the result of str applied to c Note, don't actually do it!! | |
Package Attributes | |
Hashtable | reg = new Hashtable () |
Following code copied(!) from super class - I need access to data members arrgghh! | |
SearchableObjectRegistry | parent = null |
Definition at line 17 of file SearchableObjectRegistry.java.
|
Completes a member name.
Definition at line 111 of file SearchableObjectRegistry.java. References GuiComponents.scripting.SearchableObjectRegistry.parseString(). Referenced by GuiComponents.scripting.SearchableObjectRegistry.completeName(). |
Here is the call graph for this function:
|
Tries to complete this string!! Strategy: attempt only to do this for objects and variables i.e. do not try and find package names/classes so, require everything before a dot to be the beginning of a variable name (if there is a . then it is a variable name) everything after the dot is a field/method or constructor name Use reflection to find these out The string should be in Java format - i.e. dots separate fields other languages may need to translate to get into this format Implements GuiComponents.scripting.NameCompleter. Definition at line 71 of file SearchableObjectRegistry.java. References GuiComponents.scripting.SearchableObjectRegistry.completeMemberName(), and GuiComponents.scripting.SearchableObjectRegistry.completeVarName(). |
Here is the call graph for this function:
|
This function returns a list of help Strings. It is intended to be used to help the user when calling a function/method by providing an argument list.
Implements GuiComponents.scripting.NameCompleter. Definition at line 174 of file SearchableObjectRegistry.java. |