Java Doc for Subtypes2.java in  » Code-Analyzer » findbugs » edu » umd » cs » findbugs » ba » ch » 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 » Code Analyzer » findbugs » edu.umd.cs.findbugs.ba.ch 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   edu.umd.cs.findbugs.ba.ch.Subtypes2

Subtypes2
public class Subtypes2 (Code)
Class for performing class hierarchy queries. Does not require JavaClass objects to be in memory. Instead, uses XClass objects.
author:
   David Hovemeyer


Field Summary
final public static  booleanDEBUG
    
final public static  booleanDEBUG_QUERIES
    
final public static  booleanENABLE_SUBTYPES2
    
final public static  booleanENABLE_SUBTYPES2_FOR_COMMON_SUPERCLASS_QUERIES
    

Constructor Summary
public  Subtypes2()
     Constructor.

Method Summary
public  voidaddApplicationClass(XClass appXClass)
     Add an application class, and its transitive supertypes, to the inheritance graph.
public  voidaddClass(XClass xclass)
     Add a class or interface, and its transitive supertypes, to the inheritance graph.
public  Set<ClassDescriptor>getDirectSubtypes(ClassDescriptor classDescriptor)
     Get known subtypes of given class.
public  ReferenceTypegetFirstCommonSuperclass(ReferenceType a, ReferenceType b)
     Get the first common superclass of the given reference types. Note that an interface type is never returned unless a and b are the same type.
public  ObjectTypegetFirstCommonSuperclass(ObjectType a, ObjectType b)
     Get the first common superclass of the given object types. Note that an interface type is never returned unless a and b are the same type.
public  InheritanceGraphgetGraph()
    
public  Set<ClassDescriptor>getSubtypes(ClassDescriptor classDescriptor)
     Get known subtypes of given class.
public  SupertypeQueryResultsgetSupertypeQueryResults(ClassDescriptor classDescriptor)
     Look up or compute the SupertypeQueryResults for class named by given ClassDescriptor.
public  Set<ClassDescriptor>getTransitiveCommonSubtypes(ClassDescriptor classDescriptor1, ClassDescriptor classDescriptor2)
    
public  Collection<XClass>getXClassCollection()
     Get Collection of all XClass objects (resolved classes) seen so far.
public static  booleaninstanceOf(String dottedSubtype, String dottedSupertype)
    
public static  booleaninstanceOf(JavaClass subtype, String dottedSupertype)
    
public  booleanisApplicationClass(ClassDescriptor descriptor)
    
public  booleanisSubtype(ReferenceType type, ReferenceType possibleSupertype)
     Determine whether or not a given ReferenceType is a subtype of another.
public  booleanisSubtype(ClassDescriptor subDesc, ClassDescriptor superDesc)
    
public  booleanisSubtype(ObjectType type, ObjectType possibleSupertype)
     Determine whether or not a given ObjectType is a subtype of another.
public  voidtraverseSupertypes(ClassDescriptor start, InheritanceGraphVisitor visitor)
     Starting at the class or interface named by the given ClassDescriptor, traverse the inheritance graph, exploring all paths from the class or interface to java.lang.Object.

Field Detail
DEBUG
final public static boolean DEBUG(Code)



DEBUG_QUERIES
final public static boolean DEBUG_QUERIES(Code)



ENABLE_SUBTYPES2
final public static boolean ENABLE_SUBTYPES2(Code)



ENABLE_SUBTYPES2_FOR_COMMON_SUPERCLASS_QUERIES
final public static boolean ENABLE_SUBTYPES2_FOR_COMMON_SUPERCLASS_QUERIES(Code)




Constructor Detail
Subtypes2
public Subtypes2()(Code)
Constructor.




Method Detail
addApplicationClass
public void addApplicationClass(XClass appXClass)(Code)
Add an application class, and its transitive supertypes, to the inheritance graph.
Parameters:
  appXClass - application XClass to add to the inheritance graph



addClass
public void addClass(XClass xclass)(Code)
Add a class or interface, and its transitive supertypes, to the inheritance graph.
Parameters:
  xclass - XClass to add to the inheritance graph



getDirectSubtypes
public Set<ClassDescriptor> getDirectSubtypes(ClassDescriptor classDescriptor) throws ClassNotFoundException(Code)
Get known subtypes of given class.
Parameters:
  classDescriptor - ClassDescriptor naming a class Set of ClassDescriptors which are the known subtypes of the class
throws:
  ClassNotFoundException -



getFirstCommonSuperclass
public ReferenceType getFirstCommonSuperclass(ReferenceType a, ReferenceType b) throws ClassNotFoundException(Code)
Get the first common superclass of the given reference types. Note that an interface type is never returned unless a and b are the same type. Otherwise, we try to return as accurate a type as possible. This method is used as the meet operator in TypeDataflowAnalysis, and is intended to follow (more or less) the JVM bytecode verifier semantics.

This method should be used in preference to the getFirstCommonSuperclass() method in ReferenceType .


Parameters:
  a - a ReferenceType
Parameters:
  b - another ReferenceType the first common superclass of a and b
throws:
  ClassNotFoundException -



getFirstCommonSuperclass
public ObjectType getFirstCommonSuperclass(ObjectType a, ObjectType b) throws ClassNotFoundException(Code)
Get the first common superclass of the given object types. Note that an interface type is never returned unless a and b are the same type. Otherwise, we try to return as accurate a type as possible. This method is used as the meet operator in TypeDataflowAnalysis, and is intended to follow (more or less) the JVM bytecode verifier semantics.

This method should be used in preference to the getFirstCommonSuperclass() method in ReferenceType .


Parameters:
  a - an ObjectType
Parameters:
  b - another ObjectType the first common superclass of a and b
throws:
  ClassNotFoundException -



getGraph
public InheritanceGraph getGraph()(Code)
Returns the graph.



getSubtypes
public Set<ClassDescriptor> getSubtypes(ClassDescriptor classDescriptor) throws ClassNotFoundException(Code)
Get known subtypes of given class.
Parameters:
  classDescriptor - ClassDescriptor naming a class Set of ClassDescriptors which are the known subtypes of the class
throws:
  ClassNotFoundException -



getSupertypeQueryResults
public SupertypeQueryResults getSupertypeQueryResults(ClassDescriptor classDescriptor) throws ClassNotFoundException(Code)
Look up or compute the SupertypeQueryResults for class named by given ClassDescriptor.
Parameters:
  classDescriptor - a ClassDescriptor SupertypeQueryResults for the class named by the ClassDescriptor
throws:
  ClassNotFoundException -



getTransitiveCommonSubtypes
public Set<ClassDescriptor> getTransitiveCommonSubtypes(ClassDescriptor classDescriptor1, ClassDescriptor classDescriptor2) throws ClassNotFoundException(Code)



getXClassCollection
public Collection<XClass> getXClassCollection()(Code)
Get Collection of all XClass objects (resolved classes) seen so far. Collection of all XClass objects



instanceOf
public static boolean instanceOf(String dottedSubtype, String dottedSupertype)(Code)



instanceOf
public static boolean instanceOf(JavaClass subtype, String dottedSupertype)(Code)



isApplicationClass
public boolean isApplicationClass(ClassDescriptor descriptor)(Code)



isSubtype
public boolean isSubtype(ReferenceType type, ReferenceType possibleSupertype) throws ClassNotFoundException(Code)
Determine whether or not a given ReferenceType is a subtype of another. Throws ClassNotFoundException if the question cannot be answered definitively due to a missing class.
Parameters:
  type - a ReferenceType
Parameters:
  possibleSupertype - another Reference type true if type is a subtype of possibleSupertype, false if not
throws:
  ClassNotFoundException - if a missing class prevents a definitive answer



isSubtype
public boolean isSubtype(ClassDescriptor subDesc, ClassDescriptor superDesc) throws ClassNotFoundException(Code)



isSubtype
public boolean isSubtype(ObjectType type, ObjectType possibleSupertype) throws ClassNotFoundException(Code)
Determine whether or not a given ObjectType is a subtype of another. Throws ClassNotFoundException if the question cannot be answered definitively due to a missing class.
Parameters:
  type - a ReferenceType
Parameters:
  possibleSupertype - another Reference type true if type is a subtype of possibleSupertype, false if not
throws:
  ClassNotFoundException - if a missing class prevents a definitive answer



traverseSupertypes
public void traverseSupertypes(ClassDescriptor start, InheritanceGraphVisitor visitor) throws ClassNotFoundException(Code)
Starting at the class or interface named by the given ClassDescriptor, traverse the inheritance graph, exploring all paths from the class or interface to java.lang.Object.
Parameters:
  start - ClassDescriptor naming the class where the traversal should start
Parameters:
  visitor - an InheritanceGraphVisitor
throws:
  ClassNotFoundException -



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.