Java Doc for Class.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.Class

Class
final public class Class implements Serializable,AnnotatedElement,GenericDeclaration,Type(Code)

author:
   Evgueni Brevnov, Serguei S. Zapreyev, Alexey V. Varlamov
version:
   $Revision: 1.1.2.2.4.5 $


Field Summary
 ClassLoaderdefiningLoader
     Provides strong referencing between the classloader and it's defined classes.
static volatile  booleandisableAssertions
     package private to access from the java.lang.ClassLoader class.
transient  ReflectionDatareflectionData
    
transient  SoftReference<GACache>softCache
    
static  ProtectionDomainsystemDomain
    


Method Summary
public  Class<? extends U>asSubclass(Class<U> clazz)
    
public  Tcast(Object obj)
    
public  booleandesiredAssertionStatus()
    
public static  ClassforName(String name)
    
public static  ClassforName(String name, boolean initialize, ClassLoader classLoader)
    
public  AgetAnnotation(Class<A> annotationClass)
    
public  Annotation[]getAnnotations()
    
public  StringgetCanonicalName()
    
public  ClassLoadergetClassLoader()
    
final  ClassLoadergetClassLoaderImpl()
    
public  Class[]getClasses()
    
public  ClassgetComponentType()
    
public  Constructor<T>getConstructor(Class... argumentTypes)
    
public  Constructor[]getConstructors()
    
public  Annotation[]getDeclaredAnnotations()
    
public  Class[]getDeclaredClasses()
    
public  Constructor<T>getDeclaredConstructor(Class... argumentTypes)
    
public  Constructor[]getDeclaredConstructors()
    
public  FieldgetDeclaredField(String fieldName)
    
public  Field[]getDeclaredFields()
    
public  MethodgetDeclaredMethod(String methodName, Class... argumentTypes)
    
public  Method[]getDeclaredMethods()
    
public  ClassgetDeclaringClass()
    
public  ClassgetEnclosingClass()
    
public  ConstructorgetEnclosingConstructor()
    
public  MethodgetEnclosingMethod()
    
public  T[]getEnumConstants()
    
public  FieldgetField(String fieldName)
    
public  Field[]getFields()
    
public  Type[]getGenericInterfaces()
    
public  TypegetGenericSuperclass()
    
public  Class[]getInterfaces()
    
public  MethodgetMethod(String methodName, Class... argumentTypes)
    
public  Method[]getMethods()
    
public  intgetModifiers()
    
public  StringgetName()
    
public  PackagegetPackage()
    
 StringgetPackageName()
    
public  ProtectionDomaingetProtectionDomain()
    
public  URLgetResource(String resource)
    
public  InputStreamgetResourceAsStream(String resource)
    
public  Object[]getSigners()
    
public  StringgetSimpleName()
    
final static  Class[]getStackClasses(int maxDepth, boolean stopAtPrivileged)
    
public  Class<? super T>getSuperclass()
    
public  TypeVariable<Class<T>>[]getTypeParameters()
    
synchronized  voidinitReflectionData()
     This is not time consume operation so we can do syncrhronization on this class object.
public  booleanisAnnotation()
    
public  booleanisAnnotationPresent(Class<? extends Annotation> annotationClass)
    
public  booleanisAnonymousClass()
    
public  booleanisArray()
    
public  booleanisAssignableFrom(Class clazz)
    
public  booleanisEnum()
    
public  booleanisInstance(Object obj)
    
public  booleanisInterface()
    
public  booleanisLocalClass()
    
public  booleanisMemberClass()
    
public  booleanisPrimitive()
    
public  booleanisSynthetic()
    
static  booleanisTypeMatches(Class[] t1, Class[] t2)
    
public  TnewInstance()
    
 voidsetProtectionDomain(ProtectionDomain protectionDomain)
    
public  StringtoString()
    

Field Detail
definingLoader
ClassLoader definingLoader(Code)
Provides strong referencing between the classloader and it's defined classes. Intended for class unloading implementation.
See Also:   java.lang.ClassLoader.loadedClasses



disableAssertions
static volatile boolean disableAssertions(Code)
package private to access from the java.lang.ClassLoader class.



reflectionData
transient ReflectionData reflectionData(Code)



softCache
transient SoftReference<GACache> softCache(Code)



systemDomain
static ProtectionDomain systemDomain(Code)





Method Detail
asSubclass
public Class<? extends U> asSubclass(Class<U> clazz) throws ClassCastException(Code)



cast
public T cast(Object obj) throws ClassCastException(Code)



desiredAssertionStatus
public boolean desiredAssertionStatus()(Code)



forName
public static Class forName(String name) throws ClassNotFoundException(Code)



forName
public static Class forName(String name, boolean initialize, ClassLoader classLoader) throws ClassNotFoundException(Code)



getAnnotation
public A getAnnotation(Class<A> annotationClass)(Code)



getAnnotations
public Annotation[] getAnnotations()(Code)



getCanonicalName
public String getCanonicalName()(Code)



getClassLoader
public ClassLoader getClassLoader()(Code)



getClassLoaderImpl
final ClassLoader getClassLoaderImpl()(Code)



getClasses
public Class[] getClasses()(Code)



getComponentType
public Class getComponentType()(Code)



getConstructor
public Constructor<T> getConstructor(Class... argumentTypes) throws NoSuchMethodException(Code)



getConstructors
public Constructor[] getConstructors()(Code)



getDeclaredAnnotations
public Annotation[] getDeclaredAnnotations()(Code)



getDeclaredClasses
public Class[] getDeclaredClasses()(Code)



getDeclaredConstructor
public Constructor<T> getDeclaredConstructor(Class... argumentTypes) throws NoSuchMethodException(Code)



getDeclaredConstructors
public Constructor[] getDeclaredConstructors()(Code)



getDeclaredField
public Field getDeclaredField(String fieldName) throws NoSuchFieldException(Code)



getDeclaredFields
public Field[] getDeclaredFields()(Code)



getDeclaredMethod
public Method getDeclaredMethod(String methodName, Class... argumentTypes) throws NoSuchMethodException(Code)



getDeclaredMethods
public Method[] getDeclaredMethods()(Code)



getDeclaringClass
public Class getDeclaringClass()(Code)



getEnclosingClass
public Class getEnclosingClass()(Code)



getEnclosingConstructor
public Constructor getEnclosingConstructor()(Code)



getEnclosingMethod
public Method getEnclosingMethod()(Code)



getEnumConstants
public T[] getEnumConstants()(Code)



getField
public Field getField(String fieldName) throws NoSuchFieldException(Code)



getFields
public Field[] getFields()(Code)



getGenericInterfaces
public Type[] getGenericInterfaces() throws GenericSignatureFormatError, TypeNotPresentException, MalformedParameterizedTypeException(Code)



getGenericSuperclass
public Type getGenericSuperclass() throws GenericSignatureFormatError, TypeNotPresentException, MalformedParameterizedTypeException(Code)



getInterfaces
public Class[] getInterfaces()(Code)



getMethod
public Method getMethod(String methodName, Class... argumentTypes) throws NoSuchMethodException(Code)



getMethods
public Method[] getMethods()(Code)



getModifiers
public int getModifiers()(Code)



getName
public String getName()(Code)



getPackage
public Package getPackage()(Code)



getPackageName
String getPackageName()(Code)



getProtectionDomain
public ProtectionDomain getProtectionDomain()(Code)



getResource
public URL getResource(String resource)(Code)



getResourceAsStream
public InputStream getResourceAsStream(String resource)(Code)



getSigners
public Object[] getSigners()(Code)



getSimpleName
public String getSimpleName()(Code)



getStackClasses
final static Class[] getStackClasses(int maxDepth, boolean stopAtPrivileged)(Code)



getSuperclass
public Class<? super T> getSuperclass()(Code)



getTypeParameters
public TypeVariable<Class<T>>[] getTypeParameters() throws GenericSignatureFormatError(Code)



initReflectionData
synchronized void initReflectionData()(Code)
This is not time consume operation so we can do syncrhronization on this class object. Note, this method has package private visibility in order to increase performance.



isAnnotation
public boolean isAnnotation()(Code)



isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)(Code)



isAnonymousClass
public boolean isAnonymousClass()(Code)



isArray
public boolean isArray()(Code)



isAssignableFrom
public boolean isAssignableFrom(Class clazz)(Code)



isEnum
public boolean isEnum()(Code)



isInstance
public boolean isInstance(Object obj)(Code)



isInterface
public boolean isInterface()(Code)



isLocalClass
public boolean isLocalClass()(Code)



isMemberClass
public boolean isMemberClass()(Code)



isPrimitive
public boolean isPrimitive()(Code)



isSynthetic
public boolean isSynthetic()(Code)



isTypeMatches
static boolean isTypeMatches(Class[] t1, Class[] t2)(Code)
Answers whether the arrays are equal



newInstance
public T newInstance() throws InstantiationException, IllegalAccessException(Code)



setProtectionDomain
void setProtectionDomain(ProtectionDomain protectionDomain)(Code)



toString
public String toString()(Code)



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.