Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

GuiComponents.scripting.SearchableObjectRegistry Class Reference

Inheritance diagram for GuiComponents.scripting.SearchableObjectRegistry:

Inheritance graph
[legend]
Collaboration diagram for GuiComponents.scripting.SearchableObjectRegistry:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

Author:
palmer

Definition at line 17 of file SearchableObjectRegistry.java.


Member Function Documentation

List GuiComponents.scripting.SearchableObjectRegistry.completeMemberName Object  var,
String  expr,
String  prefix
[protected]
 

Completes a member name.

Parameters:
var The object
prefix The part to be completed

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:

List GuiComponents.scripting.SearchableObjectRegistry.completeName String  context,
String  part
 

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:

List GuiComponents.scripting.SearchableObjectRegistry.provideHelp String  method  ) 
 

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.

Returns:
a List of helpful Strings
Parameters:
method The method string

Implements GuiComponents.scripting.NameCompleter.

Definition at line 174 of file SearchableObjectRegistry.java.


The documentation for this class was generated from the following file:
Generated on Thu Jul 15 09:56:25 2004 for SCT DAQ/DCS Software - Java by doxygen 1.3.5