Uses of Class
java.lang.Class
Packages that useClass
Package
Description
Provides a collection of interfaces and classes that compose the Java AccessibilityUtilities.
Provides interfaces to represent source code as abstract syntaxtrees (AST).
Contains all of the classes for creating user interfaces and for paintinggraphics and images.
Provides interfaces and classes for transferring data between and withinapplications.
Drag and Drop is a direct manipulation gesture found in many Graphical UserInterface systems that provides a mechanism to transfer information betweentwo entities logically associated with presentation elements in the GUI.
Provides classes and interfaces for producing rendering-independent images.
Contains classes related to developingbeans -- components based onthe JavaBeans architecture.
Provides classes and interfaces relating to bean context.
Provides for system input and output through data streams,serialization and the file system.
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides library support for the Java programming languageannotation facility.
Provides classfile parsing, generation, and transformation library.
Provides interfaces describing constant pool entries for the
java.lang.classfile library.Classes and interfaces to representnominal descriptors for run-timeentities such as classes or method handles, and classfile entities such asconstant pool entries or
invokedynamic call sites.Provides low-level access to memory and functions outside the Java runtime.
Provides services that allow Java programming language agents to instrumentprograms running on the Java Virtual Machine (JVM).
The
java.lang.invoke package provides low-level primitives for interactingwith the Java Virtual Machine.Provides the management interfaces for monitoring and management of theJava virtual machine and other components in the Java runtime.
Provides classes and interfaces for obtaining reflective information aboutclasses and objects.
The
java.lang.runtime package provides low-level runtime supportfor the Java language.Provides the classes for implementing networking applications.
Defines interfaces and classes for the Java virtual machine to access files,file attributes, and file systems.
Service-provider classes for the
java.nio.file package.Provides classes and interfaces for supporting the server side of RMI.
Provides the classes and interfaces for the security framework.
Provides the API for accessing and processing data stored in adata source (usually a relational database) using theJava programming language.
Contains the collections framework, some internationalization support classes,a service loader, properties, random number generation, string parsingand scanning classes, base64 encoding and decoding, a bit array, andseveral miscellaneous utility classes.
A small toolkit of classes that support lock-free thread-safeprogramming on single variables.
This package allows applications to store and retrieve user and systempreference and configuration data.
Facilities for declaring annotation processors and forallowing annotation processors to communicate with an annotation processingtool environment.
Provides the classes and interfaces for cryptographicoperations.
A package of the Java Image I/O API dealing with reading and writingmetadata.
A package of the Java Image I/O API containing the plug-in interfaces forreaders, writers, transcoders, and streams, and a runtime registry.
Types and hierarchies of packages comprising a Java language model, a reflective API that models the declarations and types of the Javaprogramming language.
Interfaces used to model elements of the Java programming language.
Interfaces used to model Java programming language types.
Provides the core classes for the Java Management Extensions.
Provides the classes which implement advanced dynamicloading.
Provides the open data types and Open MBean descriptor classes.
Provides the means for dynamically plugging in support for accessingnaming and directory services through the
javax.namingand related packages.Provides the principal classes and interfaces for the Java PrintService API.
Provides classes and interfaces that describe the types of Java PrintService attributes and how they can be collected into attribute sets.
Package
javax.print.attribute.standard contains classes for specificprinting attributes.The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
This package provides a framework for authentication andauthorization.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI(Musical Instrument Digital Interface) data.
Provides interfaces and classes for capture, processing, and playback ofsampled audio data.
Provides the API for server side data source access and processing fromthe Java programming language.
Standard interfaces and base classes for JDBC
RowSet implementations.Provides utility classes to allow serializable mappings between SQL typesand data types in the Java programming language.
Provides a set of "lightweight" (all-Java language) componentsthat, to the maximum degree possible, work the same on all platforms.
Provides for events fired by Swing components.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable.Provides classes and interfaces that deal with editable and noneditable textcomponents.
Provides classes and interfaces for dealing with
javax.swing.JTree.Provides interfaces for tools which can be invoked from a program,for example, compilers.
Provides anobject-model neutral API for theevaluation of XPath expressions and access to the evaluationenvironment.
Contains the linker for ordinary Java objects.
Contains interfaces and classes needed by language runtimes to implementtheir own language-specific object models and type conversions.
Contains classes that make it more convenient for language runtimes toimplement their own language-specific object models and type conversionsby providing basic implementations of some classes as well as variousutilities.
Incubating Feature. Will be removed in a future release.
This package provides classes to create events and control Flight Recorder.
This package contains classes for consuming Flight Recorder data.
Provides implementation support for building JShell execution engines.
Platform specific socket options for the
java.net andjava.nio.channelssocket classes.Uses ofClass incom.sun.java.accessibility.util
Methods incom.sun.java.accessibility.util that returnClassModifier and TypeMethodDescriptionprotected staticClass<?> Translator.getTranslatorClass(Class<?> c) Find a translator for this class.Methods incom.sun.java.accessibility.util with parameters of typeClassModifier and TypeMethodDescriptionvoidAccessibilityListenerList.add(Class<? extendsEventListener> t,EventListener l) Add the listener as a listener of the specified type.intAccessibilityListenerList.getListenerCount(Class<? extendsEventListener> t) Return the total number of listeners of the supplied typefor this listener list.protected staticClass<?> Translator.getTranslatorClass(Class<?> c) Find a translator for this class.voidAccessibilityListenerList.remove(Class<? extendsEventListener> t,EventListener l) Remove the listener as a listener of the specified type.Uses ofClass incom.sun.source.tree
Methods incom.sun.source.tree that returnClassModifier and TypeMethodDescriptionTree.Kind.asInterface()Returns the associated interface type that uses this kind.Uses ofClass injava.awt
Modifier and TypeMethodDescription<T extendsDragGestureRecognizer>
TToolkit.createDragGestureRecognizer(Class<T> abstractRecognizerClass,DragSource ds,Component c, int srcActions,DragGestureListener dgl) Creates a concrete, platform dependent, subclass of the abstractDragGestureRecognizer class requested, and associates it with theDragSource, Component and DragGestureListener specified.static <T extendsEventListener>
T[]AWTEventMulticaster.getListeners(EventListener l,Class<T> listenerType) Returns an array of all the objects chained asFooListeners by the specifiedjava.util.EventListener.<T extendsEventListener>
T[]Button.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisButton.<T extendsEventListener>
T[]Checkbox.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisCheckbox.<T extendsEventListener>
T[]CheckboxMenuItem.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisCheckboxMenuItem.<T extendsEventListener>
T[]Choice.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisChoice.<T extendsEventListener>
T[]Component.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisComponent.<T extendsEventListener>
T[]Container.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisContainer.<T extendsEventListener>
T[]List.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisList.<T extendsEventListener>
T[]MenuItem.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisMenuItem.<T extendsEventListener>
T[]Scrollbar.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisScrollbar.<T extendsEventListener>
T[]TextComponent.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisTextComponent.<T extendsEventListener>
T[]TextField.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisTextField.<T extendsEventListener>
T[]Window.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisWindow.protected static voidAWTKeyStroke.registerSubclass(Class<?> subclass) Deprecated.Uses ofClass injava.awt.datatransfer
Methods injava.awt.datatransfer that returnClassModifier and TypeMethodDescriptionfinalClass<?> DataFlavor.getDefaultRepresentationClass()Returns the default representation class.Class<?> DataFlavor.getRepresentationClass()Returns theClasswhich objects supporting thisDataFlavorwill return when thisDataFlavoris requested.protected static finalClass<?> DataFlavor.tryToLoadClass(String className,ClassLoader fallback) Tries to load a class from: the bootstrap loader, the system loader, thecontext loader (if one is present) and finally the loader specified.Constructors injava.awt.datatransfer with parameters of typeClassModifierConstructorDescriptionDataFlavor(Class<?> representationClass,String humanPresentableName) Constructs aDataFlavorthat represents a Java class.Uses ofClass injava.awt.dnd
Methods injava.awt.dnd with parameters of typeClassModifier and TypeMethodDescription<T extendsDragGestureRecognizer>
TDragSource.createDragGestureRecognizer(Class<T> recognizerAbstractClass,Component c, int actions,DragGestureListener dgl) Creates a newDragGestureRecognizerthat implements the specifiedabstract subclass ofDragGestureRecognizer, andsets the specifiedComponentandDragGestureListeneronthe newly created object.<T extendsEventListener>
T[]DragSource.getListeners(Class<T> listenerType) Gets all the objects currently registered asFooListeners upon thisDragSource.Uses ofClass injava.awt.image.renderable
Methods injava.awt.image.renderable that returnClassModifier and TypeMethodDescriptionClass<?>[]ParameterBlock.getParamClasses()Returns an array of Class objects describing the typesof the parameters.Uses ofClass injava.beans
Methods injava.beans that returnClassModifier and TypeMethodDescriptionClass<?> BeanDescriptor.getBeanClass()Gets the bean's Class object.Class<?> BeanDescriptor.getCustomizerClass()Gets the Class object for the bean's customizer.Class<?> IndexedPropertyDescriptor.getIndexedPropertyType()Returns the Java type info for the indexed property.Class<?> EventSetDescriptor.getListenerType()Gets theClassobject for the target interface.Class<?> PropertyDescriptor.getPropertyEditorClass()Gets any explicit PropertyEditor Class that has been registeredfor this property.Class<?> PropertyDescriptor.getPropertyType()Returns the Java type info for the property.Methods injava.beans with parameters of typeClassModifier and TypeMethodDescriptionstatic <T> TCreates an implementation oflistenerInterfacein whichall of the methods in the listener interface apply the handler'sactionto thetarget.static <T> TEventHandler.create(Class<T> listenerInterface,Object target,String action,String eventPropertyName) /** Creates an implementation oflistenerInterfacein whichall of the methods pass the value of the event expression,eventPropertyName, to the final method in the statement,action, which is applied to thetarget.static <T> TEventHandler.create(Class<T> listenerInterface,Object target,String action,String eventPropertyName,String listenerMethodName) Creates an implementation oflistenerInterfacein which the method namedlistenerMethodNamepasses the value of the event expression,eventPropertyName, to the final method in the statement,action, which is applied to thetarget.staticPropertyEditorPropertyEditorManager.findEditor(Class<?> targetType) Locate a value editor for a given target type.static voidIntrospector.flushFromCaches(Class<?> clz) Flush the Introspector's internal cached information for a given class.staticBeanInfoIntrospector.getBeanInfo(Class<?> beanClass) Introspect on a Java Bean and learn about all its properties, exposedmethods, and events.staticBeanInfoIntrospector.getBeanInfo(Class<?> beanClass, int flags) Introspect on a Java bean and learn about all its properties, exposedmethods, and events, subject to some control flags.staticBeanInfoIntrospector.getBeanInfo(Class<?> beanClass,Class<?> stopClass) Introspect on a Java bean and learn all about its properties, exposedmethods, below a given "stop" point.staticBeanInfoIntrospector.getBeanInfo(Class<?> beanClass,Class<?> stopClass, int flags) Introspect on a Java Bean and learn about all its properties,exposed methods and events, below a givenstopClasspointsubject to some controlflags.staticObjectBeans.getInstanceOf(Object bean,Class<?> targetType) From a given bean, obtain an object representing a specifiedtype view of that source object.Encoder.getPersistenceDelegate(Class<?> type) Returns the persistence delegate for the given type.protected voidDefaultPersistenceDelegate.initialize(Class<?> type,Object oldInstance,Object newInstance,Encoder out) This default implementation of theinitializemethod assumesall state held in objects of this type is exposed via thematching pairs of "setter" and "getter" methods in the orderthey are returned by the Introspector.protected voidPersistenceDelegate.initialize(Class<?> type,Object oldInstance,Object newInstance,Encoder out) Produce a series of statements with side effects onnewInstanceso that the new instance becomesequivalent tooldInstance.static booleanBeans.isInstanceOf(Object bean,Class<?> targetType) Check if a bean can be viewed as a given target type.static voidPropertyEditorManager.registerEditor(Class<?> targetType,Class<?> editorClass) Registers an editor class to edit values of the given target class.voidEncoder.setPersistenceDelegate(Class<?> type,PersistenceDelegate delegate) Associates the specified persistence delegate with the given type.voidPropertyDescriptor.setPropertyEditorClass(Class<?> propertyEditorClass) Normally PropertyEditors will be found using the PropertyEditorManager.Constructors injava.beans with parameters of typeClassModifierConstructorDescriptionBeanDescriptor(Class<?> beanClass) Create a BeanDescriptor for a bean that doesn't have a customizer.BeanDescriptor(Class<?> beanClass,Class<?> customizerClass) Create a BeanDescriptor for a bean that has a customizer.EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String listenerMethodName) Creates anEventSetDescriptorassuming that you arefollowing the most simple standard design pattern where a namedevent "fred" is (1) delivered as a call on the single method ofinterface FredListener, (2) has a single argument of type FredEvent,and (3) where the FredListener may be registered with a call on anaddFredListener method of the source component and removed with acall on a removeFredListener method.EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String[] listenerMethodNames,String addListenerMethodName,String removeListenerMethodName) Creates anEventSetDescriptorfrom scratch usingstring names.EventSetDescriptor(Class<?> sourceClass,String eventSetName,Class<?> listenerType,String[] listenerMethodNames,String addListenerMethodName,String removeListenerMethodName,String getListenerMethodName) This constructor creates an EventSetDescriptor from scratch usingstring names.EventSetDescriptor(String eventSetName,Class<?> listenerType,MethodDescriptor[] listenerMethodDescriptors,Method addListenerMethod,Method removeListenerMethod) Creates anEventSetDescriptorfrom scratch usingjava.lang.reflect.MethodDescriptorandjava.lang.Classobjects.EventSetDescriptor(String eventSetName,Class<?> listenerType,Method[] listenerMethods,Method addListenerMethod,Method removeListenerMethod) Creates anEventSetDescriptorfrom scratch usingjava.lang.reflect.Methodandjava.lang.Classobjects.EventSetDescriptor(String eventSetName,Class<?> listenerType,Method[] listenerMethods,Method addListenerMethod,Method removeListenerMethod,Method getListenerMethod) This constructor creates an EventSetDescriptor from scratch usingjava.lang.reflect.Method and java.lang.Class objects.IndexedPropertyDescriptor(String propertyName,Class<?> beanClass) This constructor constructs an IndexedPropertyDescriptor for a propertythat follows the standard Java conventions by having getFoo and setFooaccessor methods, for both indexed access and array access.IndexedPropertyDescriptor(String propertyName,Class<?> beanClass,String readMethodName,String writeMethodName,String indexedReadMethodName,String indexedWriteMethodName) This constructor takes the name of a simple property, and methodnames for reading and writing the property, both indexedand non-indexed.PropertyDescriptor(String propertyName,Class<?> beanClass) Constructs a PropertyDescriptor for a property that followsthe standard Java convention by having getFoo and setFooaccessor methods.PropertyDescriptor(String propertyName,Class<?> beanClass,String readMethodName,String writeMethodName) This constructor takes the name of a simple property, and methodnames for reading and writing the property.Uses ofClass injava.beans.beancontext
Fields injava.beans.beancontext declared asClassModifier and TypeFieldDescriptionprotectedClass<?> BeanContextServiceAvailableEvent.serviceClassDeprecated, for removal: This API element is subject to removal in a future version.AClassreference to the newly available serviceprotectedClass<?> BeanContextServiceRevokedEvent.serviceClassDeprecated, for removal: This API element is subject to removal in a future version.AClassreference to the service that is being revoked.Methods injava.beans.beancontext that returnClassModifier and TypeMethodDescriptionClass<?> BeanContextServiceAvailableEvent.getServiceClass()Deprecated, for removal: This API element is subject to removal in a future version.Gets the service class that is the subject of this notification.Class<?> BeanContextServiceRevokedEvent.getServiceClass()Deprecated, for removal: This API element is subject to removal in a future version.Gets the service class that is the subject of this notificationMethods injava.beans.beancontext with parameters of typeClassModifier and TypeMethodDescriptionbooleanBeanContextServices.addService(Class<?> serviceClass,BeanContextServiceProvider serviceProvider) Deprecated, for removal: This API element is subject to removal in a future version.Adds a service to this BeanContext.booleanBeanContextServicesSupport.addService(Class<?> serviceClass,BeanContextServiceProvider bcsp) Deprecated, for removal: This API element is subject to removal in a future version.add a serviceprotected booleanBeanContextServicesSupport.addService(Class<?> serviceClass,BeanContextServiceProvider bcsp, boolean fireEvent) Deprecated, for removal: This API element is subject to removal in a future version.add a serviceprotected static final booleanBeanContextSupport.classEquals(Class<?> first,Class<?> second) Deprecated, for removal: This API element is subject to removal in a future version.Tests to see if two class objects,or their names are equal.BeanContextServicesSupport.createBCSSServiceProvider(Class<?> sc,BeanContextServiceProvider bcsp) Deprecated, for removal: This API element is subject to removal in a future version.subclasses can override this method to create new subclasses ofBCSSServiceProvider without having to override addService() inorder to instantiate.protected final voidBeanContextServicesSupport.fireServiceAdded(Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.Fires aBeanContextServiceEventnotifying of a new service.protected final voidBeanContextServicesSupport.fireServiceRevoked(Class<?> serviceClass, boolean revokeNow) Deprecated, for removal: This API element is subject to removal in a future version.Fires aBeanContextServiceRevokedEventindicating that a particular service isno longer available.Iterator<?> BeanContextServiceProvider.getCurrentServiceSelectors(BeanContextServices bcs,Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.Invoked byBeanContextServices, this methodgets the current service selectors for the specified service.Iterator<?> BeanContextServices.getCurrentServiceSelectors(Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.Gets the list of service dependent service parameters(Service Selectors) for the specified service, bycalling getCurrentServiceSelectors() on theunderlying BeanContextServiceProvider.Iterator<?> BeanContextServicesSupport.BCSSProxyServiceProvider.getCurrentServiceSelectors(BeanContextServices bcs,Class<?> serviceClass) Iterator<?> BeanContextServicesSupport.getCurrentServiceSelectors(Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.BeanContextServiceProvider.getService(BeanContextServices bcs,Object requestor,Class<?> serviceClass,Object serviceSelector) Deprecated, for removal: This API element is subject to removal in a future version.Invoked byBeanContextServices, this methodrequests an instance of aservice from thisBeanContextServiceProvider.BeanContextServices.getService(BeanContextChild child,Object requestor,Class<?> serviceClass,Object serviceSelector,BeanContextServiceRevokedListener bcsrl) Deprecated, for removal: This API element is subject to removal in a future version.ABeanContextChild, or any arbitrary objectassociated with aBeanContextChild, may obtaina reference to a currently registered service from itsnestingBeanContextServicesvia invocation of this method.BeanContextServicesSupport.BCSSProxyServiceProvider.getService(BeanContextServices bcs,Object requestor,Class<?> serviceClass,Object serviceSelector) BeanContextServicesSupport.getService(BeanContextChild child,Object requestor,Class<?> serviceClass,Object serviceSelector,BeanContextServiceRevokedListener bcsrl) Deprecated, for removal: This API element is subject to removal in a future version.obtain a service which may be delegatedbooleanBeanContextServices.hasService(Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.Reports whether or not a given service iscurrently available from this context.booleanBeanContextServicesSupport.hasService(Class<?> serviceClass) Deprecated, for removal: This API element is subject to removal in a future version.has a service, which may be delegatedbooleanBeanContextServiceRevokedEvent.isServiceClass(Class<?> service) Deprecated, for removal: This API element is subject to removal in a future version.Checks this event to determine whether or notthe service being revoked is of a particular class.voidBeanContextServices.revokeService(Class<?> serviceClass,BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow) Deprecated, for removal: This API element is subject to removal in a future version.BeanContextServiceProviders wishing to removea currently registered service from this contextmay do so via invocation of this method.voidBeanContextServicesSupport.revokeService(Class<?> serviceClass,BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow) Deprecated, for removal: This API element is subject to removal in a future version.remove a serviceConstructors injava.beans.beancontext with parameters of typeClassModifierConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Construct aBeanContextAvailableServiceEvent.BeanContextServiceRevokedEvent(BeanContextServices bcs,Class<?> sc, boolean invalidate) Deprecated, for removal: This API element is subject to removal in a future version.Construct aBeanContextServiceEvent.Uses ofClass injava.io
Modifier and TypeMethodDescriptionClass<?> ObjectStreamClass.forClass()Return the class in the local VM that this version is mapped to.Class<?> ObjectStreamField.getType()Get the type of the field.protectedClass<?> ObjectInputStream.resolveClass(ObjectStreamClass desc) Load the local class equivalent of the specified stream classdescription.protectedClass<?> ObjectInputStream.resolveProxyClass(String[] interfaces) Returns a proxy class that implements the interfaces named in a proxyclass descriptor; subclasses may implement this method to read customdata from the stream along with the descriptors for dynamic proxyclasses, allowing them to use an alternate loading mechanism for theinterfaces and the proxy class.Class<?> ObjectInputFilter.FilterInfo.serialClass()The class of an object being deserialized.Modifier and TypeMethodDescriptionprotected voidObjectOutputStream.annotateClass(Class<?> cl) Subclasses may implement this method to allow class data to be stored inthe stream.protected voidObjectOutputStream.annotateProxyClass(Class<?> cl) Subclasses may implement this method to store custom data in the streamalong with descriptors for dynamic proxy classes.staticObjectStreamClassFind the descriptor for a class that can be serialized.staticObjectStreamClassReturns the descriptor for any class, regardless of whether itimplementsSerializable.Modifier and TypeMethodDescriptionstaticObjectInputFilterObjectInputFilter.allowFilter(Predicate<Class<?>> predicate,ObjectInputFilter.Status otherStatus) Returns a filter that returnsStatus.ALLOWEDif the predicateon the class istrue.staticObjectInputFilterObjectInputFilter.rejectFilter(Predicate<Class<?>> predicate,ObjectInputFilter.Status otherStatus) Returns a filter that returnsStatus.REJECTEDif the predicateon the class istrue.ModifierConstructorDescriptionObjectStreamField(String name,Class<?> type) Create a Serializable field with the specified type.ObjectStreamField(String name,Class<?> type, boolean unshared) Creates an ObjectStreamField representing a serializable field with thegiven name and type.Uses ofClass injava.lang
Modifier and TypeClassDescriptionfinal classClass<T>Instances of the classClassrepresent classes andinterfaces in a running Java application.Modifier and TypeFieldDescriptionBoolean.TYPEThe Class object representing the primitive type boolean.Byte.TYPETheClassinstance representing the primitive typebyte.Character.TYPETheClassinstance representing the primitive typechar.Double.TYPETheClassinstance representing the primitive typedouble.Float.TYPETheClassinstance representing the primitive typefloat.Integer.TYPETheClassinstance representing the primitive typeint.Long.TYPETheClassinstance representing the primitive typelong.Short.TYPETheClassinstance representing the primitive typeshort.Void.TYPETheClassobject representing the pseudo-type corresponding tothe keywordvoid.Modifier and TypeMethodDescriptionClass<?> Class.arrayType()Returns aClassfor an array type whose component typeis described by thisClass.<U> Class<? extends U> Class.asSubclass(Class<U> clazz) Casts thisClassobject to represent a subclass of the classrepresented by the specified class object.Class<?> Class.componentType()Returns the component type of thisClass, if it describesan array type, ornullotherwise.protected finalClass<?> ClassLoader.defineClass(byte[] b, int off, int len) Deprecated.Replaced bydefineClass(String, byte[], int, int)protected finalClass<?> ClassLoader.defineClass(String name, byte[] b, int off, int len) Converts an array of bytes into an instance of classClass.protected finalClass<?> ClassLoader.defineClass(String name, byte[] b, int off, int len,ProtectionDomain protectionDomain) Converts an array of bytes into an instance of classClass,with a givenProtectionDomain.protected finalClass<?> ClassLoader.defineClass(String name,ByteBuffer b,ProtectionDomain protectionDomain) EnumConstantNotPresentException.enumType()Returns the type of the missing enum constant.protectedClass<?> Finds the class with the specifiedbinary name.protectedClass<?> Finds the class with the givenbinary namein a module defined to this class loader.protected finalClass<?> ClassLoader.findLoadedClass(String name) Returns the class with the givenbinary name if thisloader has been recorded by the Java virtual machine as an initiatingloader of a class with thatbinary name.protected finalClass<?> ClassLoader.findSystemClass(String name) Finds a class with the specifiedbinary name,loading it if necessary.staticClass<?> Returns theClasswith the givenbinary name in the given module.staticClass<?> Returns theClassobject associated with the class orinterface with the given string name.staticClass<?> Class.forName(String name, boolean initialize,ClassLoader loader) Returns theClassobject associated with the class orinterface with the given string name, using the given class loader.staticClass<?> Class.forPrimitiveName(String primitiveName) Returns theClassobject associated with theprimitive type of the given name.Class<?> StackWalker.getCallerClass()Gets theClassobject of the caller who invoked the methodthat invokedgetCallerClass.finalClass<?> Object.getClass()Returns the runtime class of thisObject.protectedClass<?>[]SecurityManager.getClassContext()Deprecated, for removal: This API element is subject to removal in a future version.Returns the current execution stack as an array of classes.Class<?>[]Class.getClasses()Returns an array containingClassobjects representing allthe public classes and interfaces that are members of the classrepresented by thisClassobject.Class<?> Class.getComponentType()Returns theClassrepresenting the component type of anarray.Class<?>[]Class.getDeclaredClasses()Returns an array ofClassobjects reflecting all theclasses and interfaces declared as members of the class represented bythisClassobject.Class<?> Class.getDeclaringClass()If the class or interface represented by thisClassobjectis a member of another class, returns theClassobjectrepresenting the class in which it was declared.Enum.getDeclaringClass()Returns the Class object corresponding to this enum constant'senum type.Class<?> StackWalker.StackFrame.getDeclaringClass()Returns the declaringClassfor the method represented bythis stack frame.Class<?> Class.getEnclosingClass()Returns the immediately enclosing class of the underlyingclass.Class<?>[]Class.getInterfaces()Returns the interfaces directly implemented by the class or interfacerepresented by thisClassobject.Class<?> Class.getNestHost()Returns the nest host of thenest to which the classor interface represented by thisClassobject belongs.Class<?>[]Class.getNestMembers()Returns an array containingClassobjects representing all theclasses and interfaces that are members of the nest to which the classor interface represented by thisClassobject belongs.Class<?>[]Class.getPermittedSubclasses()Returns an array containingClassobjects representing thedirect subinterfaces or subclasses permitted to extend orimplement this class or interface if it is sealed.Class.getSuperclass()Returns theClassrepresenting the direct superclass of theentity (class, interface, primitive type or void) represented bythisClass.Class<?> Loads the class with the specifiedbinary name.protectedClass<?> Loads the class with the specifiedbinary name.Modifier and TypeMethodDescriptionTypeVariable<Class<T>>[]Class.getTypeParameters()Returns an array ofTypeVariableobjects that represent thetype variables declared by the generic declaration represented by thisGenericDeclarationobject, in declaration order.Modifier and TypeMethodDescriptionIf the caller's module is this module then update this module to add aservice dependence on the given service type.<U> Class<? extends U> Class.asSubclass(Class<U> clazz) Casts thisClassobject to represent a subclass of the classrepresented by the specified class object.booleanIndicates if this module has a service dependence on the given servicetype.protected abstractTClassValue.computeValue(Class<?> type) Computes the value to associate to the givenClass.Returns the value associated to the givenClass.<A extendsAnnotation>
AClass.getAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TModule.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<A extendsAnnotation>
APackage.getAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<A extendsAnnotation>
A[]Class.getAnnotationsByType(Class<A> annotationClass) Returns annotations that areassociated with this element.<A extendsAnnotation>
A[]Package.getAnnotationsByType(Class<A> annotationClass) Returns annotations that areassociated with this element.Class.getConstructor(Class<?>... parameterTypes) Returns aConstructorobject that reflects the specifiedpublic constructor of the class represented by thisClassobject.<A extendsAnnotation>
AClass.getDeclaredAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation isdirectly present, else null.<A extendsAnnotation>
APackage.getDeclaredAnnotation(Class<A> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation isdirectly present, else null.<A extendsAnnotation>
A[]Class.getDeclaredAnnotationsByType(Class<A> annotationClass) Returns this element's annotation(s) for the specified type ifsuch annotations are eitherdirectly present orindirectly present.<A extendsAnnotation>
A[]Package.getDeclaredAnnotationsByType(Class<A> annotationClass) Class.getDeclaredConstructor(Class<?>... parameterTypes) Returns aConstructorobject that reflects the specifiedconstructor of the class represented by thisClassobject.Class.getDeclaredMethod(String name,Class<?>... parameterTypes) Returns aMethodobject that reflects the specifieddeclared method of the class or interface represented by thisClassobject.Returns aMethodobject that reflects the specified publicmember method of the class or interface represented by thisClassobject.booleanClass.isAnnotationPresent(Class<? extendsAnnotation> annotationClass) Returns true if an annotation for the specified typeispresent on this element, else false.booleanPackage.isAnnotationPresent(Class<? extendsAnnotation> annotationClass) Returns true if an annotation for the specified typeispresent on this element, else false.booleanClass.isAssignableFrom(Class<?> cls) Determines if the class or interface represented by thisClassobject is either the same as, or is a superclass orsuperinterface of, the class or interface represented by the specifiedClassparameter.booleanClass.isNestmateOf(Class<?> c) Determines if the givenClassis a nestmate of theclass or interface represented by thisClassobject.voidRemoves the associated value for the givenClassand invalidatesall out-of-date computations.protected final voidClassLoader.resolveClass(Class<?> c) Links the specified class.protected final voidClassLoader.setSigners(Class<?> c,Object[] signers) Sets the signers of a class.static <T extendsEnum<T>>
TReturns the enum constant of the specified enum class with thespecified name.ModifierConstructorDescriptionEnumConstantNotPresentException(Class<? extendsEnum> enumType,String constantName) Constructs anEnumConstantNotPresentExceptionfor thespecified constant.Uses ofClass injava.lang.annotation
Methods injava.lang.annotation that returnClassModifier and TypeMethodDescriptionClass<? extendsAnnotation> Annotation.annotationType()Returns the annotation interface of this annotation.Class<? extendsAnnotation> IncompleteAnnotationException.annotationType()Returns the Class object for the annotation interface with themissing element.Constructors injava.lang.annotation with parameters of typeClassModifierConstructorDescriptionIncompleteAnnotationException(Class<? extendsAnnotation> annotationType,String elementName) Constructs an IncompleteAnnotationException to indicate thatthe named element was missing from the specified annotation interface.Uses ofClass injava.lang.classfile
Methods injava.lang.classfile with parameters of typeClassModifier and TypeMethodDescription<T extendsPoolEntry>
TReturns the constant pool entry of a given type whose index is givenat the specified offset within theclassfile.<T extendsPoolEntry>
TClassReader.readEntryOrNull(int offset,Class<T> cls) Returns the constant pool entry of a given type whose index is givenat the specified offset within theclassfile, ornullifthe index at the specified offset is zero.Uses ofClass injava.lang.classfile.constantpool
Methods injava.lang.classfile.constantpool with parameters of typeClassModifier and TypeMethodDescription<T extendsPoolEntry>
TConstantPool.entryByIndex(int index,Class<T> cls) Returns the entry of a given type at the specified index.Uses ofClass injava.lang.constant
Methods injava.lang.constant that returnClassModifier and TypeMethodDescriptionClass<?> ClassDesc.resolveConstantDesc(MethodHandles.Lookup lookup) Uses ofClass injava.lang.foreign
Methods injava.lang.foreign that returnClassUses ofClass injava.lang.instrument
Methods injava.lang.instrument that returnClassModifier and TypeMethodDescriptionClass[]Instrumentation.getAllLoadedClasses()Returns an array of all classes currently loaded by the JVM.Class<?> ClassDefinition.getDefinitionClass()Returns the class.Class[]Instrumentation.getInitiatedClasses(ClassLoader loader) Returns an array of all classes whichloadercan find by nameviaClassLoader::loadClass,Class::forNameand bytecode linkage.Methods injava.lang.instrument with parameters of typeClassModifier and TypeMethodDescriptionbooleanInstrumentation.isModifiableClass(Class<?> theClass) Tests whether a class is modifiable byretransformationorredefinition.voidInstrumentation.retransformClasses(Class<?>... classes) Retransform the supplied set of classes.default byte[]ClassFileTransformer.transform(ClassLoader loader,String className,Class<?> classBeingRedefined,ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms the given class file and returns a new replacement class file.default byte[]ClassFileTransformer.transform(Module module,ClassLoader loader,String className,Class<?> classBeingRedefined,ProtectionDomain protectionDomain, byte[] classfileBuffer) Transforms the given class file and returns a new replacement class file.Constructors injava.lang.instrument with parameters of typeClassModifierConstructorDescriptionClassDefinition(Class<?> theClass, byte[] theClassFile) Creates a newClassDefinitionbinding using the supplied class and class file bytes.Uses ofClass injava.lang.invoke
Classes injava.lang.invoke that implement interfaces with type arguments of typeClassModifier and TypeClassDescriptionfinal classA method type represents the arguments and return type accepted andreturned by a method handle, or the arguments and return type passedand expected by a method handle caller.Methods injava.lang.invoke that returnClassModifier and TypeMethodDescription<T> Class<T> MethodHandles.Lookup.accessClass(Class<T> targetClass) Determines if a class can be accessed from the lookup context defined bythisLookupobject.Class<?> MethodHandles.Lookup.defineClass(byte[] bytes) Creates and links a class or interface frombyteswith the same class loader and in the same runtime package andprotection domain as this lookup'slookup class as if callingClassLoader::defineClass.<T> Class<T> MethodHandles.Lookup.ensureInitialized(Class<T> targetClass) Ensures thattargetClasshas been initialized.Class<?> Looks up a class by name from the lookup context defined by thisLookupobject,as if resolved by anldcinstruction.Class<?> MethodHandleInfo.getDeclaringClass()Returns the class in which the cracked method handle's underlying member was defined.Class<?> MethodType.lastParameterType()Returns the last parameter type of this method type.Class<?> MethodHandles.Lookup.lookupClass()Tells which class is performing the lookup.Class<?>[]MethodType.parameterArray()Presents the parameter types as an array (a convenience method).Class<?> MethodType.parameterType(int num) Returns the parameter type at the specified index, within this method type.Class<?> MethodHandles.Lookup.previousLookupClass()Reports a lookup class in another module that this lookup object was previously teleported from, ornull.staticClass<?> ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup,String name,Class<?> type) Returns aClassmirror for the primitive type whose typedescriptor is specified byname.Class<?> MethodType.returnType()Returns the return type of this method type.Class<?> VarHandle.varType()Returns the variable type of variables referenced by this VarHandle.staticClass<?> MethodHandleProxies.wrapperInstanceType(Object x) Recovers the unique single-method interface type for which this wrapper instance was created.Methods injava.lang.invoke that return types with arguments of typeClassModifier and TypeMethodDescriptionVarHandle.coordinateTypes()Returns the coordinate types for this VarHandle.MethodType.parameterList()Presents the parameter types as a list (a convenience method).Methods injava.lang.invoke with parameters of typeClassModifier and TypeMethodDescription<T> Class<T> MethodHandles.Lookup.accessClass(Class<T> targetClass) Determines if a class can be accessed from the lookup context defined bythisLookupobject.MethodType.appendParameterTypes(Class<?>... ptypesToInsert) Finds or creates a method type with additional parameter types.staticMethodHandleMethodHandles.arrayConstructor(Class<?> arrayClass) Produces a method handle constructing arrays of a desired type,as if by theanewarraybytecode.staticMethodHandleMethodHandles.arrayElementGetter(Class<?> arrayClass) Produces a method handle giving read access to elements of an array,as if by theaaloadbytecode.staticMethodHandleMethodHandles.arrayElementSetter(Class<?> arrayClass) Produces a method handle giving write access to elements of an array,as if by theastorebytecode.staticVarHandleMethodHandles.arrayElementVarHandle(Class<?> arrayClass) Produces a VarHandle giving access to elements of an array of typearrayClass.staticMethodHandleMethodHandles.arrayLength(Class<?> arrayClass) Produces a method handle returning the length of an array,as if by thearraylengthbytecode.staticVarHandleConstantBootstraps.arrayVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> arrayClass) Finds aVarHandlefor an array type.MethodHandle.asCollector(int collectArgPos,Class<?> arrayType, int arrayLength) Makes anarray-collecting method handle, which accepts a given number of positional arguments startingat a given position, and collects them into an array argument.MethodHandle.asCollector(Class<?> arrayType, int arrayLength) Makes anarray-collecting method handle, which accepts a given number of trailing positional arguments and collects them into an array argument.static <T> TMethodHandleProxies.asInterfaceInstance(Class<T> intfc,MethodHandle target) Produces an instance of the given single-method interface which redirectsits calls to the given method handle.MethodHandle.asSpreader(int spreadArgPos,Class<?> arrayType, int arrayLength) Makes anarray-spreading method handle, which accepts an array argument at a given position and spreadsits elements as positional arguments in place of the array.MethodHandle.asSpreader(Class<?> arrayType, int arrayLength) Makes anarray-spreading method handle, which accepts a trailing array argument and spreads its elements as positional arguments.MethodHandle.asVarargsCollector(Class<?> arrayType) Makes avariable arity adapter which is able to accept any number of trailing positional arguments and collect them into an array argument.staticVarHandleMethodHandles.byteArrayViewVarHandle(Class<?> viewArrayClass,ByteOrder byteOrder) Produces a VarHandle giving access to elements of abyte[]arrayviewed as if it were a different primitive array type, such asint[]orlong[].staticVarHandleMethodHandles.byteBufferViewVarHandle(Class<?> viewArrayClass,ByteOrder byteOrder) Produces a VarHandle giving access to elements of aByteBufferviewed as if it were an array of elements of a different primitivecomponent type to that ofbyte, such asint[]orlong[].staticMethodHandleMethodHandles.catchException(MethodHandle target,Class<? extendsThrowable> exType,MethodHandle handler) Makes a method handle which adapts a target method handle,by running it inside an exception handler.MethodType.changeParameterType(int num,Class<?> nptype) Finds or creates a method type with a single different parameter type.MethodType.changeReturnType(Class<?> nrtype) Finds or creates a method type with a different return type.static <T> TMethodHandles.classData(MethodHandles.Lookup caller,String name,Class<T> type) Returns theclass data associated with the lookup classof the givencallerlookup object, ornull.static <T> TMethodHandles.classDataAt(MethodHandles.Lookup caller,String name,Class<T> type, int index) Returns the element at the specified index in theclass data,if the class data associated with the lookup classof the givencallerlookup object is aList.staticMethodHandleProduces a method handle of the requested return type which returns the givenconstant value every time it is invoked.staticMethodHandleMethodHandles.dropArguments(MethodHandle target, int pos,Class<?>... valueTypes) Produces a method handle which will discard some dummy arguments before calling some other specifiedtarget method handle.staticVarHandleMethodHandles.dropCoordinates(VarHandle target, int pos,Class<?>... valueTypes) Returns a var handle which will discard some dummy coordinates before delegating to thetarget var handle.<T> Class<T> MethodHandles.Lookup.ensureInitialized(Class<T> targetClass) Ensures thattargetClasshas been initialized.static <E extendsEnum<E>>
EConstantBootstraps.enumConstant(MethodHandles.Lookup lookup,String name,Class<E> type) Returns anenumconstant of the type specified bytypewith the name specified byname.staticObjectConstantBootstraps.explicitCast(MethodHandles.Lookup lookup,String name,Class<?> dstType,Object value) Applies a conversion from a source type to a destination type.staticVarHandleConstantBootstraps.fieldVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> declaringClass,Class<?> fieldType) Finds aVarHandlefor an instance field.MethodHandles.Lookup.findConstructor(Class<?> refc,MethodType type) Produces a method handle which creates an object and initializes it, using the constructor of the specified type.MethodHandles.Lookup.findGetter(Class<?> refc,String name,Class<?> type) Produces a method handle giving read access to a non-static field.MethodHandles.Lookup.findSetter(Class<?> refc,String name,Class<?> type) Produces a method handle giving write access to a non-static field.MethodHandles.Lookup.findSpecial(Class<?> refc,String name,MethodType type,Class<?> specialCaller) Produces an early-bound method handle for a virtual method.MethodHandles.Lookup.findStatic(Class<?> refc,String name,MethodType type) Produces a method handle for a static method.MethodHandles.Lookup.findStaticGetter(Class<?> refc,String name,Class<?> type) Produces a method handle giving read access to a static field.MethodHandles.Lookup.findStaticSetter(Class<?> refc,String name,Class<?> type) Produces a method handle giving write access to a static field.MethodHandles.Lookup.findStaticVarHandle(Class<?> decl,String name,Class<?> type) Produces a VarHandle giving access to a static fieldnameoftypetypedeclared in a class of typedecl.MethodHandles.Lookup.findVarHandle(Class<?> recv,String name,Class<?> type) Produces a VarHandle giving access to a non-static fieldnameof typetypedeclared in a class of typerecv.MethodHandles.Lookup.findVirtual(Class<?> refc,String name,MethodType type) Produces a method handle for a virtual method.staticObjectConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,String name,Class<?> type) Returns the value of a static final field declared in the class whichis the same as the field's type (or, for primitive-valued fields,declared in the wrapper class.)staticObjectConstantBootstraps.getStaticFinal(MethodHandles.Lookup lookup,String name,Class<?> type,Class<?> declaringClass) Returns the value of a static final field.staticMethodHandleProduces a method handle which returns its sole argument when invoked.Creates a lookup on the specified new lookup class.MethodType.insertParameterTypes(int num,Class<?>... ptypesToInsert) Finds or creates a method type with additional parameter types.staticObjectConstantBootstraps.invoke(MethodHandles.Lookup lookup,String name,Class<?> type,MethodHandle handle,Object... args) Returns the result of invoking a method handle with the providedarguments.staticMethodTypeMethodType.methodType(Class<?> rtype) Finds or creates a method type with the given components.staticMethodTypeMethodType.methodType(Class<?> rtype,Class<?> ptype0) Finds or creates a method type with the given components.staticMethodTypeMethodType.methodType(Class<?> rtype,Class<?>[] ptypes) Finds or creates an instance of the given method type.staticMethodTypeMethodType.methodType(Class<?> rtype,Class<?> ptype0,Class<?>... ptypes) Finds or creates a method type with the given components.staticMethodTypeMethodType.methodType(Class<?> rtype,MethodType ptypes) Finds or creates a method type with the given components.staticMethodTypeMethodType.methodType(Class<?> rtype,List<Class<?>> ptypes) Finds or creates a method type with the given components.staticObjectConstantBootstraps.nullConstant(MethodHandles.Lookup lookup,String name,Class<?> type) Returns anullobject reference for the reference type specifiedbytype.staticClass<?> ConstantBootstraps.primitiveClass(MethodHandles.Lookup lookup,String name,Class<?> type) Returns aClassmirror for the primitive type whose typedescriptor is specified byname.staticMethodHandles.LookupMethodHandles.privateLookupIn(Class<?> targetClass,MethodHandles.Lookup caller) Returns alookupobject on a target class to emulate all supportedbytecode behaviors, includingprivate access.<T extendsMember>
TMethodHandleInfo.reflectAs(Class<T> expected,MethodHandles.Lookup lookup) Reflects the underlying member as a method, constructor, or field object.static <T extendsMember>
TMethodHandles.reflectAs(Class<T> expected,MethodHandle target) Performs an unchecked "crack" of adirect method handle.staticVarHandleConstantBootstraps.staticFieldVarHandle(MethodHandles.Lookup lookup,String name,Class<VarHandle> type,Class<?> declaringClass,Class<?> fieldType) Finds aVarHandlefor a static field.staticMethodHandleMethodHandles.throwException(Class<?> returnType,Class<? extendsThrowable> exType) Produces a method handle which will throw exceptions of the givenexType.staticStringMethodHandleInfo.toString(int kind,Class<?> defc,String name,MethodType type) Returns a string representation for aMethodHandleInfo,given the four parts of its symbolic reference.MethodHandles.Lookup.unreflectSpecial(Method m,Class<?> specialCaller) Produces a method handle for a reflected method.staticMethodHandleProduces a constant method handle of the requested return type whichreturns the default value for that type every time it is invoked.Method parameters injava.lang.invoke with type arguments of typeClassModifier and TypeMethodDescriptionMethodType.appendParameterTypes(List<Class<?>> ptypesToInsert) Finds or creates a method type with additional parameter types.staticMethodHandleMethodHandles.dropArguments(MethodHandle target, int pos,List<Class<?>> valueTypes) Produces a method handle which will discard some dummy arguments before calling some other specifiedtarget method handle.staticMethodHandleMethodHandles.dropArgumentsToMatch(MethodHandle target, int skip,List<Class<?>> newTypes, int pos) Adapts a target method handle to match the given parameter type list.MethodType.insertParameterTypes(int num,List<Class<?>> ptypesToInsert) Finds or creates a method type with additional parameter types.staticMethodTypeMethodType.methodType(Class<?> rtype,List<Class<?>> ptypes) Finds or creates a method type with the given components.staticVarHandleMethodHandles.permuteCoordinates(VarHandle target,List<Class<?>> newCoordinates, int... reorder) Provides a var handle which adapts the coordinate values of the target var handle, by re-arranging themso that the new coordinates match the provided ones.Constructors injava.lang.invoke with parameters of typeClassModifierConstructorDescriptionSerializedLambda(Class<?> capturingClass,String functionalInterfaceClass,String functionalInterfaceMethodName,String functionalInterfaceMethodSignature, int implMethodKind,String implClass,String implMethodName,String implMethodSignature,String instantiatedMethodType,Object[] capturedArgs) Create aSerializedLambdafrom the low-level information presentat the lambda factory site.Uses ofClass injava.lang.management
Methods injava.lang.management that return types with arguments of typeClassModifier and TypeMethodDescriptionstaticSet<Class<? extendsPlatformManagedObject>> ManagementFactory.getPlatformManagementInterfaces()Returns the set ofClassobjects, subinterface ofPlatformManagedObject, representingall management interfaces formonitoring and managing the Java platform.Methods injava.lang.management with parameters of typeClassModifier and TypeMethodDescriptionstatic <T extendsPlatformManagedObject>
TManagementFactory.getPlatformMXBean(Class<T> mxbeanInterface) Returns the platform MXBean implementingthe givenmxbeanInterfacewhich is specifiedto have one single instance in the Java virtual machine.static <T extendsPlatformManagedObject>
TManagementFactory.getPlatformMXBean(MBeanServerConnection connection,Class<T> mxbeanInterface) Returns the platform MXBean proxy formxbeanInterfacewhich is specified to have one singleinstance in a Java virtual machine and the proxy willforward the method calls through the givenMBeanServerConnection.static <T extendsPlatformManagedObject>
List<T> ManagementFactory.getPlatformMXBeans(Class<T> mxbeanInterface) Returns the list of platform MXBeans implementingthe givenmxbeanInterfacein the Javavirtual machine.static <T extendsPlatformManagedObject>
List<T> ManagementFactory.getPlatformMXBeans(MBeanServerConnection connection,Class<T> mxbeanInterface) Returns the list of the platform MXBean proxies forforwarding the method calls of themxbeanInterfacethrough the givenMBeanServerConnection.static <T> TManagementFactory.newPlatformMXBeanProxy(MBeanServerConnection connection,String mxbeanName,Class<T> mxbeanInterface) Returns a proxy for a platform MXBean interface of a givenMXBean name that forwards its method calls through the givenMBeanServerConnection.Uses ofClass injava.lang.reflect
Methods injava.lang.reflect that returnClassModifier and TypeMethodDescriptionConstructor.getDeclaringClass()Returns theClassobject representing the class thatdeclares the constructor represented by this object.abstractClass<?> Executable.getDeclaringClass()Returns theClassobject representing the class or interfacethat declares the executable represented by this object.Class<?> Field.getDeclaringClass()Returns theClassobject representing the class or interfacethat declares the field represented by thisFieldobject.Class<?> Member.getDeclaringClass()Returns the Class object representing the class or interfacethat declares the member or constructor represented by this Member.Class<?> Method.getDeclaringClass()Returns theClassobject representing the class or interfacethat declares the method represented by this object.Class<?> RecordComponent.getDeclaringRecord()Returns the record class which declares this record component.Class<?>[]Constructor.getExceptionTypes()Returns an array ofClassobjects that represent thetypes of exceptions declared to be thrown by the underlyingexecutable represented by this object.abstractClass<?>[]Executable.getExceptionTypes()Returns an array ofClassobjects that represent thetypes of exceptions declared to be thrown by the underlyingexecutable represented by this object.Class<?>[]Method.getExceptionTypes()Returns an array ofClassobjects that represent thetypes of exceptions declared to be thrown by the underlyingexecutable represented by this object.Class<?>[]Constructor.getParameterTypes()Returns an array ofClassobjects that represent the formalparameter types, in declaration order, of the executablerepresented by this object.abstractClass<?>[]Executable.getParameterTypes()Returns an array ofClassobjects that represent the formalparameter types, in declaration order, of the executablerepresented by this object.Class<?>[]Method.getParameterTypes()Returns an array ofClassobjects that represent the formalparameter types, in declaration order, of the executablerepresented by this object.staticClass<?> Proxy.getProxyClass(ClassLoader loader,Class<?>... interfaces) Deprecated.Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.Class<?> Method.getReturnType()Returns aClassobject that represents the formal return typeof the method represented by thisMethodobject.Class<?> Field.getType()Returns aClassobject that identifies thedeclared type for the field represented by thisFieldobject.Class<?> Parameter.getType()Returns aClassobject that identifies thedeclared type for the parameter represented by thisParameterobject.Class<?> RecordComponent.getType()Returns aClassthat identifies the declared type for thisrecord component.Methods injava.lang.reflect with parameters of typeClassModifier and TypeMethodDescription<T extendsAnnotation>
TAccessibleObject.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TAnnotatedElement.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TAnnotatedType.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TConstructor.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TExecutable.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TField.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TMethod.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TParameter.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
TRecordComponent.getAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation ispresent, else null.<T extendsAnnotation>
T[]AccessibleObject.getAnnotationsByType(Class<T> annotationClass) Returns annotations that areassociated with this element.default <T extendsAnnotation>
T[]AnnotatedElement.getAnnotationsByType(Class<T> annotationClass) Returns annotations that areassociated with this element.<T extendsAnnotation>
T[]Executable.getAnnotationsByType(Class<T> annotationClass) Returns annotations that areassociated with this element.<T extendsAnnotation>
T[]Field.getAnnotationsByType(Class<T> annotationClass) Returns annotations that areassociated with this element.<T extendsAnnotation>
T[]Parameter.getAnnotationsByType(Class<T> annotationClass) Returns annotations that areassociated with this element.<T extendsAnnotation>
TAccessibleObject.getDeclaredAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation isdirectly present, else null.default <T extendsAnnotation>
TAnnotatedElement.getDeclaredAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation isdirectly present, else null.<T extendsAnnotation>
TParameter.getDeclaredAnnotation(Class<T> annotationClass) Returns this element's annotation for the specified type ifsuch an annotation isdirectly present, else null.<T extendsAnnotation>
T[]AccessibleObject.getDeclaredAnnotationsByType(Class<T> annotationClass) Returns this element's annotation(s) for the specified type ifsuch annotations are eitherdirectly present orindirectly present.default <T extendsAnnotation>
T[]AnnotatedElement.getDeclaredAnnotationsByType(Class<T> annotationClass) Returns this element's annotation(s) for the specified type ifsuch annotations are eitherdirectly present orindirectly present.<T extendsAnnotation>
T[]Parameter.getDeclaredAnnotationsByType(Class<T> annotationClass) Returns this element's annotation(s) for the specified type ifsuch annotations are eitherdirectly present orindirectly present.staticClass<?> Proxy.getProxyClass(ClassLoader loader,Class<?>... interfaces) Deprecated.Proxy classes generated in a named module are encapsulated and not accessible to code outside its module.booleanAccessibleObject.isAnnotationPresent(Class<? extendsAnnotation> annotationClass) Returns true if an annotation for the specified typeispresent on this element, else false.default booleanAnnotatedElement.isAnnotationPresent(Class<? extendsAnnotation> annotationClass) Returns true if an annotation for the specified typeispresent on this element, else false.static booleanProxy.isProxyClass(Class<?> cl) Returns true if the given class is a proxy class.staticObjectArray.newInstance(Class<?> componentType, int length) Creates a new array with the specified component type andlength.staticObjectArray.newInstance(Class<?> componentType, int... dimensions) Creates a new arraywith the specified component type and dimensions.staticObjectProxy.newProxyInstance(ClassLoader loader,Class<?>[] interfaces,InvocationHandler h) Returns a proxy instance for the specified interfacesthat dispatches method invocations to the specified invocationhandler.Uses ofClass injava.lang.runtime
Methods injava.lang.runtime with parameters of typeClassModifier and TypeMethodDescriptionstaticObjectObjectMethods.bootstrap(MethodHandles.Lookup lookup,String methodName,TypeDescriptor type,Class<?> recordClass,String names,MethodHandle... getters) Bootstrap method to generate theObject.equals(Object),Object.hashCode(), andObject.toString()methods, basedon a description of the component names and accessor methods, for eitherinvokedynamiccall sites or dynamic constant pool entries.Uses ofClass injava.net
Modifier and TypeMethodDescriptionprotectedClass<?> Finds and loads the class with the specified name from the URL searchpath.SocketOption.type()Returns the type of the socket option value.Modifier and TypeMethodDescriptionContentHandler.getContent(URLConnection urlc,Class[] classes) Given a URL connect stream positioned at the beginning of therepresentation of an object, this method reads that stream andcreates an object that matches one of the types specified.finalObjectURL.getContent(Class<?>[] classes) Gets the contents of this URL.URLConnection.getContent(Class<?>[] classes) Retrieves the contents of this URL connection.Uses ofClass injava.nio.file
Methods injava.nio.file that returnClassMethods injava.nio.file with parameters of typeClassModifier and TypeMethodDescriptionstatic <V extendsFileAttributeView>
VFiles.getFileAttributeView(Path path,Class<V> type,LinkOption... options) Returns a file attribute view of a given type.<V extendsFileAttributeView>
VSecureDirectoryStream.getFileAttributeView(Class<V> type) Returns a new file attribute view to access the file attributes of thisdirectory.<V extendsFileAttributeView>
VSecureDirectoryStream.getFileAttributeView(T path,Class<V> type,LinkOption... options) Returns a new file attribute view to access the file attributes of a filein this directory.abstract <V extendsFileStoreAttributeView>
VFileStore.getFileStoreAttributeView(Class<V> type) Returns aFileStoreAttributeViewof the given type.static <A extendsBasicFileAttributes>
AFiles.readAttributes(Path path,Class<A> type,LinkOption... options) Reads a file's attributes as a bulk operation.abstract booleanFileStore.supportsFileAttributeView(Class<? extendsFileAttributeView> type) Tells whether or not this file store supports the file attributesidentified by the given file attribute view.Uses ofClass injava.nio.file.spi
Methods injava.nio.file.spi with parameters of typeClassModifier and TypeMethodDescriptionabstract <V extendsFileAttributeView>
VFileSystemProvider.getFileAttributeView(Path path,Class<V> type,LinkOption... options) Returns a file attribute view of a given type.abstract <A extendsBasicFileAttributes>
AFileSystemProvider.readAttributes(Path path,Class<A> type,LinkOption... options) Reads a file's attributes as a bulk operation.<A extendsBasicFileAttributes>
AFileSystemProvider.readAttributesIfExists(Path path,Class<A> type,LinkOption... options) Reads a file's attributes as a bulk operation if it exists.Uses ofClass injava.rmi.server
Methods injava.rmi.server that returnClassModifier and TypeMethodDescriptionClass<?> Deprecated.no replacementClass<?> Deprecated.no replacementstaticClass<?> Deprecated.replaced byloadClass(String,String)methodstaticClass<?> Loads a class from a codebase URL path.staticClass<?> RMIClassLoader.loadClass(String codebase,String name,ClassLoader defaultLoader) Loads a class from a codebase URL path, optionally using thesupplied loader.staticClass<?> Loads a class from a codebase URL.abstractClass<?> RMIClassLoaderSpi.loadClass(String codebase,String name,ClassLoader defaultLoader) Provides the implementation forRMIClassLoader.loadClass(URL,String),RMIClassLoader.loadClass(String,String), andRMIClassLoader.loadClass(String,String,ClassLoader).staticClass<?> RMIClassLoader.loadProxyClass(String codebase,String[] interfaces,ClassLoader defaultLoader) Loads a dynamic proxy class (seeProxy)that implements a set of interfaces with the given namesfrom a codebase URL path.abstractClass<?> RMIClassLoaderSpi.loadProxyClass(String codebase,String[] interfaces,ClassLoader defaultLoader) Provides the implementation forRMIClassLoader.loadProxyClass(String,String[],ClassLoader).Methods injava.rmi.server with parameters of typeClassModifier and TypeMethodDescriptionstaticStringRMIClassLoader.getClassAnnotation(Class<?> cl) Returns the annotation string (representing a location forthe class definition) that RMI will use to annotate the classdescriptor when marshalling objects of the given class.abstractStringRMIClassLoaderSpi.getClassAnnotation(Class<?> cl) Provides the implementation forRMIClassLoader.getClassAnnotation(Class).Uses ofClass injava.security
Methods injava.security that returnClassModifier and TypeMethodDescriptionprotected finalClass<?> SecureClassLoader.defineClass(String name, byte[] b, int off, int len,CodeSource cs) Converts an array of bytes into an instance of classClass,with an optional CodeSource.protected finalClass<?> SecureClassLoader.defineClass(String name,ByteBuffer b,CodeSource cs) Converts aByteBufferinto an instance of classClass, with an optional CodeSource.Methods injava.security with parameters of typeClassModifier and TypeMethodDescription<S extendsDEREncodablePREVIEW>
SPEMDecoder.decode(InputStream is,Class<S> tClass) Decodes and returns the specified class for the givenInputStream.<S extendsDEREncodablePREVIEW>
SDecodes and returns aDEREncodableof the specified class fromthe given PEM string.booleanKeyStoreSpi.engineEntryInstanceOf(String alias,Class<? extendsKeyStore.Entry> entryClass) Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.protected abstract <T extendsKeySpec>
TKeyFactorySpi.engineGetKeySpec(Key key,Class<T> keySpec) Returns a specification (key material) of the given keyobject.protected abstract <T extendsAlgorithmParameterSpec>
TAlgorithmParametersSpi.engineGetParameterSpec(Class<T> paramSpec) Returns a (transparent) specification of this parametersobject.final booleanKeyStore.entryInstanceOf(String alias,Class<? extendsKeyStore.Entry> entryClass) Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.final <T extendsKeySpec>
TKeyFactory.getKeySpec(Key key,Class<T> keySpec) Returns a specification (key material) of the given key object.final <T extendsAlgorithmParameterSpec>
TAlgorithmParameters.getParameterSpec(Class<T> paramSpec) Returns a (transparent) specification of this parameter object.Uses ofClass injava.sql
Modifier and TypeMethodDescriptionConnection.getTypeMap()Retrieves theMapobject associated with thisConnectionobject.Modifier and TypeMethodDescription<T> TReturns an object representing the value of OUT parameterparameterIndexand will convert from the SQL type of the parameter to the requested Java data type, if the conversion is supported.<T> TReturns an object representing the value of OUT parameterparameterNameand will convert from the SQL type of the parameter to the requested Java data type, if the conversion is supported.<T> TRetrieves the value of the designated column in the current row of thisResultSetobject and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.<T> TRetrieves the value of the designated column in the current row of thisResultSetobject and will convert from the SQL type of the column to the requested Java data type, if the conversion is supported.<T extendsSource>
TReturns a Source for reading the XML value designated by this SQLXML instance.booleanWrapper.isWrapperFor(Class<?> iface) Returns true if this either implements the interface argument or is directly or indirectly a wrapperfor an object that does.default <T> TSQLInput.readObject(Class<T> type) Reads the next attribute in the stream and returns it as anObjectin the Java programming language.<T extendsResult>
TReturns a Result for setting the XML value designated by this SQLXML instance.<T> TReturns an object that implements the given interface to allow access tonon-standard methods, or standard methods not exposed by the proxy.Modifier and TypeMethodDescriptionRetrieves a slice of the SQLARRAYvaluedesignated by thisArrayobject, beginning with the specifiedindexand containing up tocountsuccessive elements of the SQL array.Retrieves the contents of the SQLARRAYvalue designated by thisArrayobject.Object[]Struct.getAttributes(Map<String, Class<?>> map) Produces the ordered values of the attributes of the SQLstructured type that thisStructobject represents.Returns an object representing the value of OUT parameterparameterIndexand usesmapfor the custommapping of the parameter value.Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custommapping of the parameter value.Retrieves the referenced object and maps it to a Java typeusing the given type map.Retrieves the value of the designated column in the current rowof thisResultSetobject as anObjectin the Java programming language.Retrieves the value of the designated column in the current rowof thisResultSetobject as anObjectin the Java programming language.Array.getResultSet(long index, int count,Map<String, Class<?>> map) Retrieves a result set holding the elements of the subarray thatstarts at indexindexand contains up tocountsuccessive elements.Array.getResultSet(Map<String, Class<?>> map) Retrieves a result set that contains the elements of the SQLARRAYvalue designated by thisArrayobject.voidConnection.setTypeMap(Map<String, Class<?>> map) Installs the givenTypeMapobject as the type map forthisConnectionobject.Uses ofClass injava.util
Modifier and TypeMethodDescriptionClass<?> IllegalFormatConversionException.getArgumentClass()Returns the class of the mismatched argument.ServiceLoader.Provider.type()Returns the provider type.Modifier and TypeMethodDescriptionCreates an enum set containing all of the elements in the specifiedelement type.static <E> Collection<E> Collections.checkedCollection(Collection<E> c,Class<E> type) Returns a dynamically typesafe view of the specified collection.static <E> List<E> Collections.checkedList(List<E> list,Class<E> type) Returns a dynamically typesafe view of the specified list.static <K,V> Map <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 <E> Queue<E> Collections.checkedQueue(Queue<E> queue,Class<E> type) Returns a dynamically typesafe view of the specified queue.static <E> Set<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 <T,U> T[] Copies the specified array, truncating or padding with nulls (if necessary)so the copy has the specified length.static <T,U> T[] 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 <S> ServiceLoader<S> Creates a new service loader for the given service type, using thecurrent thread'scontext 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 serviceproviders 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 theplatform class loader.Creates an empty enum set with the specified element type.ModifierConstructorDescriptionCreates an empty enum map with the specified key type.IllegalFormatConversionException(char c,Class<?> arg) Constructs an instance of this class with the mismatched conversion andthe corresponding argument class.Uses ofClass injava.util.concurrent.atomic
Methods injava.util.concurrent.atomic with parameters of typeClassModifier and TypeMethodDescriptionstatic <U> AtomicIntegerFieldUpdater<U> AtomicIntegerFieldUpdater.newUpdater(Class<U> tclass,String fieldName) Creates and returns an updater for objects with the given field.static <U> AtomicLongFieldUpdater<U> AtomicLongFieldUpdater.newUpdater(Class<U> tclass,String fieldName) Creates and returns an updater for objects with the given field.static <U,W> AtomicReferenceFieldUpdater <U, W> AtomicReferenceFieldUpdater.newUpdater(Class<U> tclass,Class<W> vclass,String fieldName) Creates and returns an updater for objects with the given field.Uses ofClass injava.util.prefs
Methods injava.util.prefs with parameters of typeClassModifier and TypeMethodDescriptionstaticPreferencesPreferences.systemNodeForPackage(Class<?> c) Returns the preference node from the system preference tree that isassociated (by convention) with the specified class's package.staticPreferencesPreferences.userNodeForPackage(Class<?> c) Returns the preference node from the calling user's preference treethat is associated (by convention) with the specified class's package.Uses ofClass injavax.annotation.processing
Methods injavax.annotation.processing with parameters of typeClassModifier and TypeMethodDescriptionRoundEnvironment.getElementsAnnotatedWith(Class<? extendsAnnotation> a) Returns the elements annotated with the given annotation interface.Method parameters injavax.annotation.processing with type arguments of typeClassModifier and TypeMethodDescriptionRoundEnvironment.getElementsAnnotatedWithAny(Set<Class<? extendsAnnotation>> annotations) Returns the elements annotated with one or more of the givenannotation interfaces.Uses ofClass injavax.crypto
Methods injavax.crypto with parameters of typeClassModifier and TypeMethodDescriptionprotected abstractKeySpecSecretKeyFactorySpi.engineGetKeySpec(SecretKey key,Class<?> keySpec) Returns a specification (key material) of the given keyobject in the requested format.finalKeySpecSecretKeyFactory.getKeySpec(SecretKey key,Class<?> keySpec) Returns a specification (key material) of the given key objectin the requested format.Uses ofClass injavax.imageio.metadata
Methods injavax.imageio.metadata that returnClassModifier and TypeMethodDescriptionClass<?> IIOMetadataFormat.getObjectClass(String elementName) Returns theClasstype of theObjectreference stored within the element.Class<?> IIOMetadataFormatImpl.getObjectClass(String elementName) Methods injavax.imageio.metadata with parameters of typeClassModifier and TypeMethodDescriptionprotected voidIIOMetadataFormatImpl.addObjectValue(String elementName,Class<?> classType, int arrayMinLength, int arrayMaxLength) Allows anObjectreference of a given class typeto be stored in nodes implementing the named element.protected <T> voidIIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, boolean required, T defaultValue) Allows anObjectreference of a given class typeto be stored in nodes implementing the named element.protected <T> voidIIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, boolean required, T defaultValue,List<? extends T> enumeratedValues) Allows anObjectreference of a given class typeto be stored in nodes implementing the named element.protected <T extendsObject &Comparable<? super T>>
voidIIOMetadataFormatImpl.addObjectValue(String elementName,Class<T> classType, T defaultValue,Comparable<? super T> minValue,Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive) Allows anObjectreference of a given class typeto be stored in nodes implementing the named element.Uses ofClass injavax.imageio.spi
Fields injavax.imageio.spi declared asClassModifier and TypeFieldDescriptionprotectedClass<?> ImageInputStreamSpi.inputClassAClassobject indicating the legal object typefor use by thecreateInputStreamInstancemethod.protectedClass<?>[]ImageReaderSpi.inputTypesAn array ofClassobjects to be returned fromgetInputTypes, initiallynull.protectedClass<?> ImageOutputStreamSpi.outputClassAClassobject indicating the legal object typefor use by thecreateInputStreamInstancemethod.protectedClass<?>[]ImageWriterSpi.outputTypesAn array ofClassobjects to be returned fromgetOutputTypes, initiallynull.static finalClass<?>[]ImageReaderSpi.STANDARD_INPUT_TYPEDeprecated.Instead of using this field, directly createthe equivalent array{ ImageInputStream.class }.static finalClass<?>[]ImageWriterSpi.STANDARD_OUTPUT_TYPEDeprecated.Instead of using this field, directly createthe equivalent array{ ImageOutputStream.class }.Methods injavax.imageio.spi that returnClassModifier and TypeMethodDescriptionClass<?> ImageInputStreamSpi.getInputClass()Returns aClassobject representing the class orinterface type that must be implemented by an input source inorder to be "wrapped" in anImageInputStreamviathecreateInputStreamInstancemethod.Class<?>[]ImageReaderSpi.getInputTypes()Returns an array ofClassobjects indicating whattypes of objects may be used as arguments to the reader'ssetInputmethod.Class<?> ImageOutputStreamSpi.getOutputClass()Returns aClassobject representing the class orinterface type that must be implemented by an outputdestination in order to be "wrapped" in anImageOutputStreamvia thecreateOutputStreamInstancemethod.Class<?>[]ImageWriterSpi.getOutputTypes()Returns an array ofClassobjects indicating whattypes of objects may be used as arguments to the writer'ssetOutputmethod.Methods injavax.imageio.spi that return types with arguments of typeClassModifier and TypeMethodDescriptionServiceRegistry.getCategories()Returns anIteratorofClassobjectsindicating the current set of categories.Methods injavax.imageio.spi with parameters of typeClassModifier and TypeMethodDescriptionvoidServiceRegistry.deregisterAll(Class<?> category) Deregisters all service provider object currently registeredunder the given category.<T> booleanServiceRegistry.deregisterServiceProvider(T provider,Class<T> category) Removes a service provider object from the given category.<T> TServiceRegistry.getServiceProviderByClass(Class<T> providerClass) Returns the currently registered service provider object thatis of the given class type.<T> Iterator<T> ServiceRegistry.getServiceProviders(Class<T> category, boolean useOrdering) Returns anIteratorcontaining all registeredservice providers in the given category.<T> Iterator<T> ServiceRegistry.getServiceProviders(Class<T> category,ServiceRegistry.Filter filter, boolean useOrdering) Returns anIteratorcontaining service providerobjects within a given category that satisfy a criterionimposed by the suppliedServiceRegistry.Filterobject'sfiltermethod.static <T> Iterator<T> ServiceRegistry.lookupProviders(Class<T> providerClass) Locates and incrementally instantiates the available providersof a given service using the context class loader.static <T> Iterator<T> ServiceRegistry.lookupProviders(Class<T> providerClass,ClassLoader loader) Searches for implementations of a particular service classusing the given class loader.voidIIOServiceProvider.onDeregistration(ServiceRegistry registry,Class<?> category) A callback that will be whenever the Spi class has beenderegistered from aServiceRegistry.voidRegisterableService.onDeregistration(ServiceRegistry registry,Class<?> category) Called when an object implementing this interface is removedfrom the givencategoryof the givenregistry.voidIIOServiceProvider.onRegistration(ServiceRegistry registry,Class<?> category) A callback that will be called exactly once after the Spi classhas been instantiated and registered in aServiceRegistry.voidRegisterableService.onRegistration(ServiceRegistry registry,Class<?> category) Called when an object implementing this interface is added tothe givencategoryof the givenregistry.<T> booleanServiceRegistry.registerServiceProvider(T provider,Class<T> category) Adds a service provider object to the registry.<T> booleanServiceRegistry.setOrdering(Class<T> category, T firstProvider, T secondProvider) Sets a pairwise ordering between two service provider objectswithin a given category.<T> booleanServiceRegistry.unsetOrdering(Class<T> category, T firstProvider, T secondProvider) Sets a pairwise ordering between two service provider objectswithin a given category.Constructors injavax.imageio.spi with parameters of typeClassModifierConstructorDescriptionImageInputStreamSpi(String vendorName,String version,Class<?> inputClass) Constructs anImageInputStreamSpiwith a given setof values.ImageOutputStreamSpi(String vendorName,String version,Class<?> outputClass) Constructs anImageOutputStreamSpiwith a givenset of values.ImageReaderSpi(String vendorName,String version,String[] names,String[] suffixes,String[] MIMETypes,String readerClassName,Class<?>[] inputTypes,String[] writerSpiNames, boolean supportsStandardStreamMetadataFormat,String nativeStreamMetadataFormatName,String nativeStreamMetadataFormatClassName,String[] extraStreamMetadataFormatNames,String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat,String nativeImageMetadataFormatName,String nativeImageMetadataFormatClassName,String[] extraImageMetadataFormatNames,String[] extraImageMetadataFormatClassNames) Constructs anImageReaderSpiwith a givenset of values.ImageWriterSpi(String vendorName,String version,String[] names,String[] suffixes,String[] MIMETypes,String writerClassName,Class<?>[] outputTypes,String[] readerSpiNames, boolean supportsStandardStreamMetadataFormat,String nativeStreamMetadataFormatName,String nativeStreamMetadataFormatClassName,String[] extraStreamMetadataFormatNames,String[] extraStreamMetadataFormatClassNames, boolean supportsStandardImageMetadataFormat,String nativeImageMetadataFormatName,String nativeImageMetadataFormatClassName,String[] extraImageMetadataFormatNames,String[] extraImageMetadataFormatClassNames) Constructs anImageWriterSpiwith a givenset of values.Constructor parameters injavax.imageio.spi with type arguments of typeClassModifierConstructorDescriptionServiceRegistry(Iterator<Class<?>> categories) Constructs aServiceRegistryinstance with aset of categories taken from thecategoriesargument.Uses ofClass injavax.lang.model
Methods injavax.lang.model with parameters of typeClassModifier and TypeMethodDescription<A extendsAnnotation>
AAnnotatedConstruct.getAnnotation(Class<A> annotationType) Returns this construct's annotation of the specified type ifsuch an annotation ispresent, elsenull.<A extendsAnnotation>
A[]AnnotatedConstruct.getAnnotationsByType(Class<A> annotationType) Returns annotations of the specified type that areassociatedwith this construct.Uses ofClass injavax.lang.model.element
Methods injavax.lang.model.element with parameters of typeClassModifier and TypeMethodDescription<A extendsAnnotation>
AElement.getAnnotation(Class<A> annotationType) Returns this construct's annotation of the specified type ifsuch an annotation ispresent, elsenull.<A extendsAnnotation>
A[]Element.getAnnotationsByType(Class<A> annotationType) Returns annotations of the specified type that areassociatedwith this construct.Uses ofClass injavax.lang.model.type
Methods injavax.lang.model.type with parameters of typeClassModifier and TypeMethodDescription<A extendsAnnotation>
ATypeMirror.getAnnotation(Class<A> annotationType) Returns this construct's annotation of the specified type ifsuch an annotation ispresent, elsenull.<A extendsAnnotation>
A[]TypeMirror.getAnnotationsByType(Class<A> annotationType) Returns annotations of the specified type that areassociatedwith this construct.Uses ofClass injavax.management
Methods injavax.management that returnClassModifier and TypeMethodDescriptionClass<?> StandardMBean.getImplementationClass()Get the class of the implementation of this Standard MBean (or MXBean).finalClass<?> StandardMBean.getMBeanInterface()Get the Management Interface of this Standard MBean (or MXBean).staticClass<?> Deprecated.Go through the list of class loaders and try to load the requested class.staticClass<?> DefaultLoaderRepository.loadClassWithout(ClassLoader loader,String className) Deprecated.Go through the list of class loaders but exclude the given class loader, then try to loadthe requested class.Methods injavax.management with parameters of typeClassModifier and TypeMethodDescriptionstatic booleanJMX.isMXBeanInterface(Class<?> interfaceClass) Test whether an interface is an MXBean interface.static <T> TJMX.newMBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass) Make a proxy for a Standard MBean in a local or remoteMBean Server.static <T> TJMX.newMBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationEmitter) Make a proxy for a Standard MBean in a local or remote MBeanServer that may also support the methods ofNotificationEmitter.static <T> TJMX.newMXBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass) Make a proxy for an MXBean in a local or remote MBean Server.static <T> TJMX.newMXBeanProxy(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationEmitter) Make a proxy for an MXBean in a local or remote MBeanServer that may also support the methods ofNotificationEmitter.static <T> TMBeanServerInvocationHandler.newProxyInstance(MBeanServerConnection connection,ObjectName objectName,Class<T> interfaceClass, boolean notificationBroadcaster) Return a proxy that implements the given interface byforwarding its methods through the given MBean server to thenamed MBean.Constructors injavax.management with parameters of typeClassModifierConstructorDescriptionprotectedStandardEmitterMBean(Class<?> mbeanInterface, boolean isMXBean,NotificationEmitter emitter) Make an MBean whose management interface is specified bymbeanInterface, and where notifications are handled bythe givenNotificationEmitter.protectedStandardEmitterMBean(Class<?> mbeanInterface,NotificationEmitter emitter) Make an MBean whose management interface is specified bymbeanInterface, andwhere notifications are handled by the givenNotificationEmitter.<T>StandardEmitterMBean(T implementation,Class<T> mbeanInterface, boolean isMXBean,NotificationEmitter emitter) Make an MBean whose management interface is specified bymbeanInterface, with the given implementation and wherenotifications are handled by the givenNotificationEmitter.<T>StandardEmitterMBean(T implementation,Class<T> mbeanInterface,NotificationEmitter emitter) Make an MBean whose management interface is specified bymbeanInterface, with the given implementation andwhere notifications are handled by the givenNotificationEmitter.protectedStandardMBean(Class<?> mbeanInterface) Make a DynamicMBean out ofthis, using the specifiedmbeanInterface class.protectedStandardMBean(Class<?> mbeanInterface, boolean isMXBean) Make a DynamicMBean out ofthis, using the specifiedmbeanInterface class, and choosing whether the resultingMBean is an MXBean.<T>StandardMBean(T implementation,Class<T> mbeanInterface) Make a DynamicMBean out of the objectimplementation, using the specifiedmbeanInterface class.<T>StandardMBean(T implementation,Class<T> mbeanInterface, boolean isMXBean) Make a DynamicMBean out of the objectimplementation, using the specifiedmbeanInterface class, and choosing whether theresultant MBean is an MXBean.Uses ofClass injavax.management.loading
Methods injavax.management.loading that returnClassModifier and TypeMethodDescriptionClass<?> Load the given class name through the list of class loaders.staticClass<?> Deprecated.Go through the list of class loaders and try to load the requestedclass.Class<?> ClassLoaderRepository.loadClassBefore(ClassLoader stop,String className) Load the given class name through the list of class loaders,stopping at the given one.Class<?> ClassLoaderRepository.loadClassWithout(ClassLoader exclude,String className) Load the given class name through the list of class loaders,excluding the given one.staticClass<?> DefaultLoaderRepository.loadClassWithout(ClassLoader loader,String className) Deprecated.Go through the list of class loaders but exclude the givenclass loader, then try to loadthe requested class.Uses ofClass injavax.management.openmbean
Methods injavax.management.openmbean with parameters of typeClassModifier and TypeMethodDescriptionstatic <T> ArrayType<T> ArrayType.getPrimitiveArrayType(Class<T> arrayClass) Create anArrayTypeinstance in a type-safe manner.Uses ofClass injavax.naming.spi
Methods injavax.naming.spi with parameters of typeClassModifier and TypeMethodDescriptionResolver.resolveToClass(String name,Class<? extendsContext> contextType) Partially resolves a name.Resolver.resolveToClass(Name name,Class<? extendsContext> contextType) Partially resolves a name.Uses ofClass injavax.print
Methods injavax.print that returnClassModifier and TypeMethodDescriptionClass<?>[]PrintService.getSupportedAttributeCategories()Determines the printing attribute categories a client can specify whensetting up a job for this print service.Class<?>[]AttributeException.getUnsupportedAttributes()Returns the array of printing attribute classes for which the PrintService instance does not support the attribute at all, ornullif there are no such attributes.Methods injavax.print with parameters of typeClassModifier and TypeMethodDescription<T extendsPrintServiceAttribute>
TPrintService.getAttribute(Class<T> category) Gets the value of the single specified service attribute.PrintService.getDefaultAttributeValue(Class<? extendsAttribute> category) Determines this print service's default printing attribute value in thegiven category.PrintService.getSupportedAttributeValues(Class<? extendsAttribute> category,DocFlavor flavor,AttributeSet attributes) Determines the printing attribute values a client can specify in thegiven category when setting up a job for this print service.booleanPrintService.isAttributeCategorySupported(Class<? extendsAttribute> category) Determines whether a client can specify the given printing attributecategory when setting up a job for this print service.Uses ofClass injavax.print.attribute
Methods injavax.print.attribute that returnClassModifier and TypeMethodDescriptionAttribute.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value when it is added to an attribute set.staticClass<?> AttributeSetUtilities.verifyAttributeCategory(Object object,Class<?> interfaceName) Methods injavax.print.attribute with parameters of typeClassModifier and TypeMethodDescriptionbooleanAttributeSet.containsKey(Class<?> category) Returnstrueif this attribute set contains an attribute for thespecified category.booleanHashAttributeSet.containsKey(Class<?> category) Returnstrueif this attribute set contains an attribute for thespecified category.Returns the attribute value which this attribute set contains in thegiven attribute category.Returns the attribute value which this attribute set contains in thegiven attribute category.booleanRemoves any attribute for this category from this attribute set ifpresent.booleanRemoves any attribute for this category from this attribute set ifpresent.staticClass<?> AttributeSetUtilities.verifyAttributeCategory(Object object,Class<?> interfaceName) staticAttributeAttributeSetUtilities.verifyAttributeValue(Object object,Class<?> interfaceName) Verify that the given object is an instance of the given interface, whichis assumed to be interfaceAttributeor a subinterfacethereof.static voidAttributeSetUtilities.verifyCategoryForValue(Class<?> category,Attribute attribute) Verify that the given attribute category object is equal to the categoryof the given attribute value object.Constructors injavax.print.attribute with parameters of typeClassModifierConstructorDescriptionprotectedHashAttributeSet(Class<?> interfaceName) Construct a new, empty attribute set, where the members of the attributeset are restricted to the given interface.protectedHashAttributeSet(Attribute[] attributes,Class<?> interfaceName) Construct a new attribute set, where the members of the attribute set arerestricted to the given interface.protectedHashAttributeSet(Attribute attribute,Class<?> interfaceName) Construct a new attribute set, initially populated with the givenattribute, where the members of the attribute set are restricted to thegiven interface.protectedHashAttributeSet(AttributeSet attributes,Class<?> interfaceName) Construct a new attribute set, initially populated with the values fromthe given set where the members of the attribute set are restricted tothe given interface.Uses ofClass injavax.print.attribute.standard
Methods injavax.print.attribute.standard that returnClassModifier and TypeMethodDescriptionChromaticity.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.ColorSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Compression.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Copies.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.CopiesSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.DateTimeAtCompleted.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.DateTimeAtCreation.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.DateTimeAtProcessing.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Destination.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.DialogOwner.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.DialogTypeSelection.getCategory()Gets the printing attribute class which is to be used as the "category"for this printing attribute value.DocumentName.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Fidelity.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Finishings.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobHoldUntil.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobImpressions.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobImpressionsCompleted.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobImpressionsSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobKOctets.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobKOctetsProcessed.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobKOctetsSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobMediaSheets.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobMediaSheetsCompleted.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobMediaSheetsSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobMessageFromOperator.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobName.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobOriginatingUserName.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobPriority.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobPrioritySupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobSheets.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobState.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobStateReason.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.JobStateReasons.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Media.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.MediaPrintableArea.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.MediaSize.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.MultipleDocumentHandling.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.NumberOfDocuments.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.NumberOfInterveningJobs.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.NumberUp.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.NumberUpSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.OrientationRequested.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.OutputBin.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.OutputDeviceAssigned.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PageRanges.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PagesPerMinute.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PagesPerMinuteColor.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PDLOverrideSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PresentationDirection.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterInfo.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterIsAcceptingJobs.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterLocation.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterMakeAndModel.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterMessageFromOperator.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterMoreInfo.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterMoreInfoManufacturer.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterName.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterResolution.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterState.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterStateReason.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterStateReasons.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrinterURI.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.PrintQuality.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.QueuedJobCount.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.ReferenceUriSchemesSupported.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.RequestingUserName.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Severity.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.SheetCollate.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Sides.getCategory()Get the printing attribute class which is to be used as the "category"for this printing attribute value.Uses ofClass injavax.script
Methods injavax.script with parameters of typeClassModifier and TypeMethodDescription<T> TInvocable.getInterface(Class<T> clasz) Returns an implementation of an interface using functions compiled inthe interpreter.<T> TInvocable.getInterface(Object thiz,Class<T> clasz) Returns an implementation of an interface using member functions ofa scripting object compiled in the interpreter.Uses ofClass injavax.security.auth
Methods injavax.security.auth with parameters of typeClassModifier and TypeMethodDescriptionSubject.getPrincipals(Class<T> c) Return aSetof Principals associated with thisSubjectthat are instances or subclasses of the specifiedClass.<T> Set<T> Subject.getPrivateCredentials(Class<T> c) Return aSetof private credentials associated with thisSubjectthat are instances or subclasses of the specifiedClass.<T> Set<T> Subject.getPublicCredentials(Class<T> c) Return aSetof public credentials associated with thisSubjectthat are instances or subclasses of the specifiedClass.Uses ofClass injavax.sound.midi
Methods injavax.sound.midi that returnClassModifier and TypeMethodDescriptionClass<?> SoundbankResource.getDataClass()Obtains the class used by this sample to represent its data.Constructors injavax.sound.midi with parameters of typeClassModifierConstructorDescriptionprotectedInstrument(Soundbank soundbank,Patch patch,String name,Class<?> dataClass) Constructs a new MIDI instrument from the specifiedPatch.protectedSoundbankResource(Soundbank soundBank,String name,Class<?> dataClass) Constructs a newSoundbankResourcefrom the given sound bank andwavetable index.Uses ofClass injavax.sound.sampled
Methods injavax.sound.sampled that returnClassModifier and TypeMethodDescriptionClass<?> Line.Info.getLineClass()Obtains the class of the line that thisLine.Infoobjectdescribes.Constructors injavax.sound.sampled with parameters of typeClassModifierConstructorDescriptionInfo(Class<?> lineClass,AudioFormat format) Constructs a data line's info object from the specified information,which includes a single audio format.Info(Class<?> lineClass,AudioFormat[] formats, int minBufferSize, int maxBufferSize) Constructs a data line's info object from the specified information,which includes a set of supported audio formats and a range for thebuffer size.Info(Class<?> lineClass,AudioFormat format, int bufferSize) Constructs a data line's info object from the specified information,which includes a single audio format and a desired buffer size.Constructs an info object that describes a line of the specifiedclass.Constructs a port's info object from the information given.Uses ofClass injavax.sql
Modifier and TypeMethodDescriptionRowSet.getTypeMap()Retrieves theMapobject associated with thisRowSetobject, which specifies the custom mappingof SQL user-defined types, if any.Modifier and TypeMethodDescriptionvoidRowSet.setTypeMap(Map<String, Class<?>> map) Installs the givenjava.util.Mapobject as the defaulttype map for thisRowSetobject.Uses ofClass injavax.sql.rowset
Methods injavax.sql.rowset that return types with arguments of typeClassModifier and TypeMethodDescriptionBaseRowSet.getTypeMap()Retrieves the type map associated with theConnectionobject for thisRowSetobject.Methods injavax.sql.rowset with parameters of typeClassModifier and TypeMethodDescriptionbooleanRowSetMetaDataImpl.isWrapperFor(Class<?> interfaces) Returns true if this either implements the interface argument or is directly or indirectly a wrapperfor an object that does.<T> TReturns an object that implements the given interface to allow access to non-standard methods,or standard methods not exposed by the proxy.Method parameters injavax.sql.rowset with type arguments of typeClassModifier and TypeMethodDescriptionvoidBaseRowSet.setTypeMap(Map<String, Class<?>> map) Installs the givenjava.util.Mapobject as the type mapassociated with theConnectionobject for thisRowSetobject.Uses ofClass injavax.sql.rowset.serial
Method parameters injavax.sql.rowset.serial with type arguments of typeClassModifier and TypeMethodDescriptionReturns a new array that is a copy of a sliceof thisSerialArrayobject, starting with theelement at the given index and containing the given numberof consecutive elements.Returns a new array that is a copy of thisSerialArrayobject, using the given type map for the custommapping of each element when the elements are SQL UDTs.Object[]SerialStruct.getAttributes(Map<String, Class<?>> map) Retrieves the attributes for the SQL structured type thatthisSerialStructrepresents as an array ofObjectvalues, using the given type map forcustom mapping if appropriate.Returns anObjectrepresenting the SQL structured typeto which thisSerialRefobject refers.SerialArray.getResultSet(long index, int count,Map<String, Class<?>> map) Retrieves a result set holding the elements of the subarray that starts atRetrieves aResultSetobject that contains a subarray of theelements in thisSerialArrayobject, starting atindexindex and containing up tocount successiveelements.SerialArray.getResultSet(Map<String, Class<?>> map) Retrieves aResultSetobject that contains all ofthe elements of the SQLARRAYvalue represented by thisSerialArrayobject.Constructor parameters injavax.sql.rowset.serial with type arguments of typeClassModifierConstructorDescriptionSerialArray(Array array,Map<String, Class<?>> map) Constructs a newSerialArrayobject from the givenArrayobject, using the given type map for the custommapping of each element when the elements are SQL UDTs.SerialStruct(SQLData in,Map<String, Class<?>> map) Constructs aSerialStructobject from thegivenSQLDataobject, using the given typemap to custom map it to a class in the Java programminglanguage.SerialStruct(Struct in,Map<String, Class<?>> map) Constructs aSerialStructobject from the givenStructobject, using the givenjava.util.Mapobject for custom mapping the SQL structured type or any of itsattributes that are SQL structured types.SQLInputImpl(Object[] attributes,Map<String, Class<?>> map) Creates anSQLInputImplobject initialized with thegiven array of attributes and the given type map.Uses ofClass injavax.swing
Methods injavax.swing that returnClassModifier and TypeMethodDescriptionClass<?> JTable.getColumnClass(int column) Returns the type of the column appearing in the view atcolumn positioncolumn.Class<? extendsComponentUI> UIDefaults.getUIClass(String uiClassID) Returns the L&F class that renders this component.Class<? extendsComponentUI> UIDefaults.getUIClass(String uiClassID,ClassLoader uiClassLoader) The value ofget(uidClassID)must be theStringname of aclass that implements the correspondingComponentUIclass.Methods injavax.swing with parameters of typeClassModifier and TypeMethodDescriptionstaticContainerSwingUtilities.getAncestorOfClass(Class<?> c,Component comp) Convenience method for searching abovecompin thecomponent hierarchy and returns the first object of classcitfinds.JTable.getDefaultEditor(Class<?> columnClass) Returns the editor to be used when no editor has been set inaTableColumn.JTable.getDefaultRenderer(Class<?> columnClass) Returns the cell renderer to be used when no renderer has been set inaTableColumn.<T extendsEventListener>
T[]AbstractListModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon this model.<T extendsEventListener>
T[]AbstractSpinnerModel.getListeners(Class<T> listenerType) Return an array of all the listeners of the given type thatwere added to this model.<T extendsEventListener>
T[]DefaultBoundedRangeModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon this model.<T extendsEventListener>
T[]DefaultButtonModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon this model.<T extendsEventListener>
T[]DefaultListSelectionModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon this model.<T extendsEventListener>
T[]DefaultSingleSelectionModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon this model.<T extendsEventListener>
T[]JComponent.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisJComponent.<T extendsEventListener>
T[]Timer.getListeners(Class<T> listenerType) Returns an array of all the objects currently registered asFooListenersupon thisTimer.staticObjectCreates and returns aUIDefault.LazyValuethat loads animage.voidJTable.setDefaultEditor(Class<?> columnClass,TableCellEditor editor) Sets a default cell editor to be used if no editor has been set inaTableColumn.voidJTable.setDefaultRenderer(Class<?> columnClass,TableCellRenderer renderer) Sets a default cell renderer to be used if no renderer has been set inaTableColumn.Uses ofClass injavax.swing.event
Methods injavax.swing.event with parameters of typeClassModifier and TypeMethodDescription<T extendsEventListener>
voidAdds the listener as a listener of the specified type.intEventListenerList.getListenerCount(Class<?> t) Returns the total number of listeners of the supplied typefor this listener list.<T extendsEventListener>
T[]EventListenerList.getListeners(Class<T> t) Return an array of all the listeners of the given type.<T extendsEventListener>
voidRemoves the listener as a listener of the specified type.Uses ofClass injavax.swing.plaf.synth
Methods injavax.swing.plaf.synth with parameters of typeClassModifier and TypeMethodDescriptionvoidSynthLookAndFeel.load(InputStream input,Class<?> resourceBase) Loads the set ofSynthStyles that will be used bythisSynthLookAndFeel.Uses ofClass injavax.swing.table
Methods injavax.swing.table that returnClassModifier and TypeMethodDescriptionClass<?> AbstractTableModel.getColumnClass(int columnIndex) ReturnsObject.classregardless ofcolumnIndex.Class<?> TableModel.getColumnClass(int columnIndex) Returns the most specific superclass for all the cell valuesin the column.Methods injavax.swing.table with parameters of typeClassModifier and TypeMethodDescription<T extendsEventListener>
T[]AbstractTableModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon thisAbstractTableModel.<T extendsEventListener>
T[]DefaultTableColumnModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon this model.Uses ofClass injavax.swing.text
Methods injavax.swing.text that returnClassModifier and TypeMethodDescriptionClass<?> DefaultFormatter.getValueClass()Returns that class that is used to create new Objects.Methods injavax.swing.text with parameters of typeClassModifier and TypeMethodDescription<T extendsEventListener>
T[]AbstractDocument.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon this document.<T extendsEventListener>
T[]DefaultCaret.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon this caret.<T extendsEventListener>
T[]StyleContext.NamedStyle.getListeners(Class<T> listenerType) Return an array of all the listeners of the given type thatwere added to this model.voidDefaultFormatter.setValueClass(Class<?> valueClass) Sets that class that is used to create new Objects.Uses ofClass injavax.swing.tree
Methods injavax.swing.tree with parameters of typeClassModifier and TypeMethodDescription<T extendsEventListener>
T[]DefaultTreeModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon this model.<T extendsEventListener>
T[]DefaultTreeSelectionModel.getListeners(Class<T> listenerType) Returns an array of all the objects currently registeredasFooListenersupon this model.Uses ofClass injavax.tools
Methods injavax.tools with parameters of typeClassModifier and TypeMethodDescription<S> ServiceLoader<S> ForwardingJavaFileManager.getServiceLoader(JavaFileManager.Location location,Class<S> service) default <S> ServiceLoader<S> JavaFileManager.getServiceLoader(JavaFileManager.Location location,Class<S> service) Get a service loader for a specific service class from a given location.DocumentationTool.getTask(Writer out,JavaFileManager fileManager,DiagnosticListener<? superJavaFileObject> diagnosticListener,Class<?> docletClass,Iterable<String> options,Iterable<? extendsJavaFileObject> compilationUnits) Creates a future for a documentation task with the givencomponents and arguments.Uses ofClass injavax.xml.xpath
Methods injavax.xml.xpath with parameters of typeClassModifier and TypeMethodDescriptiondefault <T> TXPath.evaluateExpression(String expression,Object item,Class<T> type) Evaluate an XPath expression in the specified context and returnthe result with the type specified through theclass typedefault <T> TXPath.evaluateExpression(String expression,InputSource source,Class<T> type) Evaluate an XPath expression in the context of the specifiedsourceand return the result as specified.default <T> TXPathExpression.evaluateExpression(Object item,Class<T> type) Evaluate the compiled XPath expression in the specified context, and returnthe result with the type specified through theclass type.default <T> TXPathExpression.evaluateExpression(InputSource source,Class<T> type) Evaluate the compiled XPath expression in the specified context,and return the result with the type specified through theclass typestaticQNameXPathEvaluationResult.XPathResultType.getQNameType(Class<?> clsType) Returns the QName type as specified inXPathConstantsthatcorresponds to the specified class type.Uses ofClass injdk.dynalink.beans
Methods injdk.dynalink.beans that returnClassModifier and TypeMethodDescriptionClass<?> StaticClass.getRepresentedClass()Returns the represented Java class.Methods injdk.dynalink.beans with parameters of typeClassModifier and TypeMethodDescriptionstaticStaticClassRetrieves theStaticClassinstance for the specified class.staticObjectBeansLinker.getConstructorMethod(Class<?> clazz,String signature) Return the dynamic method of constructor of the given class and the givensignature.BeansLinker.getInstanceMethodNames(Class<?> clazz) Returns a set of names of all instance methods of a class.BeansLinker.getLinkerForClass(Class<?> clazz) Returns a bean linker for a particular single class.BeansLinker.getReadableInstancePropertyNames(Class<?> clazz) Returns a set of names of all readable instance properties of a class.BeansLinker.getReadableStaticPropertyNames(Class<?> clazz) Returns a set of names of all readable static properties of a class.BeansLinker.getStaticMethodNames(Class<?> clazz) Returns a set of names of all static methods of a class.BeansLinker.getWritableInstancePropertyNames(Class<?> clazz) Returns a set of names of all writable instance properties of a class.BeansLinker.getWritableStaticPropertyNames(Class<?> clazz) Returns a set of names of all writable static properties of a class.Uses ofClass injdk.dynalink.linker
Methods injdk.dynalink.linker that returnClassModifier and TypeMethodDescriptionGuardedInvocation.getException()Returns the exception type that if thrown by the invocation shouldinvalidate the linkage of this guarded invocation.Methods injdk.dynalink.linker with parameters of typeClassModifier and TypeMethodDescriptionbooleanLinkerServices.canConvert(Class<?> from,Class<?> to) Returns true if there might exist a conversion between the requestedtypes (either an automatic JVM conversion, or one provided by anyavailableGuardingTypeConverterFactory), or false if theredefinitely does not exist a conversion between the requested types.booleanTypeBasedGuardingDynamicLinker.canLinkType(Class<?> type) Returns true if the linker can link an invocation where the first argument (receiver) is of the specified type.ConversionComparator.compareConversion(Class<?> sourceType,Class<?> targetType1,Class<?> targetType2) Determines which of the two target types is the preferred conversiontarget from a source type.LinkerServices.compareConversion(Class<?> sourceType,Class<?> targetType1,Class<?> targetType2) Determines which of the two type conversions from a source type to thetwo target types is preferred.GuardingTypeConverterFactory.convertToType(Class<?> sourceType,Class<?> targetType,Supplier<MethodHandles.Lookup> lookupSupplier) Returns a guarded type conversion that receives a value of the specifiedsource type and returns a value converted to the specified target type.GuardedInvocation.dropArguments(int pos,Class<?>... valueTypes) Makes an invocation that drops arguments in both the invocation and theguard (if it exists and has at leastposparameters) withMethodHandles.dropArguments(MethodHandle, int, Class...).LinkerServices.getTypeConverter(Class<?> sourceType,Class<?> targetType) Given a source and target type, returns a method handle that convertsbetween them.Method parameters injdk.dynalink.linker with type arguments of typeClassModifier and TypeMethodDescriptionGuardedInvocation.dropArguments(int pos,List<Class<?>> valueTypes) Makes an invocation that drops arguments in both the invocation and theguard (if it exists and has at leastposparameters) withMethodHandles.dropArguments(MethodHandle, int, List).Constructors injdk.dynalink.linker with parameters of typeClassModifierConstructorDescriptionGuardedInvocation(MethodHandle invocation,MethodHandle guard,SwitchPoint[] switchPoints,Class<? extendsThrowable> exception) Creates a new guarded invocation, with a guard method handle, any numberof switch points that can be used to invalidate it, and an exception thatif thrown when invoked also invalidates it.GuardedInvocation(MethodHandle invocation,MethodHandle guard,SwitchPoint switchPoint,Class<? extendsThrowable> exception) Creates a new guarded invocation, with a guard method handle, aswitch point that can be used to invalidate it, and an exception that ifthrown when invoked also invalidates it.Uses ofClass injdk.dynalink.linker.support
Methods injdk.dynalink.linker.support that returnClassModifier and TypeMethodDescriptionstaticClass<?> TypeUtilities.getPrimitiveType(Class<?> wrapperType) When passed a class representing a wrapper for a primitive type, returnsthe class representing the corresponding primitive type.staticClass<?> TypeUtilities.getPrimitiveTypeByName(String name) Given a name of a primitive type returns the class representing it.staticClass<?> TypeUtilities.getWrapperType(Class<?> primitiveType) When passed a class representing a primitive type, returns the class representing the correspondingwrapper type.Methods injdk.dynalink.linker.support with parameters of typeClassModifier and TypeMethodDescriptionbooleanCompositeTypeBasedGuardingDynamicLinker.canLinkType(Class<?> type) Returns true if at least one of the composite linkers returns true fromTypeBasedGuardingDynamicLinker.canLinkType(Class)for the type.Lookup.findGetter(Class<?> refc,String name,Class<?> type) Performs aMethodHandles.Lookup.findGetter(Class, String, Class),converting any encounteredIllegalAccessExceptioninto anIllegalAccessErrorandNoSuchFieldExceptioninto aNoSuchFieldError.staticMethodHandleLookup.findOwnSpecial(MethodHandles.Lookup lookup,String name,Class<?> rtype,Class<?>... ptypes) Given a lookup, finds usingLookup.findSpecial(Class, String, MethodType)a method on that lookup's class.Lookup.findOwnSpecial(String name,Class<?> rtype,Class<?>... ptypes) Finds usingLookup.findSpecial(Class, String, MethodType)a method onthat lookup's class.staticMethodHandleLookup.findOwnStatic(MethodHandles.Lookup lookup,String name,Class<?> rtype,Class<?>... ptypes) Given a lookup, finds usingLookup.findStatic(Class, String, MethodType)a method on that lookup's class.Lookup.findOwnStatic(String name,Class<?> rtype,Class<?>... ptypes) Finds usingLookup.findStatic(Class, String, MethodType)a method onthat lookup's class.Lookup.findSpecial(Class<?> declaringClass,String name,MethodType type) Performs aMethodHandles.Lookup.findSpecial(Class, String, MethodType, Class)on the underlying lookup.Lookup.findStatic(Class<?> declaringClass,String name,MethodType type) Performs aMethodHandles.Lookup.findStatic(Class, String, MethodType)on the underlying lookup.Lookup.findVirtual(Class<?> declaringClass,String name,MethodType type) Performs aMethodHandles.Lookup.findVirtual(Class, String, MethodType)on the underlying lookup.staticMethodHandleGuards.getClassGuard(Class<?> clazz) Creates a guard method that tests its only argument for being of an exact particular class.staticMethodHandleGuards.getInstanceOfGuard(Class<?> clazz) Creates a guard method that tests its only argument for being an instance of a particular class.staticClass<?> TypeUtilities.getPrimitiveType(Class<?> wrapperType) When passed a class representing a wrapper for a primitive type, returnsthe class representing the corresponding primitive type.staticClass<?> TypeUtilities.getWrapperType(Class<?> primitiveType) When passed a class representing a primitive type, returns the class representing the correspondingwrapper type.static booleanTypeUtilities.isConvertibleWithoutLoss(Class<?> sourceType,Class<?> targetType) Determines whether a type can be converted to another without losing anyprecision.staticMethodHandleGuards.isInstance(Class<?> clazz, int pos,MethodType type) Creates a method handle with arguments of a specified type, but with boolean return value.staticMethodHandleGuards.isInstance(Class<?> clazz,MethodType type) Creates a method handle with arguments of a specified type, but with boolean return value.static booleanTypeUtilities.isMethodInvocationConvertible(Class<?> sourceType,Class<?> targetType) Determines whether one type can be converted to another type using a method invocation conversion, as per JLS 5.3"Method Invocation Conversion".staticMethodHandleGuards.isOfClass(Class<?> clazz,MethodType type) Creates a guard method handle with arguments of a specified type, but with boolean return value.static booleanDetermines whether one type is a subtype of another type, as per JLS4.10 "Subtyping".static booleanTypeUtilities.isWrapperType(Class<?> type) Returns true if the passed type is a wrapper for a primitive type.Uses ofClass injdk.incubator.vector
Methods injdk.incubator.vector that returnClassModifier and TypeMethodDescriptionVectorOperators.Conversion.domainType()The domain of this conversion, a primitive type.Vector.elementType()Returns the primitiveelement type(ETYPE) of this vector.VectorSpecies.elementType()Returns the primitive element type of vectors of thisspecies.Class<? extendsVectorMask<E>> VectorSpecies.maskType()Returns the vector mask type for this species.VectorOperators.Conversion.rangeType()The range of this conversion, a primitive type.Class<?> VectorOperators.Operator.rangeType()Reports the special return type of this operator.VectorSpecies.vectorType()Returns the vector type of this species.Methods injdk.incubator.vector with parameters of typeClassModifier and TypeMethodDescriptionabstract <F> Vector<F> Checks that this vector has the given element type,and returns this vector unchanged.abstract <F> VectorMask<F> Checks that this mask applies to vectors with the given element type,and returns this mask unchanged.<E,F> VectorOperators.Conversion <E, F> Ensures that this conversion has thedesired domain and range types.<F> VectorSpecies<F> Checks that this species has the given element type,and returns this species unchanged.booleanVectorOperators.Operator.compatibleWith(Class<?> elementType) Reports whether this operator is compatible withthe proposed element type.static intVectorSpecies.elementSize(Class<?> elementType) Returns the bit-size of the given vector element type (ETYPE).staticVectorShapeVectorShape.largestShapeFor(Class<?> etype) Finds the largest vector shape supported by the currentplatform for the element typeetype.static <E> VectorSpecies<E> VectorSpecies.of(Class<E> elementType,VectorShape shape) Finds a species for an element type and shape.static <E,F> VectorOperators.Conversion <E, F> The Java language assignment or casting conversion between two types.static <E> VectorSpecies<E> VectorSpecies.ofLargestShape(Class<E> etype) Finds the largest vector species of the given element type.static <E> VectorSpecies<E> VectorSpecies.ofPreferred(Class<E> etype) Finds the species preferred by the current platformfor a given vector element type.static <E,F> VectorOperators.Conversion <E, F> VectorOperators.Conversion.ofReinterpret(Class<E> from,Class<F> to) The bitwise reinterpretation between two types.<E> VectorSpecies<E> Finds a vector species with the given element typeand the current shape.<F> VectorSpecies<F> Finds a species with the given element type and thesame shape as this species.Uses ofClass injdk.jfr
Modifier and TypeMethodDescriptionstatic voidFlightRecorder.addPeriodicEvent(Class<? extendsEvent> eventClass,Runnable hook) Adds a hook for a periodic event.Disables event.Enables event.final <A> AAnnotationElement.getAnnotation(Class<? extendsAnnotation> annotationType) Returns the first annotation for the specified type if anAnnotationElementwith the same name exists, elsenull.<A extendsAnnotation>
AEventType.getAnnotation(Class<A> annotationClass) Returns the first annotation for the specified type if an annotationelement with the same name is directly present, otherwisenull.<A extendsAnnotation>
ASettingDescriptor.getAnnotation(Class<A> annotationType) Returns the first annotation for the specified type if an annotationelement with the same name is available,nullotherwise.<A extendsAnnotation>
AValueDescriptor.getAnnotation(Class<A> annotationType) Returns the first annotation for the specified type if an annotationelement with the same name is directly present for this value descriptor,nullotherwise.staticEventTypeEventType.getEventType(Class<? extendsEvent> eventClass) Returns the event type for an event class, ornullif it doesn'texist.static voidRegisters an event class.static voidFlightRecorder.unregister(Class<? extendsEvent> eventClass) Unregisters an event class.ModifierConstructorDescriptionAnnotationElement(Class<? extendsAnnotation> annotationType) Creates an annotation element to use for dynamically defined events.AnnotationElement(Class<? extendsAnnotation> annotationType,Object value) Creates an annotation element to use for dynamically defined events.AnnotationElement(Class<? extendsAnnotation> annotationType,Map<String, Object> values) Creates an annotation element to use for dynamically defined events.ValueDescriptor(Class<?> type,String name) Constructs a value descriptor, useful for dynamically creating event types andannotations.ValueDescriptor(Class<?> type,String name,List<AnnotationElement> annotations) Constructs a value descriptor, useful for dynamically creating event types andannotations.Uses ofClass injdk.jfr.consumer
Methods injdk.jfr.consumer with parameters of typeClassModifier and TypeMethodDescriptionDisables event.Enables event.Uses ofClass injdk.jshell.execution
Methods injdk.jshell.execution that returnClassUses ofClass injdk.net
Modifier and TypeMethodDescriptionstaticSet<SocketOption<?>> Sockets.supportedOptions(Class<?> socketType) Deprecated, for removal: This API element is subject to removal in a future version.