lexx.api
Interface Packages

All Known Implementing Classes:
JavaPackages

public interface Packages

Reads in Classes in an OO langauge

Copyright (c) 2002-2003

Since:
02/03/2003
Version:
1.0
Author:
Mohammed Imran

Method Summary
 Trie getClassEnvironment()
          Stores all the available classes in the project.
 java.util.List getClassMap()
           
 Directory getDirectory(java.lang.String name)
          Using getClassMap()
 Trie getEveryPossibleClass()
          Stores all the available classes in the project.
 javax.swing.JTree setupTree(EditorFrame editFrame)
          This method is used in testing allow you to see how the classes look like
 void update(java.io.File f)
          This updates internal data structures
 

Method Detail

update

public void update(java.io.File f)
This updates internal data structures

Parameters:
f - - the jar file/directory which has been changed/added

getClassMap

public java.util.List getClassMap()
Returns:
a list of all the classes in a compact form

getEveryPossibleClass

public Trie getEveryPossibleClass()
Stores all the available classes in the project. However it contains both the short and full name of the class, such as
java.awt.Frame :: java.awt.Frame
Frame :: java.awt.Frame

Returns:
a trie data structure containing these classes

getClassEnvironment

public Trie getClassEnvironment()
Stores all the available classes in the project. However this only stores the full name of the class, such as
java.awt.Frame :: java.awt.Frame, but not
Frame :: java.awt.Frame

Returns:
a trie data structure containing these classes

setupTree

public javax.swing.JTree setupTree(EditorFrame editFrame)
This method is used in testing allow you to see how the classes look like


getDirectory

public Directory getDirectory(java.lang.String name)
Using getClassMap()

Parameters:
name - name of the package you wish to get
Returns:
all the classes found in that package