Main Page   Packages   Class Hierarchy   Compound List   Compound Members   Related Pages  

scripting.SearchableObjectRegistry Class Reference

Inheritance diagram for scripting.SearchableObjectRegistry:

scripting.NameCompleter 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.


Public Attributes

Hashtable reg = new Hashtable ()
 Following code copied(!) from super class - I need access to data members arrgghh!

SearchableObjectRegistry parent = null

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!!


Detailed Description

Author:
palmer


Member Function Documentation

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

Completes a member name.

Parameters:
var The object
prefix The part to be completed

List 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 scripting.NameCompleter.

List 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 scripting.NameCompleter.


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:38:46 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3