java.lang
Class Class
java.lang.Object
|
+--java.lang.Class
- All Implemented Interfaces:
- java.io.Serializable
- public final synchronized class Class
- extends Object
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
private |
Class()
|
Method Summary |
(package private) static void |
()
|
private static void |
addAll(java.util.Collection,
java.lang.reflect.Field[])
|
private static void |
addAll(java.util.Collection,
java.lang.reflect.Method[])
|
private static boolean |
arrayContentsEq(Object[],
Object[])
|
private static void |
checkInitted()
|
private void |
checkMemberAccess(int,
ClassLoader)
|
private static java.lang.reflect.Constructor[] |
copyConstructors(java.lang.reflect.Constructor[])
|
private static java.lang.reflect.Field[] |
copyFields(java.lang.reflect.Field[])
|
private static java.lang.reflect.Method[] |
copyMethods(java.lang.reflect.Method[])
|
boolean |
desiredAssertionStatus()
|
private static boolean |
desiredAssertionStatus0(Class)
|
static Class |
forName(String)
|
static Class |
forName(String,
boolean,
ClassLoader)
|
private static Class |
forName0(String,
boolean,
ClassLoader)
|
Class[] |
getClasses()
|
ClassLoader |
getClassLoader()
|
(package private) ClassLoader |
getClassLoader0()
|
Class |
getComponentType()
|
java.lang.reflect.Constructor |
getConstructor(Class[])
|
private java.lang.reflect.Constructor |
getConstructor0(Class[],
int)
|
java.lang.reflect.Constructor[] |
getConstructors()
|
Class[] |
getDeclaredClasses()
|
private Class[] |
getDeclaredClasses0()
|
java.lang.reflect.Constructor |
getDeclaredConstructor(Class[])
|
java.lang.reflect.Constructor[] |
getDeclaredConstructors()
|
private java.lang.reflect.Constructor[] |
getDeclaredConstructors0(boolean)
|
java.lang.reflect.Field |
getDeclaredField(String)
|
java.lang.reflect.Field[] |
getDeclaredFields()
|
private java.lang.reflect.Field[] |
getDeclaredFields0(boolean)
|
java.lang.reflect.Method |
getDeclaredMethod(String,
Class[])
|
java.lang.reflect.Method[] |
getDeclaredMethods()
|
private java.lang.reflect.Method[] |
getDeclaredMethods0(boolean)
|
Class |
getDeclaringClass()
|
java.lang.reflect.Field |
getField(String)
|
private java.lang.reflect.Field |
getField0(String,
int)
|
java.lang.reflect.Field[] |
getFields()
|
Class[] |
getInterfaces()
|
java.lang.reflect.Method |
getMethod(String,
Class[])
|
private java.lang.reflect.Method |
getMethod0(String,
Class[],
int)
|
java.lang.reflect.Method[] |
getMethods()
|
int |
getModifiers()
|
String |
getName()
|
Package |
getPackage()
|
(package private) static Class |
getPrimitiveClass(String)
|
java.security.ProtectionDomain |
getProtectionDomain()
|
private java.security.ProtectionDomain |
getProtectionDomain0()
|
private static sun.reflect.ReflectionFactory |
getReflectionFactory()
|
java.net.URL |
getResource(String)
|
java.io.InputStream |
getResourceAsStream(String)
|
Object[] |
getSigners()
|
Class |
getSuperclass()
|
boolean |
isArray()
|
boolean |
isAssignableFrom(Class)
|
boolean |
isInstance(Object)
|
boolean |
isInterface()
|
boolean |
isPrimitive()
|
Object |
newInstance()
|
private Object |
newInstance0()
|
private java.lang.reflect.Constructor[] |
privateGetDeclaredConstructors(boolean)
|
private java.lang.reflect.Field[] |
privateGetDeclaredFields(boolean)
|
private java.lang.reflect.Method[] |
privateGetDeclaredMethods(boolean)
|
private java.lang.reflect.Field[] |
privateGetPublicFields(java.util.Set)
|
private java.lang.reflect.Method[] |
privateGetPublicMethods()
|
private static void |
registerNatives()
|
private static void |
removeByNameAndSignature(java.util.Collection,
java.lang.reflect.Method)
|
private String |
resolveName(String)
|
(package private) void |
setProtectionDomain0(java.security.ProtectionDomain)
|
(package private) void |
setSigners(Object[])
|
String |
toString()
|
cachedConstructor
private transient volatile java.lang.reflect.Constructor cachedConstructor
newInstanceCallerCache
private transient volatile Class newInstanceCallerCache
getPDperm
private static RuntimePermission getPDperm
allPermDomain
private static java.security.ProtectionDomain allPermDomain
useCaches
private static boolean useCaches
declaredFields
private transient volatile java.lang.ref.SoftReference declaredFields
publicFields
private transient volatile java.lang.ref.SoftReference publicFields
declaredMethods
private transient volatile java.lang.ref.SoftReference declaredMethods
publicMethods
private transient volatile java.lang.ref.SoftReference publicMethods
declaredConstructors
private transient volatile java.lang.ref.SoftReference declaredConstructors
publicConstructors
private transient volatile java.lang.ref.SoftReference publicConstructors
declaredPublicFields
private transient volatile java.lang.ref.SoftReference declaredPublicFields
declaredPublicMethods
private transient volatile java.lang.ref.SoftReference declaredPublicMethods
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
serialPersistentFields
private static final java.io.ObjectStreamField[] serialPersistentFields
reflectionFactory
private static sun.reflect.ReflectionFactory reflectionFactory
initted
private static boolean initted
Class
private Class()
registerNatives
private static void registerNatives()
toString
public String toString()
- Overrides:
toString
in class Object
forName
public static Class forName(String)
throws ClassNotFoundException
ClassNotFoundException
forName
public static Class forName(String,
boolean,
ClassLoader)
throws ClassNotFoundException
ClassNotFoundException
forName0
private static Class forName0(String,
boolean,
ClassLoader)
throws ClassNotFoundException
ClassNotFoundException
newInstance
public Object newInstance()
throws InstantiationException,
IllegalAccessException
InstantiationException
IllegalAccessException
newInstance0
private Object newInstance0()
throws InstantiationException,
IllegalAccessException
InstantiationException
IllegalAccessException
isInstance
public boolean isInstance(Object)
isAssignableFrom
public boolean isAssignableFrom(Class)
isInterface
public boolean isInterface()
isArray
public boolean isArray()
isPrimitive
public boolean isPrimitive()
getName
public String getName()
getClassLoader
public ClassLoader getClassLoader()
getClassLoader0
ClassLoader getClassLoader0()
getSuperclass
public Class getSuperclass()
getPackage
public Package getPackage()
getInterfaces
public Class[] getInterfaces()
getComponentType
public Class getComponentType()
getModifiers
public int getModifiers()
getSigners
public Object[] getSigners()
setSigners
void setSigners(Object[])
getDeclaringClass
public Class getDeclaringClass()
getClasses
public Class[] getClasses()
getFields
public java.lang.reflect.Field[] getFields()
throws SecurityException
SecurityException
getMethods
public java.lang.reflect.Method[] getMethods()
throws SecurityException
SecurityException
getConstructors
public java.lang.reflect.Constructor[] getConstructors()
throws SecurityException
SecurityException
getField
public java.lang.reflect.Field getField(String)
throws NoSuchFieldException,
SecurityException
NoSuchFieldException
SecurityException
getMethod
public java.lang.reflect.Method getMethod(String,
Class[])
throws NoSuchMethodException,
SecurityException
NoSuchMethodException
SecurityException
getConstructor
public java.lang.reflect.Constructor getConstructor(Class[])
throws NoSuchMethodException,
SecurityException
NoSuchMethodException
SecurityException
getDeclaredClasses
public Class[] getDeclaredClasses()
throws SecurityException
SecurityException
getDeclaredFields
public java.lang.reflect.Field[] getDeclaredFields()
throws SecurityException
SecurityException
getDeclaredMethods
public java.lang.reflect.Method[] getDeclaredMethods()
throws SecurityException
SecurityException
getDeclaredConstructors
public java.lang.reflect.Constructor[] getDeclaredConstructors()
throws SecurityException
SecurityException
getDeclaredField
public java.lang.reflect.Field getDeclaredField(String)
throws NoSuchFieldException,
SecurityException
NoSuchFieldException
SecurityException
getDeclaredMethod
public java.lang.reflect.Method getDeclaredMethod(String,
Class[])
throws NoSuchMethodException,
SecurityException
NoSuchMethodException
SecurityException
getDeclaredConstructor
public java.lang.reflect.Constructor getDeclaredConstructor(Class[])
throws NoSuchMethodException,
SecurityException
NoSuchMethodException
SecurityException
getResourceAsStream
public java.io.InputStream getResourceAsStream(String)
getResource
public java.net.URL getResource(String)
getProtectionDomain
public java.security.ProtectionDomain getProtectionDomain()
getProtectionDomain0
private java.security.ProtectionDomain getProtectionDomain0()
setProtectionDomain0
void setProtectionDomain0(java.security.ProtectionDomain)
getPrimitiveClass
static Class getPrimitiveClass(String)
checkMemberAccess
private void checkMemberAccess(int,
ClassLoader)
resolveName
private String resolveName(String)
privateGetDeclaredFields
private java.lang.reflect.Field[] privateGetDeclaredFields(boolean)
privateGetPublicFields
private java.lang.reflect.Field[] privateGetPublicFields(java.util.Set)
addAll
private static void addAll(java.util.Collection,
java.lang.reflect.Field[])
privateGetDeclaredConstructors
private java.lang.reflect.Constructor[] privateGetDeclaredConstructors(boolean)
privateGetDeclaredMethods
private java.lang.reflect.Method[] privateGetDeclaredMethods(boolean)
privateGetPublicMethods
private java.lang.reflect.Method[] privateGetPublicMethods()
addAll
private static void addAll(java.util.Collection,
java.lang.reflect.Method[])
removeByNameAndSignature
private static void removeByNameAndSignature(java.util.Collection,
java.lang.reflect.Method)
getField0
private java.lang.reflect.Field getField0(String,
int)
throws NoSuchFieldException
NoSuchFieldException
getMethod0
private java.lang.reflect.Method getMethod0(String,
Class[],
int)
throws NoSuchMethodException
NoSuchMethodException
getConstructor0
private java.lang.reflect.Constructor getConstructor0(Class[],
int)
throws NoSuchMethodException
NoSuchMethodException
arrayContentsEq
private static boolean arrayContentsEq(Object[],
Object[])
copyFields
private static java.lang.reflect.Field[] copyFields(java.lang.reflect.Field[])
copyMethods
private static java.lang.reflect.Method[] copyMethods(java.lang.reflect.Method[])
copyConstructors
private static java.lang.reflect.Constructor[] copyConstructors(java.lang.reflect.Constructor[])
getDeclaredFields0
private java.lang.reflect.Field[] getDeclaredFields0(boolean)
getDeclaredMethods0
private java.lang.reflect.Method[] getDeclaredMethods0(boolean)
getDeclaredConstructors0
private java.lang.reflect.Constructor[] getDeclaredConstructors0(boolean)
getDeclaredClasses0
private Class[] getDeclaredClasses0()
desiredAssertionStatus
public boolean desiredAssertionStatus()
desiredAssertionStatus0
private static boolean desiredAssertionStatus0(Class)
getReflectionFactory
private static sun.reflect.ReflectionFactory getReflectionFactory()
checkInitted
private static void checkInitted()
static void ()