Use 
PREV   NEXT      All Classes   All Packages
FlexDoc/Javadoc 2.0
Demo Java Doc

Uses of Class
java.lang.Class
Packages that use Class
Provides for system input and output through data streams, serialization and the file system.
Provides classes that are fundamental to the design of the Java programming language.
Provides library support for the Java programming language annotation facility.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Uses of Class in java.io
Methods in java.io that return Class
ObjectInputFilter.FilterInfo.serialClass()
The class of an object being deserialized.
protected Class<?>
ObjectInputStream.resolveClass(ObjectStreamClass desc)
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.
ObjectStreamClass.forClass()
Return the class in the local VM that this version is mapped to.
ObjectStreamField.getType()
Get the type of the field.
Methods in java.io with parameters of type Class
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.
ObjectStreamClass.lookup(Class<?> cl)
Find the descriptor for a class that can be serialized.
ObjectStreamClass.lookupAny(Class<?> cl)
Returns the descriptor for any class, regardless of whether it implements Serializable.
Method parameters in java.io with type arguments of type Class
ObjectInputFilter.allowFilter(Predicate<Class<?>> predicate, ObjectInputFilter.Status otherStatus)
Returns a filter that returns Status.ALLOWED if the predicate on the class is true.
ObjectInputFilter.rejectFilter(Predicate<Class<?>> predicate, ObjectInputFilter.Status otherStatus)
Returns a filter that returns Status.REJECTED if the predicate on the class is true.
Constructors in java.io with parameters of type Class
Create a Serializable field with the specified type.
ObjectStreamField(String name, Class<?> type, boolean unshared)
Creates an ObjectStreamField representing a serializable field with the given name and type.
Uses of Class in java.lang
Class declarations in java.lang with type arguments of type Class
class
Instances of the class Class represent classes and interfaces in a running Java application.
Fields in java.lang declared as Class
static final Class<Boolean>
Boolean.TYPE
The Class object representing the primitive type boolean.
static final Class<Byte>
Byte.TYPE
The Class instance representing the primitive type byte.
static final Class<Character>
Character.TYPE
The Class instance representing the primitive type char.
static final Class<Double>
Double.TYPE
The Class instance representing the primitive type double.
static final Class<Float>
Float.TYPE
The Class instance representing the primitive type float.
static final Class<Integer>
Integer.TYPE
The Class instance representing the primitive type int.
static final Class<Long>
Long.TYPE
The Class instance representing the primitive type long.
static final Class<Short>
Short.TYPE
The Class instance representing the primitive type short.
static final Class<Void>
Void.TYPE
The Class object representing the pseudo-type corresponding to the keyword void.
Methods in java.lang that return Class
Class.arrayType()
Returns a Class for an array type whose component type is described by this Class.
<U> Class<? extends U>
Class.asSubclass(Class<U> clazz)
Casts this Class object to represent a subclass of the class represented by the specified class object.
Returns the component type of this Class, if it describes an array type, or null otherwise.
static Class<?>
Class.forName(Module module, String name)
Returns the Class with the given binary name in the given module.
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.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.
Returns the Class representing the component type of an array.
Class<?>[]
Returns an array of Class objects reflecting all the classes and interfaces declared as members of the class represented by this Class object.
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.
Returns the immediately enclosing class of the underlying class.
Class<?>[]
Returns the interfaces directly implemented by the class or interface represented by this Class object.
Class.getNestHost()
Returns the nest host of the nest to which the class or interface represented by this Class object belongs.
Class<?>[]
Returns an array containing Class objects representing all the classes and interfaces that are members of the nest to which the class or interface represented by this Class object belongs.
Class<?>[]
Returns an array containing Class objects representing the direct subinterfaces or subclasses permitted to extend or implement this class or interface if it is sealed.
Class<? super T>
Returns the Class representing the direct superclass of the entity (class, interface, primitive type or void) represented by this Class.
protected final Class<?>
ClassLoader.defineClass(byte[] b, int off, int len)
protected final Class<?>
ClassLoader.defineClass(String name, byte[] b, int off, int len)
Converts an array of bytes into an instance of class Class.
protected final 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 a given ProtectionDomain.
protected final Class<?>
ClassLoader.defineClass(String name, ByteBuffer b, ProtectionDomain protectionDomain)
Converts a ByteBuffer into an instance of class Class, with the given ProtectionDomain.
protected Class<?>
ClassLoader.findClass(String moduleName, String name)
Finds the class with the given binary name in a module defined to this class loader.
protected Class<?>
ClassLoader.findClass(String name)
Finds the class with the specified binary name.
protected final Class<?>
ClassLoader.findLoadedClass(String name)
Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name.
protected final Class<?>
ClassLoader.findSystemClass(String name)
Finds a class with the specified binary name, loading it if necessary.
ClassLoader.loadClass(String name)
Loads the class with the specified binary name.
protected Class<?>
ClassLoader.loadClass(String name, boolean resolve)
Loads the class with the specified binary name.
final Class<E>
Returns the Class object corresponding to this enum constant's enum type.
Class<? extends Enum>
EnumConstantNotPresentException.enumType()
Returns the type of the missing enum constant.
final Class<?>
Object.getClass()
Returns the runtime class of this Object.
protected Class<?>[]
SecurityManager.getClassContext()
Returns the current execution stack as an array of classes.
StackWalker.getCallerClass()
Gets the Class object of the caller who invoked the method that invoked getCallerClass.
StackWalker.StackFrame.getDeclaringClass()
Gets the declaring Class for the method represented by this stack frame.
Methods in java.lang that return types with arguments of type Class
Returns an array of TypeVariable objects that represent the type variables declared by the generic declaration represented by this GenericDeclaration object, in declaration order.
Methods in java.lang with parameters of type Class
<U> Class<? extends U>
Class.asSubclass(Class<U> clazz)
Casts this Class object to represent a subclass of the class represented by the specified class object.
<A extends AnnotationA
Class.getAnnotation(Class<A> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
<A extends AnnotationA[]
Class.getAnnotationsByType(Class<A> annotationClass)
Returns annotations that are associated with this element.
Class.getConstructor(Class<?>... parameterTypes)
Returns a Constructor object that reflects the specified public constructor of the class represented by this Class object.
<A extends AnnotationA
Class.getDeclaredAnnotation(Class<A> annotationClass)
Returns this element's annotation for the specified type if such an annotation is directly present, else null.
<A extends AnnotationA[]
Class.getDeclaredAnnotationsByType(Class<A> annotationClass)
Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.
Class.getDeclaredConstructor(Class<?>... parameterTypes)
Returns a Constructor object that reflects the specified constructor of the class or interface represented by this Class object.
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.
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.
boolean
Class.isAnnotationPresent(Class<? extends Annotation> annotationClass)
Returns true if an annotation for the specified type is present on this element, else false.
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.
boolean
Class.isNestmateOf(Class<?> c)
Determines if the given Class is a nestmate of the class or interface represented by this Class object.
protected final void
ClassLoader.resolveClass(Class<?> c)
Links the specified class.
protected final void
ClassLoader.setSigners(Class<?> c, Object[] signers)
Sets the signers of a class.
protected abstract T
ClassValue.computeValue(Class<?> type)
Computes the given class's derived value for this ClassValue.
ClassValue.get(Class<?> type)
Returns the value for the given class.
void
ClassValue.remove(Class<?> type)
Removes the associated value for the given class.
static boolean
Compiler.compileClass(Class<?> clazz)
Compiles the specified class.
static <T extends Enum<T>> T
Enum.valueOf(Class<T> enumClass, String name)
Returns the enum constant of the specified enum class with the specified name.
Module.addUses(Class<?> service)
If the caller's module is this module then update this module to add a service dependence on the given service type.
boolean
Module.canUse(Class<?> service)
Indicates if this module has a service dependence on the given service type.
<T extends AnnotationT
Module.getAnnotation(Class<T> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null. This method returns null when invoked on an unnamed module.
<A extends AnnotationA
Package.getAnnotation(Class<A> annotationClass)
Returns this element's annotation for the specified type if such an annotation is present, else null.
<A extends AnnotationA[]
Package.getAnnotationsByType(Class<A> annotationClass)
Returns annotations that are associated with this element.
<A extends AnnotationA
Package.getDeclaredAnnotation(Class<A> annotationClass)
Returns this element's annotation for the specified type if such an annotation is directly present, else null.
<A extends AnnotationA[]
Package.getDeclaredAnnotationsByType(Class<A> annotationClass)
Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.
boolean
Package.isAnnotationPresent(Class<? extends Annotation> annotationClass)
Returns true if an annotation for the specified type is present on this element, else false.
Constructors in java.lang with parameters of type Class
EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)
Constructs an EnumConstantNotPresentException for the specified constant.
Methods in java.lang.annotation that return Class
Class<? extends Annotation>
Annotation.annotationType()
Returns the annotation interface of this annotation.
Class<? extends Annotation>
IncompleteAnnotationException.annotationType()
Returns the Class object for the annotation interface with the missing element.
Constructors in java.lang.annotation with parameters of type Class
IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)
Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation interface.
Annotation elements in java.lang.annotation that return Class
Class<? extends Annotation>
Repeatable.value
Indicates the containing annotation interface for the repeatable annotation interface.
Uses of Class in java.util
Methods in java.util that return Class
IllegalFormatConversionException.getArgumentClass()
Returns the class of the mismatched argument.
Class<? extends S>
ServiceLoader.Provider.type()
Returns the provider type.
Methods in java.util with parameters of type Class
static <T,UT[]
Arrays.copyOf(U[] original, int newLength, Class<? extends T[]> newType)
Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.
static <T,UT[]
Arrays.copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType)
Copies the specified range of the specified array into a new array.
static <E> Collection<E>
Collections.checkedCollection(Collection<E> c, Class<E> type)
Returns a dynamically typesafe view of the specified collection.
static <EList<E>
Collections.checkedList(List<E> list, Class<E> type)
Returns a dynamically typesafe view of the specified list.
static <K,VMap<K,V>
Collections.checkedMap(Map<K,V> m, Class<K> keyType, Class<V> valueType)
Returns a dynamically typesafe view of the specified map.
static <K,V> NavigableMap<K,V>
Collections.checkedNavigableMap(NavigableMap<K,V> m, Class<K> keyType, Class<V> valueType)
Returns a dynamically typesafe view of the specified navigable map.
static <E> NavigableSet<E>
Collections.checkedNavigableSet(NavigableSet<E> s, Class<E> type)
Returns a dynamically typesafe view of the specified navigable set.
static <EQueue<E>
Collections.checkedQueue(Queue<E> queue, Class<E> type)
Returns a dynamically typesafe view of the specified queue.
static <ESet<E>
Collections.checkedSet(Set<E> s, Class<E> type)
Returns a dynamically typesafe view of the specified set.
static <K,V> SortedMap<K,V>
Collections.checkedSortedMap(SortedMap<K,V> m, Class<K> keyType, Class<V> valueType)
Returns a dynamically typesafe view of the specified sorted map.
static <E> SortedSet<E>
Collections.checkedSortedSet(SortedSet<E> s, Class<E> type)
Returns a dynamically typesafe view of the specified sorted set.
static <E extends Enum<E>> EnumSet<E>
EnumSet.allOf(Class<E> elementType)
Creates an enum set containing all of the elements in the specified element type.
static <E extends Enum<E>> EnumSet<E>
EnumSet.noneOf(Class<E> elementType)
Creates an empty enum set with the specified element type.
static <S> ServiceLoader<S>
ServiceLoader.load(Class<S> service)
Creates a new service loader for the given service type, using the current thread's context class loader.
static <S> ServiceLoader<S>
ServiceLoader.load(Class<S> service, ClassLoader loader)
Creates a new service loader for the given service.
static <S> ServiceLoader<S>
ServiceLoader.load(ModuleLayer layer, Class<S> service)
Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors.
static <S> ServiceLoader<S>
ServiceLoader.loadInstalled(Class<S> service)
Creates a new service loader for the given service type, using the platform class loader.
Constructors in java.util with parameters of type Class
EnumMap(Class<K> keyType)
Creates an empty enum map with the specified key type.
Constructs an instance of this class with the mismatched conversion and the corresponding argument class.

 Use 
PREV   NEXT      All Classes   All Packages
FlexDoc/Javadoc 2.0
Demo Java Doc

Java API documentation generated with FlexDoc/Javadoc 2.0 using JavadocClassic 3.0 template set.
FlexDoc/Javadoc is a template-driven programming tool for rapid development of any Javadoc-based Java API documentation generators (i.e. doclets). If you need to customize your Javadoc without writing a full-blown doclet from scratch, FlexDoc/Javadoc may be the only tool able to help you! Find out more at www.flexdoc.xyz