Java Doc for VMClassRegistry.java in  » Apache-Harmony-Java-SE » java-package » java » lang » 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 » Apache Harmony Java SE » java package » java.lang 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.lang.VMClassRegistry

VMClassRegistry
final class VMClassRegistry (Code)
Provides the class information methods required for the java.lang.Class Class implementation, and class loading/resolution methods for the java.lang.ClassLoader ClassLoader implementation.

An implementation of the java.lang.Class class should not relay on default object initialization by the VM. In other words the VM is free to skip execution of the java.lang.Class private constructor.

This class must be implemented according to the common policy for porting interfaces - see the porting interface overview for more detailes.





Method Summary
static  Class<? extends Object>getClass(Object obj)
    
static  ClassLoadergetClassLoader(Class clazz)
     This method satisfies the requirements of the specification for the Class.getClassLoader Class.getClassLoader() method except the clazz parameter may be null.
native static  ClassLoadergetClassLoader0(Class clazz)
     This method satisfies the requirements of the specification for the Class.getClassLoader Class.getClassLoader() method.
native static  Class<? extends Object>getClassNative(Object obj)
     This method satisfies the requirements of the specification for the Object.getClass Object.getClass() method.
native static  ClassgetComponentType(Class clazz)
     This method satisfies the requirements of the specification for the Class.getComponentType Class.getComponentType() method.
native static  Class[]getDeclaredClasses(Class clazz)
     This method satisfies the requirements of the specification for the Class.getDeclaredClasses Class.getDeclaredClasses() method.
native static  Constructor<U>[]getDeclaredConstructors(Class<U> clazz)
     This method satisfies the requirements of the specification for the Class.getDeclaredConstructors Class.getDeclaredConstructors() method.
native static  Field[]getDeclaredFields(Class clazz)
     This method satisfies the requirements of the specification for the Class.getDeclaredFields Class.getDeclaredFields() method.
native static  Method[]getDeclaredMethods(Class clazz)
     This method satisfies the requirements of the specification for the Class.getDeclaredMethods Class.getDeclaredMethods() method.
native static  ClassgetDeclaringClass(Class clazz)
     This method satisfies the requirements of the specification for the Class.getDeclaringClass Class.getDeclaringClass() method.
native static  ClassgetEnclosingClass(Class clazz)
     Returns the nearest enclosing class of the specified Class instance, or null if the specified class is a top-level class.
This information is gathered from corresponding class-file structures (either EnclosingMethod or InnerClasses attribute, if any present).
native static  MembergetEnclosingMember(Class clazz)
     If the specified class is a local or anonymous class defined within a method or constructor, returns that closest enclosing reflection member.
native static  Class[]getInterfaces(Class clazz)
     This method satisfies the requirements of the specification for the Class.getInterfaces Class.getInterfaces() method.
native static  intgetModifiers(Class clazz)
     This method satisfies the requirements of the specification for the Class.getModifiers Class.getModifiers() method.
native static  StringgetName(Class clazz)
     This method satisfies the requirements of the specification for the Class.getName Class.getName() method.
native static  StringgetSimpleName(Class clazz)
     This method satisfies the requirements of the specification for the Class.getSimpleName Class.getSimpleName() method.
Parameters:
  clazz - a class to perform an operation on.
native static  Class<? super U>getSuperclass(Class<U> clazz)
     This method satisfies the requirements of the specification for the Class.getSuperclass Class.getSuperclass() method.
native static  String[][]getSystemPackages(int len)
     This method returns a list describing the system packages, in format of {{name, url}}.
native static  voidinitializeClass(Class clazz)
     This method is used for the Class.forName(java.lang.Stringbooleanjava.lang.ClassLoader)Class.forName(String name, boolean initialize, ClassLoader loader) method implementation.
native static  booleanisArray(Class clazz)
     This method satisfies the requirements of the specification for the Class.isArray Class.isArray() method.
native static  booleanisAssignableFrom(Class clazz, Class fromClazz)
     This method satisfies the requirements of the specification for the Class.isAssignableFrom(java.lang.Class)Class.isAssignableFrom(Class cls) method.
native static  booleanisInstance(Class clazz, Object obj)
     This method satisfies the requirements of the specification for the Class.isInstance(java.lang.Object) Class.isInstance(Object obj) method.
native static  booleanisPrimitive(Class clazz)
     This method satisfies the requirements of the specification for the Class.isPrimitive Class.isPrimitive() method.
native static  voidlinkClass(Class clazz)
     This method satisfies the requirements of the specification for the ClassLoader.resolveClass(java.lang.Class)ClassLoader.resolveClass(Class c) method.
native static  ClassloadArray(Class componentType, int dimensions)
     This method is used for the Class.forName(java.lang.Stringbooleanjava.lang.ClassLoader)Class.forName(String name, boolean initialize, ClassLoader loader) method implementation.
native static  ClassloadBootstrapClass(String name)
     Loads the specified class with the bootstrap classloader.
native static  voidloadLibrary(String filename, ClassLoader loader)
     This method is used for implementation of the Runtime.load(java.lang.String) Runtime.load(String filename) method.



Method Detail
getClass
static Class<? extends Object> getClass(Object obj)(Code)



getClassLoader
static ClassLoader getClassLoader(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getClassLoader Class.getClassLoader() method except the clazz parameter may be null. In this case context class loader of the current thread is returned.



getClassLoader0
native static ClassLoader getClassLoader0(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getClassLoader Class.getClassLoader() method.



getClassNative
native static Class<? extends Object> getClassNative(Object obj)(Code)
This method satisfies the requirements of the specification for the Object.getClass Object.getClass() method.



getComponentType
native static Class getComponentType(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getComponentType Class.getComponentType() method.



getDeclaredClasses
native static Class[] getDeclaredClasses(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getDeclaredClasses Class.getDeclaredClasses() method.



getDeclaredConstructors
native static Constructor<U>[] getDeclaredConstructors(Class<U> clazz)(Code)
This method satisfies the requirements of the specification for the Class.getDeclaredConstructors Class.getDeclaredConstructors() method.



getDeclaredFields
native static Field[] getDeclaredFields(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getDeclaredFields Class.getDeclaredFields() method.



getDeclaredMethods
native static Method[] getDeclaredMethods(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getDeclaredMethods Class.getDeclaredMethods() method.



getDeclaringClass
native static Class getDeclaringClass(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getDeclaringClass Class.getDeclaringClass() method.



getEnclosingClass
native static Class getEnclosingClass(Class clazz)(Code)
Returns the nearest enclosing class of the specified Class instance, or null if the specified class is a top-level class.
This information is gathered from corresponding class-file structures (either EnclosingMethod or InnerClasses attribute, if any present).
Parameters:
  clazz - a class to perform an operation on. the immediately enclosing class of the specified class or null



getEnclosingMember
native static Member getEnclosingMember(Class clazz)(Code)
If the specified class is a local or anonymous class defined within a method or constructor, returns that closest enclosing reflection member. Otherwise returns null. Note, instance initializers and static initializers are not reflectable and will never be considered.
This information is gathered from corresponding class-file structure (EnclosingMethod attribute, if present).
Parameters:
  clazz - a class to perform an operation on. the immediately enclosing member for the specified class or null



getInterfaces
native static Class[] getInterfaces(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getInterfaces Class.getInterfaces() method.



getModifiers
native static int getModifiers(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getModifiers Class.getModifiers() method.



getName
native static String getName(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getName Class.getName() method.



getSimpleName
native static String getSimpleName(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.getSimpleName Class.getSimpleName() method.
Parameters:
  clazz - a class to perform an operation on. the simple name of the specified class



getSuperclass
native static Class<? super U> getSuperclass(Class<U> clazz)(Code)
This method satisfies the requirements of the specification for the Class.getSuperclass Class.getSuperclass() method.



getSystemPackages
native static String[][] getSystemPackages(int len)(Code)
This method returns a list describing the system packages, in format of {{name, url}}. That is, the list consists of pairs "{name, url}", organized as the 2-dimensional array[N][2]. The "name" is a Java package name. The "url" points to the jar file from which the corresponding package is loaded. If package comes not from a jar, then url is null.
Parameters:
  len - number of packages caller already knows. If this number isequal to the actual number of system packages defined by VM, this method will skip array creation and return null. a set of packages defined by bootstrap class loader or null



initializeClass
native static void initializeClass(Class clazz)(Code)
This method is used for the Class.forName(java.lang.Stringbooleanjava.lang.ClassLoader)Class.forName(String name, boolean initialize, ClassLoader loader) method implementation. If the initialize parameter is true then this method should be invoked in order to initialize a class. The specified clazz parameter must not be null.
Parameters:
  clazz - a class to perform an operation on.
throws:
  ExceptionInInitializerError - if initialization fails.



isArray
native static boolean isArray(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.isArray Class.isArray() method.



isAssignableFrom
native static boolean isAssignableFrom(Class clazz, Class fromClazz)(Code)
This method satisfies the requirements of the specification for the Class.isAssignableFrom(java.lang.Class)Class.isAssignableFrom(Class cls) method.



isInstance
native static boolean isInstance(Class clazz, Object obj)(Code)
This method satisfies the requirements of the specification for the Class.isInstance(java.lang.Object) Class.isInstance(Object obj) method.



isPrimitive
native static boolean isPrimitive(Class clazz)(Code)
This method satisfies the requirements of the specification for the Class.isPrimitive Class.isPrimitive() method.



linkClass
native static void linkClass(Class clazz)(Code)
This method satisfies the requirements of the specification for the ClassLoader.resolveClass(java.lang.Class)ClassLoader.resolveClass(Class c) method. Except that it doesn't throw NullPointerException but throws LinkagError exception. The specified clazz parameter must not be null.
throws:
  LinkageError - if linking fails.



loadArray
native static Class loadArray(Class componentType, int dimensions)(Code)
This method is used for the Class.forName(java.lang.Stringbooleanjava.lang.ClassLoader)Class.forName(String name, boolean initialize, ClassLoader loader) method implementation. If the name parameter represents an array then this method should be invoked in order to load an array class. For example, an expression (loadArray(Integer.TYPE, 1) == new int[0].getClass()) must be true.

Note: Under design yet. Subjected to change.
Parameters:
  componentType - the type of array components. It must not be null.
Parameters:
  dimensions - array dimension. It must be greater or equal to 0. a class which represents array




loadBootstrapClass
native static Class loadBootstrapClass(String name)(Code)
Loads the specified class with the bootstrap classloader.
throws:
  LinkageError - (or any subtype) if loading failed



loadLibrary
native static void loadLibrary(String filename, ClassLoader loader)(Code)
This method is used for implementation of the Runtime.load(java.lang.String) Runtime.load(String filename) method.
Parameters:
  filename - full library name.
Parameters:
  loader - the library will be loaded into the specified class loadernamespace
throws:
  UnsatisfiedLinkError - if library can not be loaded for any reason



Methods inherited from java.lang.Object
protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object object)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final public Class<? extends Object> getClass()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
final public void notify()(Code)(Java Doc)
final public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final public void wait(long millis, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait(long millis) 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.