|
JSR-62 (Final) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Class | |
java.awt.datatransfer | Provides interfaces and classes for transferring data between and within applications. |
java.io | |
java.lang | |
java.lang.reflect | |
java.net | |
java.security |
Uses of Class in java.awt.datatransfer |
Methods in java.awt.datatransfer that return Class | |
Class |
DataFlavor.getRepresentationClass()
Returns the Class which objects supporting this DataFlavor will return when this DataFlavor is requested. |
Constructors in java.awt.datatransfer with parameters of type Class | |
DataFlavor(Class representationClass,
String humanPresentableName)
Construct a DataFlavor that represents a Java class |
Uses of Class in java.io |
Methods in java.io that return Class | |
Class |
ObjectStreamClass.forClass()
Return the class in the local VM that this version is mapped to. |
protected Class |
ObjectInputStream.resolveClass(ObjectStreamClass v)
Load the local class equivalent of the specified stream class description. |
protected Class |
ObjectInputStream.resolveProxyClass(String[] interfaces)
Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class. |
Class |
ObjectStreamField.getType()
Get the type of the field. |
Methods in java.io with parameters of type Class | |
static ObjectStreamClass |
ObjectStreamClass.lookup(Class cl)
Find the descriptor for a class that can be serialized. |
protected void |
ObjectOutputStream.annotateClass(Class cl)
Subclasses may implement this method to allow class data to be stored in the stream. |
protected void |
ObjectOutputStream.annotateProxyClass(Class cl)
Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes. |
Constructors in java.io with parameters of type Class | |
ObjectStreamField(String n,
Class clazz)
Create a Serializable field with the specified type. |
Uses of Class in java.lang |
Fields in java.lang declared as Class | |
static Class |
Void.TYPE
The Class object representing the primitive Java type void. |
static Class |
Short.TYPE
The Class object representing the primitive type short. |
static Class |
Long.TYPE
The Class object representing the primitive type long. |
static Class |
Float.TYPE
The Class object representing the primitive type float. |
static Class |
Double.TYPE
The Class object representing the primitive type double. |
static Class |
Character.TYPE
The Class object representing the primitive type char. |
static Class |
Byte.TYPE
The Class object representing the primitive type byte. |
static Class |
Boolean.TYPE
The Class object representing the primitive type boolean. |
static Class |
Integer.TYPE
The Class object representing the primitive type int. |
Methods in java.lang that return Class | |
protected Class[] |
SecurityManager.getClassContext()
Returns the current execution stack as an array of classes. |
Class |
ClassLoader.loadClass(String name)
Loads the class with the specified name. |
protected Class |
ClassLoader.loadClass(String name,
boolean resolve)
Loads the class with the specified name. |
protected Class |
ClassLoader.findClass(String name)
Finds the specified class. |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len)
Converts an array of bytes into an instance of class Class . |
protected Class |
ClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
ProtectionDomain protectionDomain)
Converts an array of bytes into an instance of class Class, with an optional ProtectionDomain. |
protected Class |
ClassLoader.findSystemClass(String name)
Finds a class with the specified name, loading it if necessary. |
protected Class |
ClassLoader.findLoadedClass(String name)
Finds the class with the given name if it had been previously loaded through this class loader. |
static Class |
Class.forName(String className)
Returns the Class object associated with the class or
interface with the given string name. |
static Class |
Class.forName(String name,
boolean initialize,
ClassLoader loader)
Returns the Class object associated with the class or
interface with the given string name, using the given class loader. |
Class |
Class.getSuperclass()
Returns the Class representing the superclass of the entity
(class, interface, primitive type or void) represented by this
Class . |
Class[] |
Class.getInterfaces()
Determines the interfaces implemented by the class or interface represented by this object. |
Class |
Class.getComponentType()
Returns the Class representing the component type of an
array. |
Class |
Class.getDeclaringClass()
If the class or interface represented by this Class object
is a member of another class, returns the Class object
representing the class in which it was declared. |
Class[] |
Class.getClasses()
Returns an array containing Class objects representing all
the public classes and interfaces that are members of the class
represented by this Class object. |
Class[] |
Class.getDeclaredClasses()
Returns an array of Class objects reflecting all the
classes and interfaces declared as members of the class represented by
this Class object. |
Class |
Object.getClass()
Returns the runtime class of an object. |
Methods in java.lang with parameters of type Class | |
void |
SecurityManager.checkMemberAccess(Class clazz,
int which)
Throws a SecurityException if the
calling thread is not allowed to access members. |
protected void |
ClassLoader.resolveClass(Class c)
Links the specified class. |
protected void |
ClassLoader.setSigners(Class c,
Object[] signers)
Sets the signers of a class. |
boolean |
Class.isAssignableFrom(Class cls)
Determines if the class or interface represented by this Class object is either the same as, or is a superclass or
superinterface of, the class or interface represented by the specified
Class parameter. |
Method |
Class.getMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified public
member method of the class or interface represented by this
Class object. |
Constructor |
Class.getConstructor(Class[] parameterTypes)
Returns a Constructor object that reflects the specified
public constructor of the class represented by this Class
object. |
Method |
Class.getDeclaredMethod(String name,
Class[] parameterTypes)
Returns a Method object that reflects the specified
declared method of the class or interface represented by this
Class object. |
Constructor |
Class.getDeclaredConstructor(Class[] parameterTypes)
Returns a Constructor object that reflects the specified
constructor of the class or interface represented by this
Class object. |
static boolean |
Compiler.compileClass(Class clazz)
Compiles the specified class. |
Uses of Class in java.lang.reflect |
Methods in java.lang.reflect that return Class | |
static Class |
Proxy.getProxyClass(ClassLoader loader,
Class[] interfaces)
Returns the java.lang.Class object for a proxy class
given a class loader and an array of interfaces. |
Class |
Constructor.getDeclaringClass()
Returns the Class object representing the class that declares
the constructor represented by this Constructor object. |
Class[] |
Constructor.getParameterTypes()
Returns an array of Class objects that represent the formal
parameter types, in declaration order, of the constructor
represented by this Constructor object. |
Class[] |
Constructor.getExceptionTypes()
Returns an array of Class objects that represent the types of
of exceptions declared to be thrown by the underlying constructor
represented by this Constructor object. |
Class |
Method.getDeclaringClass()
Returns the Class object representing the class or interface
that declares the method represented by this Method object. |
Class |
Method.getReturnType()
Returns a Class object that represents the formal return type
of the method represented by this Method object. |
Class[] |
Method.getParameterTypes()
Returns an array of Class objects that represent the formal
parameter types, in declaration order, of the method
represented by this Method object. |
Class[] |
Method.getExceptionTypes()
Returns an array of Class objects that represent
the types of the exceptions declared to be thrown
by the underlying method
represented by this Method object. |
Class |
Member.getDeclaringClass()
Returns the Class object representing the class or interface that declares the member or constructor represented by this Member. |
Class |
Field.getDeclaringClass()
Returns the Class object representing the class or interface
that declares the field represented by this Field object. |
Class |
Field.getType()
Returns a Class object that identifies the declared type for
the field represented by this Field object. |
Methods in java.lang.reflect with parameters of type Class | |
static Class |
Proxy.getProxyClass(ClassLoader loader,
Class[] interfaces)
Returns the java.lang.Class object for a proxy class
given a class loader and an array of interfaces. |
static Object |
Proxy.newProxyInstance(ClassLoader loader,
Class[] interfaces,
InvocationHandler h)
Returns an instance of a proxy class for the specified interfaces that dispatches method invocations to the specified invocation handler. |
static boolean |
Proxy.isProxyClass(Class cl)
Returns true if and only if the specified class was dynamically generated to be a proxy class using the getProxyClass
method or the newProxyInstance method. |
static Object |
Array.newInstance(Class componentType,
int length)
Creates a new array with the specified component type and length. |
static Object |
Array.newInstance(Class componentType,
int[] dimensions)
Creates a new array with the specified component type and dimensions. |
Uses of Class in java.net |
Methods in java.net that return Class | |
protected Class |
URLClassLoader.findClass(String name)
Finds and loads the class with the specified name from the URL search path. |
Methods in java.net with parameters of type Class | |
Object |
ContentHandler.getContent(URLConnection urlc,
Class[] classes)
Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified. |
Object |
URLConnection.getContent(Class[] classes)
Retrieves the contents of this URL connection. |
Object |
URL.getContent(Class[] classes)
Returns the contents of this URL. |
Uses of Class in java.security |
Methods in java.security that return Class | |
protected Class |
SecureClassLoader.defineClass(String name,
byte[] b,
int off,
int len,
CodeSource cs)
Converts an array of bytes into an instance of class Class, with an optional CodeSource. |
Methods in java.security with parameters of type Class | |
protected abstract KeySpec |
KeyFactorySpi.engineGetKeySpec(Key key,
Class keySpec)
Returns a specification (key material) of the given key object. |
KeySpec |
KeyFactory.getKeySpec(Key key,
Class keySpec)
Returns a specification (key material) of the given key object. |
protected abstract AlgorithmParameterSpec |
AlgorithmParametersSpi.engineGetParameterSpec(Class paramSpec)
Returns a (transparent) specification of this parameters object. |
AlgorithmParameterSpec |
AlgorithmParameters.getParameterSpec(Class paramSpec)
Returns a (transparent) specification of this parameter object. |
|
JSR-62 (Final) | ||||||||||
PREV NEXT | FRAMES NO FRAMES |