Package | Description |
---|---|
java.io | |
java.lang | |
java.lang.reflect | |
java.net | |
java.rmi.server | |
java.security |
Modifier and Type | Method and Description |
---|---|
Class |
ObjectStreamClass.forClass() |
Class |
ObjectStreamField.getType() |
protected Class |
ObjectInputStream.resolveClass(ObjectStreamClass osc) |
protected Class |
ObjectInputStream.resolveProxyClass(String[] interfaces) |
Modifier and Type | Method and Description |
---|---|
protected void |
ObjectOutputStream.annotateClass(Class clazz) |
protected void |
ObjectOutputStream.annotateProxyClass(Class clazz) |
static ObjectStreamClass |
ObjectStreamClass.lookup(Class cl)
this cache can grow and eat up resources ...
|
Constructor and Description |
---|
ObjectStreamField(String name,
Class type) |
ObjectStreamField(String name,
Class type,
boolean unshared) |
Modifier and Type | Field and Description |
---|---|
static Class |
Boolean.TYPE |
static Class |
Byte.TYPE |
static Class |
Character.TYPE |
static Class |
Double.TYPE |
static Class |
Float.TYPE |
static Class |
Integer.TYPE |
static Class |
Long.TYPE |
static Class |
Short.TYPE |
static Class |
Void.TYPE |
Modifier and Type | Method and Description |
---|---|
protected Class |
SecurityManager.currentLoadedClass()
Get the topmost class on the stack that was not loaded by the system class loader or bootstrap class loader.
|
protected Class |
ClassLoader.defineClass(byte[] data,
int offset,
int length)
Deprecated.
Replaced by defineClass(String, byte[], int, int)
|
protected Class |
ClassLoader.defineClass(String classname,
byte[] data,
int offset,
int length)
If no ProtectionDomain is specified, the default domain is used.
|
protected Class |
ClassLoader.defineClass(String classname,
byte[] data,
int offset,
int length,
ProtectionDomain pd)
Turns a bag of bytecodes into a Class and register it in the namespace of this ClassLoader.
|
protected Class |
ClassLoader.findClass(String classname)
The default implementation of findClass() is just a mugtrap: any
real ClassLoader must override it.
|
protected Class |
ClassLoader.findLoadedClass(String classname)
findLoadedClass looks for a class in the cache of classes for which
this ClassLoader was the defining ClassLoader.
|
protected Class |
ClassLoader.findSystemClass(String classname)
findSystemClass tries to load the named class using the system ClassLoader
|
static Class |
Class.forName(String classname)
Find and initialize the class with the given name, using the
``current'' class loader (the one that loaded the calling class).
|
static Class |
Class.forName(String classname,
boolean initialize,
ClassLoader loader)
Find and optionally initialize the class with the given name, using
the given class loader.
|
Class |
Object.getClass()
Get the class of which this object is an instance.
|
protected Class[] |
SecurityManager.getClassContext()
The Class[] returned contains one element for every method on the stack, starting with the method which called getClassContext().
|
Class[] |
Class.getClasses()
Return an array of Class objects, one for every Class which is a public member of this Class.
|
Class |
Class.getComponentType()
Get the component type of this Class.
|
Class[] |
Class.getDeclaredClasses()
Return an array of Class objects, one for every Class which is a declared in this Class as a member.
|
Class |
Class.getDeclaringClass()
If this Class is a member of another Class, return that Class.
|
Class[] |
Class.getInterfaces()
Get this Class's superinterfaces.
|
Class |
Class.getSuperclass()
Get this Class's superclass.
|
Class |
ClassLoader.loadClass(String classname)
If no 'resolve' parameter is supplied then the default is 'false'
(N.B.
|
protected Class |
ClassLoader.loadClass(String classname,
boolean resolve)
As of Java 1.2 this method is no longer abstract.
|
Modifier and Type | Method and Description |
---|---|
void |
SecurityManager.checkMemberAccess(Class cl,
int mtype)
Checks whether the caller has access to the declared members of ``cl''.
|
static boolean |
Compiler.compileClass(Class clazz) |
Constructor |
Class.getConstructor(Class[] parameterTypes)
Get this Class's public constructor with the given parameter types.
|
Constructor |
Class.getDeclaredConstructor(Class[] parameterTypes)
Get this Class's declared constructor with the given parameter types.
|
Method |
Class.getDeclaredMethod(String methodname,
Class[] parameterTypes)
Get this Class's public method with the given name and parameter types.
|
Method |
Class.getMethod(String methodname,
Class[] parameterTypes)
Get this Class's public method with the given name and parameter types.
|
boolean |
Class.isAssignableFrom(Class cls)
Test whether this Class is the same as, or a superclass or superinterface of, Class cls.
|
protected void |
ClassLoader.resolveClass(Class c)
resolveClass forces all constants in the constant pool of c to be resolved.
|
protected void |
ClassLoader.setSigners(Class cl,
Object[] signers)
Set the signers of a class.
|
Modifier and Type | Method and Description |
---|---|
Class |
Constructor.getDeclaringClass() |
Class |
Field.getDeclaringClass() |
Class |
Member.getDeclaringClass() |
Class |
Method.getDeclaringClass() |
Class[] |
Constructor.getExceptionTypes() |
Class[] |
Method.getExceptionTypes() |
Class[] |
Constructor.getParameterTypes() |
Class[] |
Method.getParameterTypes() |
static Class |
Proxy.getProxyClass(ClassLoader loader,
Class[] interfaces) |
Class |
Method.getReturnType() |
Class |
Field.getType() |
Modifier and Type | Method and Description |
---|---|
static Class |
Proxy.getProxyClass(ClassLoader loader,
Class[] interfaces) |
static boolean |
Proxy.isProxyClass(Class clazz) |
static Object |
Array.newInstance(Class componentType,
int length) |
static Object |
Array.newInstance(Class componentType,
int[] dimensions) |
static Object |
Proxy.newProxyInstance(ClassLoader loader,
Class[] interfaces,
InvocationHandler h) |
Modifier and Type | Method and Description |
---|---|
protected Class |
URLClassLoader.findClass(String name) |
Modifier and Type | Method and Description |
---|---|
Object |
URL.getContent(Class[] types)
Gets the content of the resource which is referred by this URL.
|
Object |
URLConnection.getContent(Class[] types)
Gets an object representing the content of the resource this
URLConnection is connected to. |
Object |
ContentHandler.getContent(URLConnection urlc,
Class[] classes) |
Modifier and Type | Method and Description |
---|---|
Class |
LoaderHandler.loadClass(String name) |
static Class |
RMIClassLoader.loadClass(String name)
Deprecated.
|
static Class |
RMIClassLoader.loadClass(String codebase,
String name) |
Class |
LoaderHandler.loadClass(URL codebase,
String name) |
static Class |
RMIClassLoader.loadClass(URL codebase,
String name) |
Modifier and Type | Method and Description |
---|---|
static String |
RMIClassLoader.getClassAnnotation(Class cl) |
Modifier and Type | Method and Description |
---|---|
protected Class |
SecureClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
CodeSource cs) |
Modifier and Type | Method and Description |
---|---|
protected abstract KeySpec |
KeyFactorySpi.engineGetKeySpec(Key key,
Class keySpec) |
protected abstract AlgorithmParameterSpec |
AlgorithmParametersSpi.engineGetParameterSpec(Class paramSpec) |
KeySpec |
KeyFactory.getKeySpec(Key key,
Class keySpec) |
AlgorithmParameterSpec |
AlgorithmParameters.getParameterSpec(Class paramSpec) |