lexx.autocomplete.java
Class JavaObjectUtil

java.lang.Object
  |
  +--lexx.autocomplete.java.JavaObjectUtil

public final class JavaObjectUtil
extends java.lang.Object

Factory class that gets all the methods/fields from a given object

Copyright (c) 2002-2003

Since:
19/03/2003
Version:
0.9

To Do

support arrays, and type casting

Author:
Mohammed Imran

Field Summary
static int INCLUDE_ALL
          Should display all methods/fields irrespective of what modifer is used
static int PROTECTED_ONLY
          Should display all methods/fields that are only protected i.e.
static int PUBLIC_AND_PROTECTED
          Should display all methods/fields that are public, protected i.e.
static int PUBLIC_ONLY
          Should display only methods/fields that are public
 
Constructor Summary
JavaObjectUtil(java.lang.Class c, int type)
          Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes
JavaObjectUtil(ClassName cl, int type)
          Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes
 
Method Summary
static java.lang.reflect.Field[] getAllInstanceFields(java.lang.Class c, int type)
          This is for interfaces as any class that implments the inteferace will automatically extend Object
static java.lang.reflect.Method[] getAllInstanceMethods(java.lang.Class c, int type)
          This is for interfaces as any class that implments the inteferace will automatically extend Object
static RootNode getInstanceObject(java.lang.Class c, int type)
          Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes
static RootNode getInstanceObject(ClassName cl, int type)
          Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes
 RootNode getList()
          trie data structure containing PopUpMethod which can be used for GUI purposes
static RootNode getStaticObject(java.lang.Class c)
          Puts the methods/fields of a given static object in to a trie data structure containing PopUpMethod which can be used for GUI purposes
static RootNode getStaticObject(ClassName cl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INCLUDE_ALL

public static final int INCLUDE_ALL
Should display all methods/fields irrespective of what modifer is used

See Also:
Constant Field Values

PUBLIC_ONLY

public static final int PUBLIC_ONLY
Should display only methods/fields that are public

See Also:
Constant Field Values

PUBLIC_AND_PROTECTED

public static final int PUBLIC_AND_PROTECTED
Should display all methods/fields that are public, protected i.e. not private

See Also:
Constant Field Values

PROTECTED_ONLY

public static final int PROTECTED_ONLY
Should display all methods/fields that are only protected i.e. not public or private

See Also:
Constant Field Values
Constructor Detail

JavaObjectUtil

public JavaObjectUtil(ClassName cl,
                      int type)
Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes

Parameters:
cl - containg the class you wish to display the methods/fields
type - which methods/fields to include i.e. only public ones, or protected ones, and so on

JavaObjectUtil

public JavaObjectUtil(java.lang.Class c,
                      int type)
Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes

Parameters:
c - containg the class you wish to display the methods/fields
type - which methods/fields to include i.e. only public ones, or protected ones, and so on
Method Detail

getList

public final RootNode getList()
trie data structure containing PopUpMethod which can be used for GUI purposes

Returns:
trie data structure

getInstanceObject

public static RootNode getInstanceObject(ClassName cl,
                                         int type)
Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes

Parameters:
cl - containg the class you wish to display the methods/fields
type - which methods/fields to include i.e. only public ones, or protected ones, and so on
Returns:
the trie data structure

getInstanceObject

public static RootNode getInstanceObject(java.lang.Class c,
                                         int type)
Puts the methods/fields of a given object in to a trie data structure containing PopUpMethod which can be used for GUI purposes

Parameters:
c - containg the class you wish to display the methods/fields
type - which methods/fields to include i.e. only public ones, or protected ones, and so on
Returns:
the trie data structure

getStaticObject

public static RootNode getStaticObject(java.lang.Class c)
Puts the methods/fields of a given static object in to a trie data structure containing PopUpMethod which can be used for GUI purposes

Parameters:
c - containg the class you wish to display the methods/fields
Returns:
the trie data structure

getAllInstanceFields

public static java.lang.reflect.Field[] getAllInstanceFields(java.lang.Class c,
                                                             int type)
This is for interfaces as any class that implments the inteferace will automatically extend Object

Parameters:
c -
Returns:

getAllInstanceMethods

public static java.lang.reflect.Method[] getAllInstanceMethods(java.lang.Class c,
                                                               int type)
This is for interfaces as any class that implments the inteferace will automatically extend Object

Parameters:
c -
Returns:

getStaticObject

public static RootNode getStaticObject(ClassName cl)