Java Doc for ClassTable.java in  » UML » jrefactory » org » acm » seguin » completer » info » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » UML » jrefactory » org.acm.seguin.completer.info 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.acm.seguin.completer.info.ClassTable

ClassTable
final public class ClassTable implements java.io.Serializable(Code)
Maps class names to information that is known about those classes. Information about each class is stored in a ClassInfo object. All methods are thread-safe.
author:
   Jason Ginchereau
See Also:   ClassInfo


Field Summary
final static  booleanDEBUG
    
final public static  StringUNNAMED_PACKAGE
    
 int_iLastClassCount
    
 Set_setClassNames
    
 String_strExclusionRE
    
final static  NavigatorLoggerlogger
    

Constructor Summary
public  ClassTable()
     Creates a new ClassTable.
public  ClassTable(ClassTable argParent, List argListCNCClassInfos, ClassLoader argClassLoader)
    

Method Summary
public synchronized  booleancontains(String fullClassName)
     Tests if a class is contained in the database.
Parameters:
  fullClassName - a fully-qualified class name.
public synchronized  ClassInfoget(String fullClassName)
     Gets information about a class, given a class name.
Parameters:
  fullClassName - a fully-qualified class name.
public synchronized  SetgetAllClassNames(String argExclusionRE)
     Returns a set of all class names in this table except classes whose full names match the given regexp.
public synchronized  ListgetAllClassesInPackage(String argPackage)
     Returns a list of all classes in the given package.
public  ClassInfogetAndLazyLoad(String argFullClassName)
     Attempts to get the ClassInfo object for the given class name.
public synchronized  ListgetClassesInPackage(String packageName)
     Gets a list of all known classes in a package.
Parameters:
  packageName - the name of the package, using the java .
public static synchronized  ClassTablegetExistingInstance(ClassPathSrc argSource)
    
public static synchronized  ClassTablegetInstance(ClassPathSrc argSource)
     Gets a static instance of a ClassTable that can be shared by everyone with the same key.
public static  ClassTablegetInstance()
     Gets a static instance of a ClassTable using the default key.
public synchronized  ListgetPackages()
     Gets a list of all packages in the database. a sorted List of Strings, where eachString is a name of a package in the database.
public  ClassTablegetParent()
     Gets the parent ClassTable, which is be queried for classes that are not recognized by this ClassTable.
public  booleanisAccessAllowed(ClassInfo in, MemberInfo target, boolean requireStatic, boolean defaultAnswer)
    
public  booleanisAssignableTo(String fromClass, String toClass, boolean defaultAnswer)
    
public static  voidmain(String[] args)
    
static  voidoldTest()
    
public synchronized  voidpreLoad(List argListCNCClassInfos)
     Loads ClassInfo entry information out of a ClassNameCache .
static  voidprintAll()
    
public synchronized  voidput(ClassInfo classInfo)
     Enters class information into the database.
Parameters:
  classInfo - a ClassInfo object that information abouta class to be put in the database.
public synchronized  voidreinit(ClassPathSrc argSource)
    
public synchronized  ClassInforemove(String fullClassName)
     Removes a class from the database.
Parameters:
  fullClassName - a fully-qualified class name.
public static synchronized  ClassTableremoveInstance(ClassPathSrc argSource)
    
public synchronized  voidsetParent(ClassTable parent)
     Sets the parent ClassTable, which will be queried for classes that are not recognized by this ClassTable.
public synchronized  intsize()
     Gets the size of the database.

Field Detail
DEBUG
final static boolean DEBUG(Code)



UNNAMED_PACKAGE
final public static String UNNAMED_PACKAGE(Code)
Description of the Field



_iLastClassCount
int _iLastClassCount(Code)



_setClassNames
Set _setClassNames(Code)



_strExclusionRE
String _strExclusionRE(Code)



logger
final static NavigatorLogger logger(Code)




Constructor Detail
ClassTable
public ClassTable()(Code)
Creates a new ClassTable.



ClassTable
public ClassTable(ClassTable argParent, List argListCNCClassInfos, ClassLoader argClassLoader)(Code)
Constructor for the ClassTable object
Parameters:
  argParent - Description of the Parameter
Parameters:
  argListCNCClassInfos - Description of the Parameter
Parameters:
  argClassLoader - Description of the Parameter




Method Detail
contains
public synchronized boolean contains(String fullClassName)(Code)
Tests if a class is contained in the database.
Parameters:
  fullClassName - a fully-qualified class name. Note that for innerclasses, the $ notation is used in the class name. true if information about the class isin the database.



get
public synchronized ClassInfo get(String fullClassName)(Code)
Gets information about a class, given a class name.
Parameters:
  fullClassName - a fully-qualified class name. Note that for innerclasses, the $ notation is used in the class name.Example: java.lang.Character$Subset the ClassInfo object for the class, ornull if the class is not in the database.



getAllClassNames
public synchronized Set getAllClassNames(String argExclusionRE)(Code)
Returns a set of all class names in this table except classes whose full names match the given regexp.
Parameters:
  argExclusionRE - a regexp The allClassNames valuere



getAllClassesInPackage
public synchronized List getAllClassesInPackage(String argPackage)(Code)
Returns a list of all classes in the given package. Items in this list may not have been fully loaded into the class table yet. The list contains _full_ class names
Parameters:
  argPackage - The package name (java.util) or (java.util.*) The allClassesInPackage value



getAndLazyLoad
public ClassInfo getAndLazyLoad(String argFullClassName)(Code)
Attempts to get the ClassInfo object for the given class name. This method does the lazy loading that will convert a ClassNameCache.ClassInfo into ClassInfo. If not ClassInfo can be loaded, null is returned.
Parameters:
  argFullClassName - Description of the Parameter The andLazyLoad value



getClassesInPackage
public synchronized List getClassesInPackage(String packageName)(Code)
Gets a list of all known classes in a package.
Parameters:
  packageName - the name of the package, using the java . notation. a sorted List of Stringnames, or null if the package is unknown. This Listmay be safely modified by the user, as it is no longer connected tothe database after it is returned.



getExistingInstance
public static synchronized ClassTable getExistingInstance(ClassPathSrc argSource)(Code)
Gets the existingInstance attribute of the ClassTable class
Parameters:
  argSource - the class path src The existingInstance value



getInstance
public static synchronized ClassTable getInstance(ClassPathSrc argSource)(Code)
Gets a static instance of a ClassTable that can be shared by everyone with the same key.
Parameters:
  argSource - the class path src The instance value



getInstance
public static ClassTable getInstance()(Code)
Gets a static instance of a ClassTable using the default key. The instance value



getPackages
public synchronized List getPackages()(Code)
Gets a list of all packages in the database. a sorted List of Strings, where eachString is a name of a package in the database. ThisList may be safely modified by the user, as it is nolonger connected to the database after it is returned.



getParent
public ClassTable getParent()(Code)
Gets the parent ClassTable, which is be queried for classes that are not recognized by this ClassTable. The parent value



isAccessAllowed
public boolean isAccessAllowed(ClassInfo in, MemberInfo target, boolean requireStatic, boolean defaultAnswer)(Code)
Gets the accessAllowed attribute of the ClassTable object
Parameters:
  in - Description of the Parameter
Parameters:
  target - Description of the Parameter
Parameters:
  requireStatic - Description of the Parameter
Parameters:
  defaultAnswer - Description of the Parameter The accessAllowed value



isAssignableTo
public boolean isAssignableTo(String fromClass, String toClass, boolean defaultAnswer)(Code)
Gets the assignableTo attribute of the ClassTable object
Parameters:
  fromClass - Description of the Parameter
Parameters:
  toClass - Description of the Parameter
Parameters:
  defaultAnswer - Description of the Parameter The assignableTo value



main
public static void main(String[] args)(Code)
The main program for the ClassTable class
Parameters:
  args - The command line arguments



oldTest
static void oldTest()(Code)



preLoad
public synchronized void preLoad(List argListCNCClassInfos)(Code)
Loads ClassInfo entry information out of a ClassNameCache . The entries themselves will not actually be loaded into memory until they are needed.
Parameters:
  argListCNCClassInfos - Description of the Parameter



printAll
static void printAll()(Code)



put
public synchronized void put(ClassInfo classInfo)(Code)
Enters class information into the database.
Parameters:
  classInfo - a ClassInfo object that information abouta class to be put in the database. This object should not bemodified after it is put in the database.



reinit
public synchronized void reinit(ClassPathSrc argSource)(Code)
Description of the Method
Parameters:
  argCNC - Description of the Parameter



remove
public synchronized ClassInfo remove(String fullClassName)(Code)
Removes a class from the database.
Parameters:
  fullClassName - a fully-qualified class name. Note that for innerclasses, the $ notation is used in the class name. the ClassInfo object that was removedfrom the database, or null if there was not one.



removeInstance
public static synchronized ClassTable removeInstance(ClassPathSrc argSource)(Code)
Remove the instance
Parameters:
  argSource - the class path src The existingInstance value



setParent
public synchronized void setParent(ClassTable parent)(Code)
Sets the parent ClassTable, which will be queried for classes that are not recognized by this ClassTable.
Parameters:
  parent - The new parent value



size
public synchronized int size()(Code)
Gets the size of the database. the number of classes in the database.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.