Java Doc for ClassHierarchy.java in  » Database-DBMS » db4o-6.4 » EDU » purdue » cs » bloat » editor » 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 » Database DBMS » db4o 6.4 » EDU.purdue.cs.bloat.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   EDU.purdue.cs.bloat.editor.ClassHierarchy

ClassHierarchy
public class ClassHierarchy (Code)
ClassHierarchy maintains a graph of the subclass relationships of the classes loaded by the ClassInfoLoader.
See Also:   ClassInfoLoader

Inner Class :class TypeNode extends GraphNode
Inner Class :public class ResolvesToWith

Field Summary
public static  booleanDEBUG
    
final static  intMAX_BOOL
    
final static  intMAX_BYTE
    
final static  intMAX_CHAR
    
final static  intMAX_INT
    
final static  intMAX_SHORT
    
final static  intMIN_BOOL
    
final static  intMIN_BYTE
    
final static  intMIN_CHAR
    
final static  intMIN_INT
    
final static  intMIN_SHORT
    
final public static  TypePOS_BYTE
    
final public static  TypePOS_SHORT
    
public static  booleanRELAX
    
final static  intZERO
    
 Setclasses
    
 booleanclosure
    
 EditorContextcontext
    
 GraphextendsGraph
    
 GraphimplementsGraph
    
 SetinWorklist
    
 LinkedListworklist
    

Constructor Summary
public  ClassHierarchy(EditorContext context, Collection initial, boolean closure)
     Constructor.

Method Summary
public  voidaddClassNamed(String name)
     Adds a class of a given name to the ClassHierarchy.
public  Collectionclasses()
     Returns (the Types of) all of the classes and interfaces in the hierarchy.
public  booleanclosure()
    
public  Collectionimplementors(Type type)
     Returns the classes (Types) that implement a given interface as a Collection of Types.
public  Collectioninterfaces(Type type)
    
public  TypeintersectType(Type a, Type b)
     Returns the intersection of two types.
public  MemberRefmethodInvoked(Type receiver, NameAndType method)
     Returns the MemberRef of the method that would be invoked if a given method of a given type was invoked.
public  booleanmethodIsOverridden(Type classType, NameAndType nat)
     Determines whether or not a class's method is overriden by any of its subclasses.
public  voidprintClasses(PrintWriter out, int indent)
     Prints the class hierarchy (i.e.
public  voidprintImplements(PrintWriter out, int indent)
     Prints the implements hierarchy to a PrintWriter.
public  SetresolvesToWith(MemberRef method)
     Returns a set of ResolvesToWith that represent all subclass methods that override a given method and the subclasses that when used as receivers resolve to that method.
public static  TypesetToType(BitSet v)
     Given a set of bits representing the range of values some type has, determines what that Type is.
public  booleansubclassOf(Type a, Type b)
     Returns whether or not a is a subclass of b.
public  Collectionsubclasses(Type type)
     Returns the immediate subclasses of a given Type as a Collection of Types.

The subclass relationship at the classfile level is a little screwy with respect to interfaces.

public  Typesuperclass(Type type)
     Returns the superclass of a given Type.
public static  BitSettypeToSet(Type type)
     Returns a BitSet representing the possible values of a given integral type.
public  TypeunionType(Type a, Type b)
     Returns the union of two types.
public  TypeunionTypes(Collection types)
     Returns the most refined common supertype for a bunch of Types.

Field Detail
DEBUG
public static boolean DEBUG(Code)



MAX_BOOL
final static int MAX_BOOL(Code)



MAX_BYTE
final static int MAX_BYTE(Code)



MAX_CHAR
final static int MAX_CHAR(Code)



MAX_INT
final static int MAX_INT(Code)



MAX_SHORT
final static int MAX_SHORT(Code)



MIN_BOOL
final static int MIN_BOOL(Code)



MIN_BYTE
final static int MIN_BYTE(Code)



MIN_CHAR
final static int MIN_CHAR(Code)



MIN_INT
final static int MIN_INT(Code)



MIN_SHORT
final static int MIN_SHORT(Code)



POS_BYTE
final public static Type POS_BYTE(Code)



POS_SHORT
final public static Type POS_SHORT(Code)



RELAX
public static boolean RELAX(Code)



ZERO
final static int ZERO(Code)



classes
Set classes(Code)



closure
boolean closure(Code)



context
EditorContext context(Code)



extendsGraph
Graph extendsGraph(Code)



implementsGraph
Graph implementsGraph(Code)



inWorklist
Set inWorklist(Code)



worklist
LinkedList worklist(Code)




Constructor Detail
ClassHierarchy
public ClassHierarchy(EditorContext context, Collection initial, boolean closure)(Code)
Constructor.
Parameters:
  context - The context in which to access an Editor and othersuch things.
Parameters:
  initial - The names of the classes that initially constitue thehierarchy.
Parameters:
  closure - Do we get the maximum amount of class information?




Method Detail
addClassNamed
public void addClassNamed(String name)(Code)
Adds a class of a given name to the ClassHierarchy.



classes
public Collection classes()(Code)
Returns (the Types of) all of the classes and interfaces in the hierarchy.



closure
public boolean closure()(Code)
Returns true if class closure has been computed



implementors
public Collection implementors(Type type)(Code)
Returns the classes (Types) that implement a given interface as a Collection of Types.

See note in subclasses for information about the interface hierarchy.




interfaces
public Collection interfaces(Type type)(Code)
Returns the interfaces that a given Type implements as a Collection of Types



intersectType
public Type intersectType(Type a, Type b)(Code)
Returns the intersection of two types. Basically, the interstion of two types is the type (if any) to which both types may be assigned. So, if a is a subtype of b, a is returned. Otherwise, Type.NULL is returned.



methodInvoked
public MemberRef methodInvoked(Type receiver, NameAndType method)(Code)
Returns the MemberRef of the method that would be invoked if a given method of a given type was invoked. Basically, dynamic dispatch is simulated.



methodIsOverridden
public boolean methodIsOverridden(Type classType, NameAndType nat)(Code)
Determines whether or not a class's method is overriden by any of its subclasses.



printClasses
public void printClasses(PrintWriter out, int indent)(Code)
Prints the class hierarchy (i.e. the "extends" hierarchy, interfaces may extends other interfaces) to a PrintWriter.



printImplements
public void printImplements(PrintWriter out, int indent)(Code)
Prints the implements hierarchy to a PrintWriter.



resolvesToWith
public Set resolvesToWith(MemberRef method)(Code)
Returns a set of ResolvesToWith that represent all subclass methods that override a given method and the subclasses that when used as receivers resolve to that method.
See Also:   ResolvesToWith



setToType
public static Type setToType(BitSet v)(Code)
Given a set of bits representing the range of values some type has, determines what that Type is.



subclassOf
public boolean subclassOf(Type a, Type b)(Code)
Returns whether or not a is a subclass of b.



subclasses
public Collection subclasses(Type type)(Code)
Returns the immediate subclasses of a given Type as a Collection of Types.

The subclass relationship at the classfile level is a little screwy with respect to interfaces. An interface that extends another interface is compiled into an interface that extends java.lang.Object and implements the superinterface. As a result, the interface-subinterface is not captured in subclasses as one may expect. Instead, you have to look at implementors and filter out the classes.




superclass
public Type superclass(Type type)(Code)
Returns the superclass of a given Type. If the Type has no superclass (that is it is Type.OBJECT), then null is returned.



typeToSet
public static BitSet typeToSet(Type type)(Code)
Returns a BitSet representing the possible values of a given integral type.



unionType
public Type unionType(Type a, Type b)(Code)
Returns the union of two types. The union of two types is their most refined common supertype. At worst, the union is Type.OBJECT



unionTypes
public Type unionTypes(Collection types)(Code)
Returns the most refined common supertype for a bunch of Types.



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.