Uses of Class
java.lang.Class
-
Packages that use Class Package Description com.ibm.java.diagnostics.utils.plugins com.ibm.oti.shared The OpenJ9 shared classes API, a persistent share which can contain classes, precompiled code (AOT), JIT data, and other data used to improve start up performance and reduce memory footprint.com.sun.java.accessibility.util Provides a collection of interfaces and classes that compose the Java Accessibility Utilities.com.sun.source.tree Provides interfaces to represent source code as abstract syntax trees (AST).java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.datatransfer Provides interfaces and classes for transferring data between and within applications.java.awt.dnd Drag and Drop is a direct manipulation gesture found in many Graphical User Interface systems that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.java.awt.image.renderable Provides classes and interfaces for producing rendering-independent images.java.beans Contains classes related to developing beans -- components based on the JavaBeans™ architecture.java.beans.beancontext Provides classes and interfaces relating to bean context.java.io Provides for system input and output through data streams, serialization and the file system.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.annotation Provides library support for the Java programming language annotation facility.java.lang.instrument Provides services that allow Java programming language agents to instrument programs running on the JVM.java.lang.invoke Thejava.lang.invokepackage provides low-level primitives for interacting with the Java Virtual Machine.java.lang.management Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.java.lang.reflect Provides classes and interfaces for obtaining reflective information about classes and objects.java.net Provides the classes for implementing networking applications.java.nio.file Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.java.nio.file.spi Service-provider classes for thejava.nio.filepackage.java.rmi.server Provides classes and interfaces for supporting the server side of RMI.java.security Provides the classes and interfaces for the security framework.java.sql Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java™ programming language.java.util Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.java.util.concurrent.atomic A small toolkit of classes that support lock-free thread-safe programming on single variables.java.util.prefs This package allows applications to store and retrieve user and system preference and configuration data.javax.annotation.processing Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.javax.crypto Provides the classes and interfaces for cryptographic operations.javax.imageio.metadata A package of the Java Image I/O API dealing with reading and writing metadata.javax.imageio.spi A package of the Java Image I/O API containing the plug-in interfaces for readers, writers, transcoders, and streams, and a runtime registry.javax.lang.model Classes and hierarchies of packages used to model the Java programming language.javax.lang.model.element Interfaces used to model elements of the Java programming language.javax.management Provides the core classes for the Java Management Extensions.javax.management.loading Provides the classes which implement advanced dynamic loading.javax.management.openmbean Provides the open data types and Open MBean descriptor classes.javax.naming.spi Provides the means for dynamically plugging in support for accessing naming and directory services through thejavax.namingand related packages.javax.print Provides the principal classes and interfaces for the Java™ Print Service API.javax.print.attribute Provides classes and interfaces that describe the types of Java™ Print Service attributes and how they can be collected into attribute sets.javax.print.attribute.standard Packagejavax.print.attribute.standardcontains classes for specific printing attributes.javax.script The scripting API consists of interfaces and classes that define Java™ Scripting Engines and provides a framework for their use in Java applications.javax.security.auth This package provides a framework for authentication and authorization.javax.sound.midi Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.javax.sound.sampled Provides interfaces and classes for capture, processing, and playback of sampled audio data.javax.sql Provides the API for server side data source access and processing from the Java™ programming language.javax.sql.rowset Standard interfaces and base classes for JDBCRowSetimplementations.javax.sql.rowset.serial Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.event Provides for events fired by Swing components.javax.swing.plaf.synth Synth is a skinnable look and feel in which all painting is delegated.javax.swing.table Provides classes and interfaces for dealing withjavax.swing.JTable.javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components.javax.swing.tree Provides classes and interfaces for dealing withjavax.swing.JTree.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.javax.xml.xpath Provides an object-model neutral API for the evaluation of XPath expressions and access to the evaluation environment.jdk.dynalink.beans Contains the linker for ordinary Java objects.jdk.dynalink.linker Contains interfaces and classes needed by language runtimes to implement their own language-specific object models and type conversions.jdk.dynalink.linker.support Contains classes that make it more convenient for language runtimes to implement their own language-specific object models and type conversions by providing basic implementations of some classes as well as various utilities.jdk.jfr This package provides classes to create events and control Flight Recorder.jdk.jshell.execution Provides implementation support for building JShell execution engines.jdk.nashorn.api.scripting This package provides thejavax.scriptintegration, which is the preferred way to use Nashorn.jdk.nashorn.api.tree Nashorn parser API provides interfaces to represent ECMAScript source code as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.jdk.net Platform specific socket options for thejava.netandjava.nio.channelssocket classes. -
-
Uses of Class in com.ibm.java.diagnostics.utils.plugins
Methods in com.ibm.java.diagnostics.utils.plugins with parameters of type Class Modifier and Type Method Description booleanClassInfo. hasInterface(Class<?> iface) -
Uses of Class in com.ibm.oti.shared
Methods in com.ibm.oti.shared with parameters of type Class Modifier and Type Method Description booleanSharedClassTokenHelper. storeSharedClass(String token, Class<?> clazz)Stores a class in the shared cache by using a specific token.booleanSharedClassURLClasspathHelper. storeSharedClass(Class<?> clazz, int foundAtIndex)Stores a class in the shared cache by using the caller's URL classpath.booleanSharedClassURLClasspathHelper. storeSharedClass(String partition, Class<?> clazz, int foundAtIndex)Stores a class in the shared cache by using the caller's URL classpath and with a user-defined partition.booleanSharedClassURLHelper. storeSharedClass(String partition, URL path, Class<?> clazz)Stores a class in the shared cache by using the URL location it was loaded from and a user-defined partition (seePartitions
).booleanSharedClassURLHelper. storeSharedClass(URL path, Class<?> clazz)Stores a class in the shared cache by using the URL location it was loaded from. -
Uses of Class in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Class Modifier and Type Method Description protected static Class<?>Translator. getTranslatorClass(Class<?> c)Find a translator for this class.Methods in com.sun.java.accessibility.util with parameters of type Class Modifier and Type Method Description voidAccessibilityListenerList. add(Class<? extends EventListener> t, EventListener l)Add the listener as a listener of the specified type.intAccessibilityListenerList. getListenerCount(Class<? extends EventListener> t)Return the total number of listeners of the supplied type for this listener list.protected static Class<?>Translator. getTranslatorClass(Class<?> c)Find a translator for this class.voidAccessibilityListenerList. remove(Class<? extends EventListener> t, EventListener l)Remove the listener as a listener of the specified type. -
Uses of Class in com.sun.source.tree
Methods in com.sun.source.tree that return Class Modifier and Type Method Description Class<? extends Tree>Tree.Kind. asInterface()Returns the associated interface type that uses this kind. -
Uses of Class in java.awt
Methods in java.awt with parameters of type Class Modifier and Type Method Description <T extends DragGestureRecognizer>
TToolkit. createDragGestureRecognizer(Class<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)Creates a concrete, platform dependent, subclass of the abstract DragGestureRecognizer class requested, and associates it with the DragSource, Component and DragGestureListener specified.static <T extends EventListener>
T[]AWTEventMulticaster. getListeners(EventListener l, Class<T> listenerType)Returns an array of all the objects chained asFooListeners by the specifiedjava.util.EventListener.<T extends EventListener>
T[]Button. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisButton.<T extends EventListener>
T[]Checkbox. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisCheckbox.<T extends EventListener>
T[]CheckboxMenuItem. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisCheckboxMenuItem.<T extends EventListener>
T[]Choice. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisChoice.<T extends EventListener>
T[]Component. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisComponent.<T extends EventListener>
T[]Container. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisContainer.<T extends EventListener>
T[]List. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisList.<T extends EventListener>
T[]MenuItem. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisMenuItem.<T extends EventListener>
T[]Scrollbar. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisScrollbar.<T extends EventListener>
T[]TextComponent. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisTextComponent.<T extends EventListener>
T[]TextField. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisTextField.<T extends EventListener>
T[]Window. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisWindow.protected static voidAWTKeyStroke. registerSubclass(Class<?> subclass)Deprecated. -
Uses of Class in java.awt.datatransfer
Methods in java.awt.datatransfer that return Class Modifier and Type Method Description Class<?>DataFlavor. getDefaultRepresentationClass()Returns the default representation class.Class<?>DataFlavor. getRepresentationClass()Returns theClasswhich objects supporting thisDataFlavorwill return when thisDataFlavoris requested.protected static Class<?>DataFlavor. tryToLoadClass(String className, ClassLoader fallback)Tries to load a class from: the bootstrap loader, the system loader, the context loader (if one is present) and finally the loader specified.Constructors in java.awt.datatransfer with parameters of type Class Constructor Description DataFlavor(Class<?> representationClass, String humanPresentableName)Constructs aDataFlavorthat represents a Java class. -
Uses of Class in java.awt.dnd
Methods in java.awt.dnd with parameters of type Class Modifier and Type Method Description <T extends DragGestureRecognizer>
TDragSource. createDragGestureRecognizer(Class<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)Creates a newDragGestureRecognizerthat implements the specified abstract subclass ofDragGestureRecognizer, and sets the specifiedComponentandDragGestureListeneron the newly created object.<T extends EventListener>
T[]DragSource. getListeners(Class<T> listenerType)Gets all the objects currently registered asFooListeners upon thisDragSource. -
Uses of Class in java.awt.image.renderable
Methods in java.awt.image.renderable that return Class Modifier and Type Method Description Class<?>[]ParameterBlock. getParamClasses()Returns an array of Class objects describing the types of the parameters. -
Uses of Class in java.beans
Methods in java.beans that return Class Modifier and Type Method Description Class<?>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 registered for this property.Class<?>PropertyDescriptor. getPropertyType()Returns the Java type info for the property.Methods in java.beans with parameters of type Class Modifier and Type Method Description static <T> TEventHandler. create(Class<T> listenerInterface, Object target, String action)Creates an implementation oflistenerInterfacein which all 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 which all 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.static PropertyEditorPropertyEditorManager. 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.static BeanInfoIntrospector. getBeanInfo(Class<?> beanClass)Introspect on a Java Bean and learn about all its properties, exposed methods, and events.static BeanInfoIntrospector. getBeanInfo(Class<?> beanClass, int flags)Introspect on a Java bean and learn about all its properties, exposed methods, and events, subject to some control flags.static BeanInfoIntrospector. getBeanInfo(Class<?> beanClass, Class<?> stopClass)Introspect on a Java bean and learn all about its properties, exposed methods, below a given "stop" point.static BeanInfoIntrospector. getBeanInfo(Class<?> beanClass, Class<?> stopClass, int flags)Introspect on a Java Bean and learn about all its properties, exposed methods and events, below a givenstopClasspoint subject to some controlflags.static ObjectBeans. getInstanceOf(Object bean, Class<?> targetType)From a given bean, obtain an object representing a specified type view of that source object.PersistenceDelegateEncoder. 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 assumes all state held in objects of this type is exposed via the matching pairs of "setter" and "getter" methods in the order they 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 becomes equivalent 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 in java.beans with parameters of type Class Constructor Description BeanDescriptor(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 are following the most simple standard design pattern where a named event "fred" is (1) delivered as a call on the single method of interface FredListener, (2) has a single argument of type FredEvent, and (3) where the FredListener may be registered with a call on an addFredListener method of the source component and removed with a call on a removeFredListener method.EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName)Creates anEventSetDescriptorfrom scratch using string names.EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName)This constructor creates an EventSetDescriptor from scratch using string 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 using java.lang.reflect.Method and java.lang.Class objects.IndexedPropertyDescriptor(String propertyName, Class<?> beanClass)This constructor constructs an IndexedPropertyDescriptor for a property that follows the standard Java conventions by having getFoo and setFoo accessor 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 method names for reading and writing the property, both indexed and non-indexed.PropertyDescriptor(String propertyName, Class<?> beanClass)Constructs a PropertyDescriptor for a property that follows the standard Java convention by having getFoo and setFoo accessor methods.PropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName)This constructor takes the name of a simple property, and method names for reading and writing the property. -
Uses of Class in java.beans.beancontext
Fields in java.beans.beancontext declared as Class Modifier and Type Field Description protected Class<?>BeanContextServiceAvailableEvent. serviceClassAClassreference to the newly available serviceprotected Class<?>BeanContextServiceRevokedEvent. serviceClassAClassreference to the service that is being revoked.Methods in java.beans.beancontext that return Class Modifier and Type Method Description Class<?>BeanContextServiceAvailableEvent. getServiceClass()Gets the service class that is the subject of this notification.Class<?>BeanContextServiceRevokedEvent. getServiceClass()Gets the service class that is the subject of this notificationMethods in java.beans.beancontext with parameters of type Class Modifier and Type Method Description booleanBeanContextServices. addService(Class<?> serviceClass, BeanContextServiceProvider serviceProvider)Adds a service to this BeanContext.booleanBeanContextServicesSupport. addService(Class<?> serviceClass, BeanContextServiceProvider bcsp)add a serviceprotected booleanBeanContextServicesSupport. addService(Class<?> serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent)add a serviceprotected static booleanBeanContextSupport. classEquals(Class<?> first, Class<?> second)Tests to see if two class objects, or their names are equal.protected BeanContextServicesSupport.BCSSServiceProviderBeanContextServicesSupport. createBCSSServiceProvider(Class<?> sc, BeanContextServiceProvider bcsp)subclasses can override this method to create new subclasses of BCSSServiceProvider without having to override addService() in order to instantiate.protected voidBeanContextServicesSupport. fireServiceAdded(Class<?> serviceClass)Fires aBeanContextServiceEventnotifying of a new service.protected voidBeanContextServicesSupport. fireServiceRevoked(Class<?> serviceClass, boolean revokeNow)Fires aBeanContextServiceRevokedEventindicating that a particular service is no longer available.Iterator<?>BeanContextServiceProvider. getCurrentServiceSelectors(BeanContextServices bcs, Class<?> serviceClass)Invoked byBeanContextServices, this method gets the current service selectors for the specified service.Iterator<?>BeanContextServices. getCurrentServiceSelectors(Class<?> serviceClass)Gets the list of service dependent service parameters (Service Selectors) for the specified service, by calling getCurrentServiceSelectors() on the underlying BeanContextServiceProvider.Iterator<?>BeanContextServicesSupport. getCurrentServiceSelectors(Class<?> serviceClass)ObjectBeanContextServiceProvider. getService(BeanContextServices bcs, Object requestor, Class<?> serviceClass, Object serviceSelector)Invoked byBeanContextServices, this method requests an instance of a service from thisBeanContextServiceProvider.ObjectBeanContextServices. getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)ABeanContextChild, or any arbitrary object associated with aBeanContextChild, may obtain a reference to a currently registered service from its nestingBeanContextServicesvia invocation of this method.ObjectBeanContextServicesSupport. getService(BeanContextChild child, Object requestor, Class<?> serviceClass, Object serviceSelector, BeanContextServiceRevokedListener bcsrl)obtain a service which may be delegatedbooleanBeanContextServices. hasService(Class<?> serviceClass)Reports whether or not a given service is currently available from this context.booleanBeanContextServicesSupport. hasService(Class<?> serviceClass)has a service, which may be delegatedbooleanBeanContextServiceRevokedEvent. isServiceClass(Class<?> service)Checks this event to determine whether or not the service being revoked is of a particular class.voidBeanContextServices. revokeService(Class<?> serviceClass, BeanContextServiceProvider serviceProvider, boolean revokeCurrentServicesNow)BeanContextServiceProviders wishing to remove a currently registered service from this context may do so via invocation of this method.voidBeanContextServicesSupport. revokeService(Class<?> serviceClass, BeanContextServiceProvider bcsp, boolean revokeCurrentServicesNow)remove a serviceConstructors in java.beans.beancontext with parameters of type Class Constructor Description BeanContextServiceAvailableEvent(BeanContextServices bcs, Class<?> sc)Construct aBeanContextAvailableServiceEvent.BeanContextServiceRevokedEvent(BeanContextServices bcs, Class<?> sc, boolean invalidate)Construct aBeanContextServiceEvent. -
Uses of Class in java.io
Methods in java.io that return Class Modifier and Type Method Description Class<?>ObjectStreamClass. forClass()Return the class in the local VM that this version is mapped to.Class<?>ObjectStreamField. getType()Get the type of the field.protected Class<?>ObjectInputStream. resolveClass(ObjectStreamClass desc)Load the local class equivalent of the specified stream class description.protected Class<?>ObjectInputStream. resolveProxyClass(String[] interfaces)Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.Class<?>ObjectInputFilter.FilterInfo. serialClass()The class of an object being deserialized.Methods in java.io with parameters of type Class Modifier and Type Method Description protected voidObjectOutputStream. annotateClass(Class<?> cl)Subclasses may implement this method to allow class data to be stored in the stream.protected voidObjectOutputStream. annotateProxyClass(Class<?> cl)Subclasses may implement this method to store custom data in the stream along with descriptors for dynamic proxy classes.static ObjectStreamClassObjectStreamClass. lookup(Class<?> cl)Find the descriptor for a class that can be serialized.static ObjectStreamClassObjectStreamClass. lookupAny(Class<?> cl)Returns the descriptor for any class, regardless of whether it implementsSerializable.Constructors in java.io with parameters of type Class Constructor Description ObjectStreamField(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 the given name and type. -
Uses of Class in java.lang
Fields in java.lang declared as Class Modifier and Type Field Description static Class<Boolean>Boolean. TYPEThe Class object representing the primitive type boolean.static Class<Byte>Byte. TYPETheClassinstance representing the primitive typebyte.static Class<Character>Character. TYPETheClassinstance representing the primitive typechar.static Class<Double>Double. TYPETheClassinstance representing the primitive typedouble.static Class<Float>Float. TYPETheClassinstance representing the primitive typefloat.static Class<Integer>Integer. TYPETheClassinstance representing the primitive typeint.static Class<Long>Long. TYPETheClassinstance representing the primitive typelong.static Class<Short>Short. TYPETheClassinstance representing the primitive typeshort.static Class<Void>Void. TYPETheClassobject representing the pseudo-type corresponding to the keywordvoid.Methods in java.lang that return Class Modifier and Type Method Description <U> Class<? extends U>Class. asSubclass(Class<U> cls)Cast this Class to a subclass of the specified Class.protected Class<?>ClassLoader. defineClass(byte[] classRep, int offset, int length)Deprecated.Use defineClass(String, byte[], int, int)protected Class<?>ClassLoader. defineClass(String className, byte[] classRep, int offset, int length)Constructs a new class from an array of bytes containing a class definition in class file format.protected Class<?>ClassLoader. defineClass(String className, byte[] classRep, int offset, int length, ProtectionDomain protectionDomain)Constructs a new class from an array of bytes containing a class definition in class file format and assigns the new class to the specified protection domain.protected Class<?>ClassLoader. defineClass(String name, ByteBuffer buffer, ProtectionDomain domain)Constructs a new class from an array of bytes containing a class definition in class file format and assigns the new class to the specified protection domain.Class<? extends Enum>EnumConstantNotPresentException. enumType()Returns the type of the missing enum constant.protected Class<?>ClassLoader. findClass(String className)Overridden by subclasses, by default throws ClassNotFoundException.protected Class<?>ClassLoader. findClass(String moduleName, String className)Overridden by subclasses that support the loading from modules.protected Class<?>ClassLoader. findLoadedClass(String className)Attempts to find and return a class which has already been loaded by the virtual machine.protected Class<?>ClassLoader. findSystemClass(String className)Attempts to load a class using the system class loader.static Class<?>Class. forName(Module module, String name)Answers a Class object which represents the class with the given name in the given module.static Class<?>Class. forName(String className)Answers a Class object which represents the class named by the argument.static Class<?>Class. forName(String className, boolean initializeBoolean, ClassLoader classLoader)Answers a Class object which represents the class named by the argument.Class<?>StackWalker. getCallerClass()Get the caller of the caller of this function, eliding any reflection or hidden frames.Class<? extends Object>Object. getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.protected Class<?>[]SecurityManager. getClassContext()Returns the current execution stack as an array of classes.Class<?>[]Class. getClasses()Answers an array containing all public class members of the class which the receiver represents and its superclasses and interfacesClass<?>Class. getComponentType()Answers a Class object which represents the receiver's component type if the receiver represents an array type.Class<?>[]Class. getDeclaredClasses()Answers an array containing all class members of the class which the receiver represents.Class<?>Class. getDeclaringClass()Answers the class which declared the class represented by the receiver.Class<E>Enum. getDeclaringClass()Returns the Class object corresponding to this enum constant's enum type.Class<?>StackWalker.StackFrame. getDeclaringClass()Class<?>Class. getEnclosingClass()Return the enclosing Class of this Class.Class<?>[]Class. getInterfaces()Answers an array of Class objects which match the interfaces specified in the receiver classesimplementsdeclarationClass<?>Class. getNestHost()Answers the host class of the receiver's nest.Class<?>[]Class. getNestMembers()Answers the nest member classes of the receiver's nest host.Class<? super T>Class. getSuperclass()Answers the Class which represents the receiver's superclass.Class<?>ClassLoader. loadClass(String className)Invoked by the Virtual Machine when resolving class references.protected Class<?>ClassLoader. loadClass(String className, boolean resolveClass)Attempts to load the typeclassNamein the running VM, optionally linking the type after a successful load.Methods in java.lang that return types with arguments of type Class Modifier and Type Method Description TypeVariable<Class<T>>[]Class. getTypeParameters()Answers an array of TypeVariable for the generic parameters declared on this Class.Methods in java.lang with parameters of type Class Modifier and Type Method Description ModuleModule. addUses(Class<?> service)If the caller's module is this module then update this module to add a service dependence on the given service type.<U> Class<? extends U>Class. asSubclass(Class<U> cls)Cast this Class to a subclass of the specified Class.booleanModule. canUse(Class<?> service)Indicates if this module has a service dependence on the given service type.static booleanCompiler. compileClass(Class<?> classToCompile)Deprecated, for removal: This API element is subject to removal in a future version.Compiles the class using the JIT compiler.protected abstract TClassValue. computeValue(Class<?> type)Computes the given class's derived value for thisClassValue.TClassValue. get(Class<?> type)Returns the value for the given class.<A extends Annotation>
AClass. getAnnotation(Class<A> annotation)Return the specified Annotation for this Class.<T extends Annotation>
TModule. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<A extends Annotation>
APackage. getAnnotation(Class<A> annotationClass)<A extends Annotation>
A[]Class. getAnnotationsByType(Class<A> annotationClass)Gets the specified type annotations of this class.<A extends Annotation>
A[]Package. getAnnotationsByType(Class<A> annotationClass)Constructor<T>Class. getConstructor(Class<?>... parameterTypes)Answers a public Constructor object which represents the constructor described by the arguments.<A extends Annotation>
AClass. getDeclaredAnnotation(Class<A> annotation)Looks through directly declared annotations for this class, not including Annotations inherited from superclasses.<A extends Annotation>
APackage. getDeclaredAnnotation(Class<A> annotationClass)<A extends Annotation>
A[]Class. getDeclaredAnnotationsByType(Class<A> annotationClass)Gets the specified type annotations of this class.<A extends Annotation>
A[]Package. getDeclaredAnnotationsByType(Class<A> annotationClass)Constructor<T>Class. getDeclaredConstructor(Class<?>... parameterTypes)Answers a Constructor object which represents the constructor described by the arguments.MethodClass. getDeclaredMethod(String name, Class<?>... parameterTypes)Answers a Method object which represents the method described by the arguments.MethodClass. getMethod(String name, Class<?>... parameterTypes)Answers a Method object which represents the method described by the arguments.booleanClass. isAnnotationPresent(Class<? extends Annotation> annotation)Answer if the specified Annotation exists for this Class.booleanPackage. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.booleanClass. isAssignableFrom(Class<?> cls)Answers true if the type represented by the argument can be converted via an identity conversion or a widening reference conversion (i.e. if either the receiver or the argument represent primitive types, only the identity conversion applies).booleanClass. isNestmateOf(Class<?> that)Returns true if the class passed has the same nest top as this class.voidClassValue. remove(Class<?> type)Removes the associated value for the given class.protected voidClassLoader. resolveClass(Class<?> clazz)Forces a class to be linked (initialized).protected voidClassLoader. setSigners(Class<?> c, Object[] signers)Sets the signers of a class.static <T extends Enum<T>>
TEnum. valueOf(Class<T> enumType, String name)Returns the enum constant of the specified enum type with the specified name.Constructors in java.lang with parameters of type Class Constructor Description EnumConstantNotPresentException(Class<? extends Enum> enumType, String constantName)Constructs anEnumConstantNotPresentExceptionfor the specified constant. -
Uses of Class in java.lang.annotation
Methods in java.lang.annotation that return Class Modifier and Type Method Description Class<? extends Annotation>Annotation. annotationType()Returns the annotation type of this annotation.Class<? extends Annotation>IncompleteAnnotationException. annotationType()Returns the Class object for the annotation type with the missing element.Class<? extends Annotation>value()Indicates the containing annotation type for the repeatable annotation type.Constructors in java.lang.annotation with parameters of type Class Constructor Description IncompleteAnnotationException(Class<? extends Annotation> annotationType, String elementName)Constructs an IncompleteAnnotationException to indicate that the named element was missing from the specified annotation type. -
Uses of Class in java.lang.instrument
Methods in java.lang.instrument that return Class Modifier and Type Method Description Class[]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 for whichloaderis an initiating loader.Methods in java.lang.instrument with parameters of type Class Modifier and Type Method Description booleanInstrumentation. isModifiableClass(Class<?> theClass)Tests whether a class is modifiable by retransformation or redefinition.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 in java.lang.instrument with parameters of type Class Constructor Description ClassDefinition(Class<?> theClass, byte[] theClassFile)Creates a newClassDefinitionbinding using the supplied class and class file bytes. -
Uses of Class in java.lang.invoke
Methods in java.lang.invoke that return Class Modifier and Type Method Description Class<?>MethodHandles.Lookup. accessClass(Class<?> targetClass)Tells whether the target class is accessible to the lookup class.Class<?>MethodHandles.Lookup. defineClass(byte[] classBytes)Return a class object with the same class loader, the same package and the same protection domain as the lookup's lookup class.Class<?>MethodHandles.Lookup. findClass(String targetName)Search the target class by class name via the lookup context.Class<?>MethodHandleInfo. getDeclaringClass()Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.Class<?>MethodType. lastParameterType()Return the last class in the parameterType array.Class<?>MethodHandles.Lookup. lookupClass()The class being used for visibility checks and access permissions.Class<?>[]MethodType. parameterArray()Helper method to return the parameter types in an array.Class<?>MethodType. parameterType(int position)Return the type of the parameter at position.static Class<?>ConstantBootstraps. primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type)Returns aClassmirror for the primitive type whose type descriptor is specified byname.Class<?>MethodType. returnType()Class<?>VarHandle. varType()Get the type of the field thisVarHandlerefers to.static Class<?>MethodHandleProxies. wrapperInstanceType(Object x)Recovers the unique single-method interface type for which this wrapper instance was created.Methods in java.lang.invoke that return types with arguments of type Class Modifier and Type Method Description List<Class<?>>VarHandle. coordinateTypes()List<Class<?>>MethodType. parameterList()Helper method to return the parameter types in a List.Methods in java.lang.invoke with parameters of type Class Modifier and Type Method Description Class<?>MethodHandles.Lookup. accessClass(Class<?> targetClass)Tells whether the target class is accessible to the lookup class.MethodTypeMethodType. appendParameterTypes(Class<?>... classes)Returns a MethodType with the additional class types appended to the end.static MethodHandleMethodHandles. arrayConstructor(Class<?> arrayType)Return a MethodHandle that produces an array of the requested type with the passed-in length.static MethodHandleMethodHandles. arrayElementGetter(Class<?> arrayType)Return a MethodHandle able to read from the array.static MethodHandleMethodHandles. arrayElementSetter(Class<?> arrayType)Return a MethodHandle able to write to the array.static VarHandleMethodHandles. arrayElementVarHandle(Class<?> arrayClass)Factory method for creating a VarHandle for accessing elements of an array.static MethodHandleMethodHandles. arrayLength(Class<?> arrayType)Return a MethodHandle that fetches the length from the passed-in array.static VarHandleConstantBootstraps. arrayVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> arrayClass)Finds aVarHandlefor an array type.MethodHandleMethodHandle. asCollector(int collectPosition, Class<?> arrayClass, int collectCount)Returns a MethodHandle that collects the requested incoming arguments, which must match the types in MethodType incomingArgs, into an array of arrayClass, called T.MethodHandleMethodHandle. asCollector(Class<?> arrayClass, int collectCount)Returns a MethodHandle that collects the requested incoming arguments, which must match the types in MethodType incomingArgs, into an array of arrayClass, called T.static <T> TMethodHandleProxies. asInterfaceInstance(Class<T> intfc, MethodHandle target)Produces an instance of the given single-method interface which redirects its calls to the given method handle.MethodHandleMethodHandle. asSpreader(int spreadPosition, Class<?> arrayClass, int spreadCount)Produce a MethodHandle that has an array of type arrayClass as its argument at the specified position and replaces the array with spreadCount arguments from the array before calling the original MethodHandle.MethodHandleMethodHandle. asSpreader(Class<?> arrayClass, int spreadCount)Produce a MethodHandle that has an array of type arrayClass as its last argument and replaces the array with spreadCount arguments from the array before calling the original MethodHandle.MethodHandleMethodHandle. asVarargsCollector(Class<?> arrayParameter)Create an varargs collector adapter on this MethodHandle.static VarHandleMethodHandles. byteArrayViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)Factory method for creating a VarHandle for accessing elements of a byte array using a view type.static VarHandleMethodHandles. byteBufferViewVarHandle(Class<?> viewArrayClass, ByteOrder byteOrder)Factory method for creating a VarHandle for accessing elements of aByteBufferusing a view type.static MethodHandleMethodHandles. catchException(MethodHandle tryHandle, Class<? extends Throwable> throwableClass, MethodHandle catchHandle)Produce a MethodHandle that implements a try-catch block.MethodTypeMethodType. changeParameterType(int position, Class<?> type)Convenience method to create a new MethodType with only the parameter at position changed to the new type.MethodTypeMethodType. changeReturnType(Class<?> type)Convenience method to create a new MethodType with a changed return type.static MethodHandleMethodHandles. constant(Class<?> returnType, Object constantValue)Create a MethodHandle that returns the constantValue on each invocation.static MethodHandleMethodHandles. dropArguments(MethodHandle originalHandle, int location, Class<?>... valueTypes)This method returns a method handle that delegates to the original method handle, ignoring a particular range of arguments (starting at a given location and with given types).static <E extends Enum<E>>
EConstantBootstraps. enumConstant(MethodHandles.Lookup lookup, String name, Class<E> type)Returns anenumconstant of the type specified bytypewith the name specified byname.static VarHandleConstantBootstraps. fieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType)Finds aVarHandlefor an instance field.MethodHandleMethodHandles.Lookup. findConstructor(Class<?> declaringClass, MethodType type)Return a MethodHandle that will create an object of the required class and initialize it using the constructor method with signature type.MethodHandleMethodHandles.Lookup. findGetter(Class<?> clazz, String fieldName, Class<?> fieldType)Return a MethodHandle that provides read access to a field.MethodHandleMethodHandles.Lookup. findSetter(Class<?> clazz, String fieldName, Class<?> fieldType)Return a MethodHandle that provides write access to a field.MethodHandleMethodHandles.Lookup. findSpecial(Class<?> clazz, String methodName, MethodType type, Class<?> specialToken)Return a MethodHandle bound to a specific-implementation of a virtual method, as if created by an invokespecial bytecode using the class specialToken.MethodHandleMethodHandles.Lookup. findStatic(Class<?> clazz, String methodName, MethodType type)Return a MethodHandle to a static method.MethodHandleMethodHandles.Lookup. findStaticGetter(Class<?> clazz, String fieldName, Class<?> fieldType)Return a MethodHandle that provides read access to a field.MethodHandleMethodHandles.Lookup. findStaticSetter(Class<?> clazz, String fieldName, Class<?> fieldType)Return a MethodHandle that provides write access to a field.VarHandleMethodHandles.Lookup. findStaticVarHandle(Class<?> definingClass, String name, Class<?> type)Factory method for obtaining a VarHandle referencing a static field.VarHandleMethodHandles.Lookup. findVarHandle(Class<?> definingClass, String name, Class<?> type)Factory method for obtaining a VarHandle referencing a non-static field.MethodHandleMethodHandles.Lookup. findVirtual(Class<?> clazz, String methodName, MethodType type)Return a MethodHandle to a virtual method.static ObjectConstantBootstraps. getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type)Returns the value of a static final field declared in the class which is the same as the field's type (or, for primitive-valued fields, declared in the wrapper class.)static ObjectConstantBootstraps. getStaticFinal(MethodHandles.Lookup lookup, String name, Class<?> type, Class<?> declaringClass)Returns the value of a static final field.static MethodHandleMethodHandles. identity(Class<?> classType)Produce a MethodHandle that acts as an identity function.MethodHandles.LookupMethodHandles.Lookup. in(Class<?> lookupClass)Create a lookup on the request class.MethodTypeMethodType. insertParameterTypes(int position, Class<?>... types)Return a new MethodType with an additional parameters inserted at position, which is a zero based index.static ObjectConstantBootstraps. invoke(MethodHandles.Lookup lookup, String name, Class<?> type, MethodHandle handle, Object... args)Returns the result of invoking a method handle with the provided arguments.static MethodTypeMethodType. methodType(Class<?> type)Create a MethodType object with the specified return type and no parametersstatic MethodTypeMethodType. methodType(Class<?> type, Class<?> parameter0)Return a MethodType object with the specified return type and a single parameter of type 'parameter0'.static MethodTypeMethodType. methodType(Class<?> returnType, Class<?>[] parameters)Return a MethodType object with the parameter and return types as requested.static MethodTypeMethodType. methodType(Class<?> type, Class<?> parameter0, Class<?>... parameters)Wrapper onMethodType.methodType(Class, Class[]).static MethodTypeMethodType. methodType(Class<?> returnType, MethodType methodType)Wrapper onMethodType.methodType(Class, Class[]).static MethodTypeMethodType. methodType(Class<?> type, List<Class<?>> parameters)Wrapper onMethodType.methodType(Class, Class[])static ObjectConstantBootstraps. nullConstant(MethodHandles.Lookup lookup, String name, Class<?> type)Returns anullobject reference for the reference type specified bytype.static Class<?>ConstantBootstraps. primitiveClass(MethodHandles.Lookup lookup, String name, Class<?> type)Returns aClassmirror for the primitive type whose type descriptor is specified byname.static MethodHandles.LookupMethodHandles. privateLookupIn(Class<?> targetClass, MethodHandles.Lookup callerLookup)Return a MethodHandles.Lookup object with full capabilities including the access to theprivatemembers in the requested class<T extends Member>
TMethodHandleInfo. reflectAs(Class<T> expected, MethodHandles.Lookup lookup)Reflects the underlying member as a Method, Field or Constructor.static <T extends Member>
TMethodHandles. reflectAs(Class<T> expected, MethodHandle target)Gets the underlying Member of the providedtargetMethodHandle.static VarHandleConstantBootstraps. staticFieldVarHandle(MethodHandles.Lookup lookup, String name, Class<VarHandle> type, Class<?> declaringClass, Class<?> fieldType)Finds aVarHandlefor a static field.static MethodHandleMethodHandles. throwException(Class<?> returnType, Class<? extends Throwable> exception)Return a MethodHandle that will throw the passed in Exception object.static StringMethodHandleInfo. toString(int kind, Class<?> defc, String name, MethodType type)Answers a string containing a concise, human-readable description of the receiver.MethodHandleMethodHandles.Lookup. unreflectSpecial(Method method, Class<?> specialToken)Return a MethodHandle for the Reflect method, that will directly call the requested method as through from the classspecialToken.static MethodHandleMethodHandles. zero(Class<?> targetType)Produces a constant method handle with the default value for the requested target type.Method parameters in java.lang.invoke with type arguments of type Class Modifier and Type Method Description MethodTypeMethodType. appendParameterTypes(List<Class<?>> classes)Returns a MethodType with the additional class types appended to the end.static MethodHandleMethodHandles. dropArguments(MethodHandle originalHandle, int location, List<Class<?>> valueTypes)This method returns a method handle that delegates to the original method handle, ignoring a particular range of arguments (starting at a given location and with given types).static MethodHandleMethodHandles. dropArgumentsToMatch(MethodHandle originalHandle, int skippedArgumentCount, List<Class<?>> valueTypes, int location)This method returns a method handle that delegates to the original method handle, skipping over a specified number of arguments at the given location.MethodTypeMethodType. insertParameterTypes(int position, List<Class<?>> types)Return a new MethodType with an additional parameters inserted at position, which is a zero based index.static MethodTypeMethodType. methodType(Class<?> type, List<Class<?>> parameters)Wrapper onMethodType.methodType(Class, Class[])Constructors in java.lang.invoke with parameters of type Class Constructor Description SerializedLambda(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 present at the lambda factory site. -
Uses of Class in java.lang.management
Methods in java.lang.management that return types with arguments of type Class Modifier and Type Method Description static Set<Class<? extends PlatformManagedObject>>ManagementFactory. getPlatformManagementInterfaces()Returns the set ofClassobjects, subinterface ofPlatformManagedObject, representing all management interfaces for monitoring and managing the Java platform.Methods in java.lang.management with parameters of type Class Modifier and Type Method Description static <T extends PlatformManagedObject>
TManagementFactory. getPlatformMXBean(Class<T> mxbeanInterface)Returns the platform MXBean implementing the givenmxbeanInterfacewhich is specified to have one single instance in the Java virtual machine.static <T extends PlatformManagedObject>
TManagementFactory. getPlatformMXBean(MBeanServerConnection connection, Class<T> mxbeanInterface)Returns the platform MXBean proxy formxbeanInterfacewhich is specified to have one single instance in a Java virtual machine and the proxy will forward the method calls through the givenMBeanServerConnection.static <T extends PlatformManagedObject>
List<T>ManagementFactory. getPlatformMXBeans(Class<T> mxbeanInterface)Returns the list of platform MXBeans implementing the givenmxbeanInterfacein the Java virtual machine.static <T extends PlatformManagedObject>
List<T>ManagementFactory. getPlatformMXBeans(MBeanServerConnection connection, Class<T> mxbeanInterface)Returns the list of the platform MXBean proxies for forwarding 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 given MXBean name that forwards its method calls through the givenMBeanServerConnection. -
Uses of Class in java.lang.reflect
Methods in java.lang.reflect that return Class Modifier and Type Method Description Class<T>Constructor. getDeclaringClass()Returns theClassobject representing the class that declares the constructor represented by this object.abstract Class<?>Executable. getDeclaringClass()Returns theClassobject representing the class or interface that declares the executable represented by this object.Class<?>Field. getDeclaringClass()Returns theClassobject representing the class or interface that declares the field represented by thisFieldobject.Class<?>Member. getDeclaringClass()Returns the Class object representing the class or interface that declares the member or constructor represented by this Member.Class<?>Method. getDeclaringClass()Returns theClassobject representing the class or interface that declares the method represented by this object.abstract Class<?>[]Executable. getExceptionTypes()Returns an array ofClassobjects that represent the types of exceptions declared to be thrown by the underlying executable represented by this object.abstract Class<?>[]Executable. getParameterTypes()Returns an array ofClassobjects that represent the formal parameter types, in declaration order, of the executable represented by this object.static Class<?>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 type of the method represented by thisMethodobject.Class<?>Field. getType()Returns aClassobject that identifies the declared type for the field represented by thisFieldobject.Class<?>Parameter. getType()Returns aClassobject that identifies the declared type for the parameter represented by thisParameterobject.Methods in java.lang.reflect with parameters of type Class Modifier and Type Method Description <T extends Annotation>
TAccessibleObject. getAnnotation(Class<T> annotationClass)<T extends Annotation>
TAnnotatedElement. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TConstructor. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TExecutable. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TField. getAnnotation(Class<T> annotationClass)<T extends Annotation>
TMethod. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
TParameter. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is present, else null.<T extends Annotation>
T[]AccessibleObject. getAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Executable. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Field. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
T[]Parameter. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element.<T extends Annotation>
TAccessibleObject. getDeclaredAnnotation(Class<T> annotationClass)default <T extends Annotation>
TAnnotatedElement. getDeclaredAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if such an annotation is directly present, else null.<T extends Annotation>
TParameter. getDeclaredAnnotation(Class<T> annotationClass)<T extends Annotation>
T[]AccessibleObject. getDeclaredAnnotationsByType(Class<T> annotationClass)default <T extends Annotation>
T[]AnnotatedElement. getDeclaredAnnotationsByType(Class<T> annotationClass)Returns this element's annotation(s) for the specified type if such annotations are either directly present or indirectly present.<T extends Annotation>
T[]Parameter. getDeclaredAnnotationsByType(Class<T> annotationClass)static Class<?>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<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.default booleanAnnotatedElement. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type is present on this element, else false.static booleanProxy. isProxyClass(Class<?> cl)Returns true if the given class is a proxy class.static ObjectArray. newInstance(Class<?> componentType, int size)Return a new array of the specified component type and length.static ObjectArray. newInstance(Class<?> componentType, int... dimensions)Return a new multidimensional array of the specified component type and dimensions.static ObjectProxy. newProxyInstance(ClassLoader loader, Class<?>[] interfaces, InvocationHandler h)Returns a proxy instance for the specified interfaces that dispatches method invocations to the specified invocation handler. -
Uses of Class in java.net
Methods in java.net that return Class Modifier and Type Method Description protected Class<?>URLClassLoader. findClass(String name)Finds and loads the class with the specified name from the URL search path.Class<T>SocketOption. type()Returns the type of the socket option value.Methods in java.net with parameters of type Class Modifier and Type Method Description ObjectContentHandler. getContent(URLConnection urlc, Class[] classes)Given a URL connect stream positioned at the beginning of the representation of an object, this method reads that stream and creates an object that matches one of the types specified.ObjectURL. getContent(Class<?>[] classes)Gets the contents of this URL.ObjectURLConnection. getContent(Class<?>[] classes)Retrieves the contents of this URL connection. -
Uses of Class in java.nio.file
Methods in java.nio.file that return Class Modifier and Type Method Description Class<T>WatchEvent.Kind. type()Returns the type of thecontextvalue.Methods in java.nio.file with parameters of type Class Modifier and Type Method Description static <V extends FileAttributeView>
VFiles. getFileAttributeView(Path path, Class<V> type, LinkOption... options)Returns a file attribute view of a given type.<V extends FileAttributeView>
VSecureDirectoryStream. getFileAttributeView(Class<V> type)Returns a new file attribute view to access the file attributes of this directory.<V extends FileAttributeView>
VSecureDirectoryStream. getFileAttributeView(T path, Class<V> type, LinkOption... options)Returns a new file attribute view to access the file attributes of a file in this directory.abstract <V extends FileStoreAttributeView>
VFileStore. getFileStoreAttributeView(Class<V> type)Returns aFileStoreAttributeViewof the given type.static <A extends BasicFileAttributes>
AFiles. readAttributes(Path path, Class<A> type, LinkOption... options)Reads a file's attributes as a bulk operation.abstract booleanFileStore. supportsFileAttributeView(Class<? extends FileAttributeView> type)Tells whether or not this file store supports the file attributes identified by the given file attribute view. -
Uses of Class in java.nio.file.spi
Methods in java.nio.file.spi with parameters of type Class Modifier and Type Method Description abstract <V extends FileAttributeView>
VFileSystemProvider. getFileAttributeView(Path path, Class<V> type, LinkOption... options)Returns a file attribute view of a given type.abstract <A extends BasicFileAttributes>
AFileSystemProvider. readAttributes(Path path, Class<A> type, LinkOption... options)Reads a file's attributes as a bulk operation. -
Uses of Class in java.rmi.server
Methods in java.rmi.server that return Class Modifier and Type Method Description Class<?>LoaderHandler. loadClass(String name)Deprecated.no replacementClass<?>LoaderHandler. loadClass(URL codebase, String name)Deprecated.no replacementstatic Class<?>RMIClassLoader. loadClass(String name)Deprecated.replaced byloadClass(String,String)methodstatic Class<?>RMIClassLoader. loadClass(String codebase, String name)Loads a class from a codebase URL path.static Class<?>RMIClassLoader. loadClass(String codebase, String name, ClassLoader defaultLoader)Loads a class from a codebase URL path, optionally using the supplied loader.static Class<?>RMIClassLoader. loadClass(URL codebase, String name)Loads a class from a codebase URL.abstract Class<?>RMIClassLoaderSpi. loadClass(String codebase, String name, ClassLoader defaultLoader)Provides the implementation forRMIClassLoader.loadClass(URL,String),RMIClassLoader.loadClass(String,String), andRMIClassLoader.loadClass(String,String,ClassLoader).static Class<?>RMIClassLoader. loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)Loads a dynamic proxy class (seeProxy) that implements a set of interfaces with the given names from a codebase URL path.abstract Class<?>RMIClassLoaderSpi. loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)Provides the implementation forRMIClassLoader.loadProxyClass(String,String[],ClassLoader).Methods in java.rmi.server with parameters of type Class Modifier and Type Method Description static StringRMIClassLoader. getClassAnnotation(Class<?> cl)Returns the annotation string (representing a location for the class definition) that RMI will use to annotate the class descriptor when marshalling objects of the given class.abstract StringRMIClassLoaderSpi. getClassAnnotation(Class<?> cl)Provides the implementation forRMIClassLoader.getClassAnnotation(Class). -
Uses of Class in java.security
Methods in java.security that return Class Modifier and Type Method Description protected Class<?>SecureClassLoader. defineClass(String name, byte[] b, int off, int len, CodeSource cs)Converts an array of bytes into an instance of class Class, with an optional CodeSource.protected Class<?>SecureClassLoader. defineClass(String name, ByteBuffer b, CodeSource cs)Converts aByteBufferinto an instance of classClass, with an optional CodeSource.Methods in java.security with parameters of type Class Modifier and Type Method Description booleanKeyStoreSpi. engineEntryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.protected abstract <T extends KeySpec>
TKeyFactorySpi. engineGetKeySpec(Key key, Class<T> keySpec)Returns a specification (key material) of the given key object.protected abstract <T extends AlgorithmParameterSpec>
TAlgorithmParametersSpi. engineGetParameterSpec(Class<T> paramSpec)Returns a (transparent) specification of this parameters object.booleanKeyStore. entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)Determines if the keystoreEntryfor the specifiedaliasis an instance or subclass of the specifiedentryClass.<T extends KeySpec>
TKeyFactory. getKeySpec(Key key, Class<T> keySpec)Returns a specification (key material) of the given key object.<T extends AlgorithmParameterSpec>
TAlgorithmParameters. getParameterSpec(Class<T> paramSpec)Returns a (transparent) specification of this parameter object. -
Uses of Class in java.sql
Methods in java.sql that return types with arguments of type Class Modifier and Type Method Description Map<String,Class<?>>Connection. getTypeMap()Retrieves theMapobject associated with thisConnectionobject.Methods in java.sql with parameters of type Class Modifier and Type Method Description <T> TCallableStatement. getObject(int parameterIndex, Class<T> type)Returns 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> TCallableStatement. getObject(String parameterName, Class<T> type)Returns 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> TResultSet. getObject(int columnIndex, Class<T> type)Retrieves 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> TResultSet. getObject(String columnLabel, Class<T> type)Retrieves 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 extends Source>
TSQLXML. getSource(Class<T> sourceClass)Returns 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 wrapper for 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 extends Result>
TSQLXML. setResult(Class<T> resultClass)Returns a Result for setting the XML value designated by this SQLXML instance.<T> TWrapper. unwrap(Class<T> iface)Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.Method parameters in java.sql with type arguments of type Class Modifier and Type Method Description ObjectArray. getArray(long index, int count, Map<String,Class<?>> map)Retrieves a slice of the SQLARRAYvalue designated by thisArrayobject, beginning with the specifiedindexand containing up tocountsuccessive elements of the SQL array.ObjectArray. getArray(Map<String,Class<?>> map)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 SQL structured type that thisStructobject represents.ObjectCallableStatement. getObject(int parameterIndex, Map<String,Class<?>> map)Returns an object representing the value of OUT parameterparameterIndexand usesmapfor the custom mapping of the parameter value.ObjectCallableStatement. getObject(String parameterName, Map<String,Class<?>> map)Returns an object representing the value of OUT parameterparameterNameand usesmapfor the custom mapping of the parameter value.ObjectRef. getObject(Map<String,Class<?>> map)Retrieves the referenced object and maps it to a Java type using the given type map.ObjectResultSet. getObject(int columnIndex, Map<String,Class<?>> map)Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.ObjectResultSet. getObject(String columnLabel, Map<String,Class<?>> map)Retrieves the value of the designated column in the current row of thisResultSetobject as anObjectin the Java programming language.ResultSetArray. getResultSet(long index, int count, Map<String,Class<?>> map)Retrieves a result set holding the elements of the subarray that starts at indexindexand contains up tocountsuccessive elements.ResultSetArray. 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 for thisConnectionobject. -
Uses of Class in java.util
Methods in java.util that return Class Modifier and Type Method Description Class<?>IllegalFormatConversionException. getArgumentClass()Returns the class of the mismatched argument.Class<? extends S>ServiceLoader.Provider. type()Returns the provider type.Methods in java.util with parameters of type Class Modifier and Type Method Description static <E extends Enum<E>>
EnumSet<E>EnumSet. allOf(Class<E> elementType)Creates an enum set containing all of the elements in the specified element type.static <E> 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[]Arrays. copyOf(U[] original, int newLength, Class<? extends T[]> newType)Copies the specified array, truncating or padding with nulls (if necessary) so the copy has the specified length.static <T,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>ServiceLoader. load(Class<S> service)Creates a new service loader for the given service type, using the current thread's context class loader.static <S> ServiceLoader<S>ServiceLoader. load(Class<S> service, ClassLoader loader)Creates a new service loader for the given service.static <S> ServiceLoader<S>ServiceLoader. load(ModuleLayer layer, Class<S> service)Creates a new service loader for the given service type to load service providers from modules in the given module layer and its ancestors.static <S> ServiceLoader<S>ServiceLoader. loadInstalled(Class<S> service)Creates a new service loader for the given service type, using the platform class loader.static <E extends Enum<E>>
EnumSet<E>EnumSet. noneOf(Class<E> elementType)Creates an empty enum set with the specified element type.Constructors in java.util with parameters of type Class Constructor Description EnumMap(Class<K> keyType)Creates an empty enum map with the specified key type.IllegalFormatConversionException(char c, Class<?> arg)Constructs an instance of this class with the mismatched conversion and the corresponding argument class. -
Uses of Class in java.util.concurrent.atomic
Methods in java.util.concurrent.atomic with parameters of type Class Modifier and Type Method Description static <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 of Class in java.util.prefs
Methods in java.util.prefs with parameters of type Class Modifier and Type Method Description static PreferencesPreferences. systemNodeForPackage(Class<?> c)Returns the preference node from the system preference tree that is associated (by convention) with the specified class's package.static PreferencesPreferences. userNodeForPackage(Class<?> c)Returns the preference node from the calling user's preference tree that is associated (by convention) with the specified class's package. -
Uses of Class in javax.annotation.processing
Methods in javax.annotation.processing with parameters of type Class Modifier and Type Method Description Set<? extends Element>RoundEnvironment. getElementsAnnotatedWith(Class<? extends Annotation> a)Returns the elements annotated with the given annotation type.Method parameters in javax.annotation.processing with type arguments of type Class Modifier and Type Method Description default Set<? extends Element>RoundEnvironment. getElementsAnnotatedWithAny(Set<Class<? extends Annotation>> annotations)Returns the elements annotated with one or more of the given annotation types. -
Uses of Class in javax.crypto
Methods in javax.crypto with parameters of type Class Modifier and Type Method Description protected abstract KeySpecSecretKeyFactorySpi. engineGetKeySpec(SecretKey key, Class<?> keySpec)Returns a specification (key material) of the given key object in the requested format.KeySpecSecretKeyFactory. getKeySpec(SecretKey key, Class<?> keySpec)Returns a specification (key material) of the given key object in the requested format. -
Uses of Class in javax.imageio.metadata
Methods in javax.imageio.metadata that return Class Modifier and Type Method Description Class<?>IIOMetadataFormat. getObjectClass(String elementName)Returns theClasstype of theObjectreference stored within the element.Methods in javax.imageio.metadata with parameters of type Class Modifier and Type Method Description protected voidIIOMetadataFormatImpl. addObjectValue(String elementName, Class<?> classType, int arrayMinLength, int arrayMaxLength)Allows anObjectreference of a given class type to 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 type to 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 type to be stored in nodes implementing the named element.protected <T extends Object & 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 type to be stored in nodes implementing the named element. -
Uses of Class in javax.imageio.spi
Fields in javax.imageio.spi declared as Class Modifier and Type Field Description protected Class<?>ImageInputStreamSpi. inputClassAClassobject indicating the legal object type for use by thecreateInputStreamInstancemethod.protected Class<?>[]ImageReaderSpi. inputTypesAn array ofClassobjects to be returned fromgetInputTypes, initiallynull.protected Class<?>ImageOutputStreamSpi. outputClassAClassobject indicating the legal object type for use by thecreateInputStreamInstancemethod.protected Class<?>[]ImageWriterSpi. outputTypesAn array ofClassobjects to be returned fromgetOutputTypes, initiallynull.static Class<?>[]ImageReaderSpi. STANDARD_INPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageInputStream.class }.static Class<?>[]ImageWriterSpi. STANDARD_OUTPUT_TYPEDeprecated.Instead of using this field, directly create the equivalent array{ ImageOutputStream.class }.Methods in javax.imageio.spi that return Class Modifier and Type Method Description Class<?>ImageInputStreamSpi. getInputClass()Returns aClassobject representing the class or interface type that must be implemented by an input source in order to be "wrapped" in anImageInputStreamvia thecreateInputStreamInstancemethod.Class<?>[]ImageReaderSpi. getInputTypes()Returns an array ofClassobjects indicating what types of objects may be used as arguments to the reader'ssetInputmethod.Class<?>ImageOutputStreamSpi. getOutputClass()Returns aClassobject representing the class or interface type that must be implemented by an output destination in order to be "wrapped" in anImageOutputStreamvia thecreateOutputStreamInstancemethod.Class<?>[]ImageWriterSpi. getOutputTypes()Returns an array ofClassobjects indicating what types of objects may be used as arguments to the writer'ssetOutputmethod.Methods in javax.imageio.spi that return types with arguments of type Class Modifier and Type Method Description Iterator<Class<?>>ServiceRegistry. getCategories()Returns anIteratorofClassobjects indicating the current set of categories.Methods in javax.imageio.spi with parameters of type Class Modifier and Type Method Description voidServiceRegistry. deregisterAll(Class<?> category)Deregisters all service provider object currently registered under 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 that is of the given class type.<T> Iterator<T>ServiceRegistry. getServiceProviders(Class<T> category, boolean useOrdering)Returns anIteratorcontaining all registered service providers in the given category.<T> Iterator<T>ServiceRegistry. getServiceProviders(Class<T> category, ServiceRegistry.Filter filter, boolean useOrdering)Returns anIteratorcontaining service provider objects within a given category that satisfy a criterion imposed by the suppliedServiceRegistry.Filterobject'sfiltermethod.static <T> Iterator<T>ServiceRegistry. lookupProviders(Class<T> providerClass)Locates and incrementally instantiates the available providers of 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 class using the given class loader.voidIIOServiceProvider. onDeregistration(ServiceRegistry registry, Class<?> category)A callback that will be whenever the Spi class has been deregistered from aServiceRegistry.voidRegisterableService. onDeregistration(ServiceRegistry registry, Class<?> category)Called when an object implementing this interface is removed from the givencategoryof the givenregistry.voidIIOServiceProvider. onRegistration(ServiceRegistry registry, Class<?> category)A callback that will be called exactly once after the Spi class has been instantiated and registered in aServiceRegistry.voidRegisterableService. onRegistration(ServiceRegistry registry, Class<?> category)Called when an object implementing this interface is added to the 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 objects within a given category.<T> booleanServiceRegistry. unsetOrdering(Class<T> category, T firstProvider, T secondProvider)Sets a pairwise ordering between two service provider objects within a given category.Constructors in javax.imageio.spi with parameters of type Class Constructor Description ImageInputStreamSpi(String vendorName, String version, Class<?> inputClass)Constructs anImageInputStreamSpiwith a given set of values.ImageOutputStreamSpi(String vendorName, String version, Class<?> outputClass)Constructs anImageOutputStreamSpiwith a given set 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 given set 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 given set of values.Constructor parameters in javax.imageio.spi with type arguments of type Class Constructor Description ServiceRegistry(Iterator<Class<?>> categories)Constructs aServiceRegistryinstance with a set of categories taken from thecategoriesargument. -
Uses of Class in javax.lang.model
Methods in javax.lang.model with parameters of type Class Modifier and Type Method Description <A extends Annotation>
AAnnotatedConstruct. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if such an annotation is present, elsenull.<A extends Annotation>
A[]AnnotatedConstruct. getAnnotationsByType(Class<A> annotationType)Returns annotations that are associated with this construct. -
Uses of Class in javax.lang.model.element
Methods in javax.lang.model.element with parameters of type Class Modifier and Type Method Description <A extends Annotation>
AElement. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if such an annotation is present, elsenull. -
Uses of Class in javax.management
Methods in javax.management that return Class Modifier and Type Method Description Class<?>StandardMBean. getImplementationClass()Get the class of the implementation of this Standard MBean (or MXBean).Class<?>StandardMBean. getMBeanInterface()Get the Management Interface of this Standard MBean (or MXBean).static Class<?>DefaultLoaderRepository. loadClass(String className)Deprecated.Go through the list of class loaders and try to load the requested class.static Class<?>DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class.Methods in javax.management with parameters of type Class Modifier and Type Method Description static 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 remote MBean 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 MBean Server 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 MBean Server 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 by forwarding its methods through the given MBean server to the named MBean.Constructors in javax.management with parameters of type Class Constructor Description StandardEmitterMBean(Class<?> mbeanInterface, boolean isMXBean, NotificationEmitter emitter)Make an MBean whose management interface is specified bymbeanInterface, and where notifications are handled by the givenNotificationEmitter.StandardEmitterMBean(Class<?> mbeanInterface, NotificationEmitter emitter)Make an MBean whose management interface is specified bymbeanInterface, and where notifications are handled by the givenNotificationEmitter.StandardEmitterMBean(T implementation, Class<T> mbeanInterface, boolean isMXBean, NotificationEmitter emitter)Make an MBean whose management interface is specified bymbeanInterface, with the given implementation and where notifications are handled by the givenNotificationEmitter.StandardEmitterMBean(T implementation, Class<T> mbeanInterface, NotificationEmitter emitter)Make an MBean whose management interface is specified bymbeanInterface, with the given implementation and where notifications are handled by the givenNotificationEmitter.StandardMBean(Class<?> mbeanInterface)Make a DynamicMBean out of this, using the specified mbeanInterface class.StandardMBean(Class<?> mbeanInterface, boolean isMXBean)Make a DynamicMBean out of this, using the specified mbeanInterface class, and choosing whether the resulting MBean is an MXBean.StandardMBean(T implementation, Class<T> mbeanInterface)Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class.StandardMBean(T implementation, Class<T> mbeanInterface, boolean isMXBean)Make a DynamicMBean out of the object implementation, using the specified mbeanInterface class, and choosing whether the resultant MBean is an MXBean. -
Uses of Class in javax.management.loading
Methods in javax.management.loading that return Class Modifier and Type Method Description protected Class<?>MLet. findClass(String name)This is the main method for class loaders that is being redefined.Class<?>ClassLoaderRepository. loadClass(String className)Load the given class name through the list of class loaders.static Class<?>DefaultLoaderRepository. loadClass(String className)Deprecated.Go through the list of class loaders and try to load the requested class.Class<?>MLet. loadClass(String name, ClassLoaderRepository clr)Load a class, using the givenClassLoaderRepositoryif the class is not found in this MLet's URLs.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.static Class<?>DefaultLoaderRepository. loadClassWithout(ClassLoader loader, String className)Deprecated.Go through the list of class loaders but exclude the given class loader, then try to load the requested class. -
Uses of Class in javax.management.openmbean
Methods in javax.management.openmbean with parameters of type Class Modifier and Type Method Description static <T> ArrayType<T>ArrayType. getPrimitiveArrayType(Class<T> arrayClass)Create anArrayTypeinstance in a type-safe manner. -
Uses of Class in javax.naming.spi
Methods in javax.naming.spi with parameters of type Class Modifier and Type Method Description ResolveResultResolver. resolveToClass(String name, Class<? extends Context> contextType)Partially resolves a name.ResolveResultResolver. resolveToClass(Name name, Class<? extends Context> contextType)Partially resolves a name. -
Uses of Class in javax.print
Methods in javax.print that return Class Modifier and Type Method Description Class<?>[]PrintService. getSupportedAttributeCategories()Determines the printing attribute categories a client can specify when setting up a job for this print service.Class<?>[]AttributeException. getUnsupportedAttributes()Returns the array of printing attribute classes for which the Print Service instance does not support the attribute at all, ornullif there are no such attributes.Methods in javax.print with parameters of type Class Modifier and Type Method Description <T extends PrintServiceAttribute>
TPrintService. getAttribute(Class<T> category)Gets the value of the single specified service attribute.ObjectPrintService. getDefaultAttributeValue(Class<? extends Attribute> category)Determines this print service's default printing attribute value in the given category.ObjectPrintService. getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)Determines the printing attribute values a client can specify in the given category when setting up a job for this print service.booleanPrintService. isAttributeCategorySupported(Class<? extends Attribute> category)Determines whether a client can specify the given printing attribute category when setting up a job for this print service. -
Uses of Class in javax.print.attribute
Methods in javax.print.attribute that return Class Modifier and Type Method Description Class<? extends Attribute>Attribute. 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.static Class<?>AttributeSetUtilities. verifyAttributeCategory(Object object, Class<?> interfaceName)Methods in javax.print.attribute with parameters of type Class Modifier and Type Method Description booleanAttributeSet. containsKey(Class<?> category)Returnstrueif this attribute set contains an attribute for the specified category.booleanHashAttributeSet. containsKey(Class<?> category)Returnstrueif this attribute set contains an attribute for the specified category.AttributeAttributeSet. get(Class<?> category)Returns the attribute value which this attribute set contains in the given attribute category.AttributeHashAttributeSet. get(Class<?> category)Returns the attribute value which this attribute set contains in the given attribute category.booleanAttributeSet. remove(Class<?> category)Removes any attribute for this category from this attribute set if present.booleanHashAttributeSet. remove(Class<?> category)Removes any attribute for this category from this attribute set if present.static Class<?>AttributeSetUtilities. verifyAttributeCategory(Object object, Class<?> interfaceName)static AttributeAttributeSetUtilities. verifyAttributeValue(Object object, Class<?> interfaceName)Verify that the given object is an instance of the given interface, which is assumed to be interfaceAttributeor a subinterface thereof.static voidAttributeSetUtilities. verifyCategoryForValue(Class<?> category, Attribute attribute)Verify that the given attribute category object is equal to the category of the given attribute value object.Constructors in javax.print.attribute with parameters of type Class Constructor Description HashAttributeSet(Class<?> interfaceName)Construct a new, empty attribute set, where the members of the attribute set are restricted to the given interface.HashAttributeSet(Attribute[] attributes, Class<?> interfaceName)Construct a new attribute set, where the members of the attribute set are restricted to the given interface.HashAttributeSet(Attribute attribute, Class<?> interfaceName)Construct a new attribute set, initially populated with the given attribute, where the members of the attribute set are restricted to the given interface.HashAttributeSet(AttributeSet attributes, Class<?> interfaceName)Construct a new attribute set, initially populated with the values from the given set where the members of the attribute set are restricted to the given interface. -
Uses of Class in javax.print.attribute.standard
Methods in javax.print.attribute.standard that return Class Modifier and Type Method Description Class<? extends Attribute>Chromaticity. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>ColorSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Compression. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Copies. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>CopiesSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DateTimeAtCompleted. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DateTimeAtCreation. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DateTimeAtProcessing. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Destination. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DialogOwner. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DialogTypeSelection. getCategory()Gets the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>DocumentName. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Fidelity. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Finishings. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobHoldUntil. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobImpressions. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobImpressionsCompleted. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobImpressionsSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobKOctets. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobKOctetsProcessed. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobKOctetsSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobMediaSheets. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobMediaSheetsCompleted. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobMediaSheetsSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobMessageFromOperator. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobName. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobOriginatingUserName. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobPriority. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobPrioritySupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobSheets. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobState. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobStateReason. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>JobStateReasons. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Media. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>MediaPrintableArea. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>MediaSize. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>MultipleDocumentHandling. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>NumberOfDocuments. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>NumberOfInterveningJobs. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>NumberUp. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>NumberUpSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>OrientationRequested. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>OutputDeviceAssigned. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PageRanges. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PagesPerMinute. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PagesPerMinuteColor. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PDLOverrideSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PresentationDirection. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterInfo. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterIsAcceptingJobs. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterLocation. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterMakeAndModel. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterMessageFromOperator. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterMoreInfo. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterMoreInfoManufacturer. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterName. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterResolution. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterState. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterStateReason. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterStateReasons. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrinterURI. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>PrintQuality. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>QueuedJobCount. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>ReferenceUriSchemesSupported. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>RequestingUserName. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Severity. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>SheetCollate. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.Class<? extends Attribute>Sides. getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value. -
Uses of Class in javax.script
Methods in javax.script with parameters of type Class Modifier and Type Method Description <T> TInvocable. getInterface(Class<T> clasz)Returns an implementation of an interface using functions compiled in the interpreter.<T> TInvocable. getInterface(Object thiz, Class<T> clasz)Returns an implementation of an interface using member functions of a scripting object compiled in the interpreter. -
Uses of Class in javax.security.auth
Methods in javax.security.auth with parameters of type Class Modifier and Type Method Description <T extends Principal>
Set<T>Subject. 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 of Class in javax.sound.midi
Methods in javax.sound.midi that return Class Modifier and Type Method Description Class<?>SoundbankResource. getDataClass()Obtains the class used by this sample to represent its data.Constructors in javax.sound.midi with parameters of type Class Constructor Description Instrument(Soundbank soundbank, Patch patch, String name, Class<?> dataClass)Constructs a new MIDI instrument from the specifiedPatch.SoundbankResource(Soundbank soundBank, String name, Class<?> dataClass)Constructs a newSoundbankResourcefrom the given sound bank and wavetable index. -
Uses of Class in javax.sound.sampled
Methods in javax.sound.sampled that return Class Modifier and Type Method Description Class<?>Line.Info. getLineClass()Obtains the class of the line that thisLine.Infoobject describes.Constructors in javax.sound.sampled with parameters of type Class Constructor Description Info(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 the buffer 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.Info(Class<?> lineClass)Constructs an info object that describes a line of the specified class.Info(Class<?> lineClass, String name, boolean isSource)Constructs a port's info object from the information given. -
Uses of Class in javax.sql
Methods in javax.sql that return types with arguments of type Class Modifier and Type Method Description Map<String,Class<?>>RowSet. getTypeMap()Retrieves theMapobject associated with thisRowSetobject, which specifies the custom mapping of SQL user-defined types, if any.Method parameters in javax.sql with type arguments of type Class Modifier and Type Method Description voidRowSet. setTypeMap(Map<String,Class<?>> map)Installs the givenjava.util.Mapobject as the default type map for thisRowSetobject. -
Uses of Class in javax.sql.rowset
Methods in javax.sql.rowset that return types with arguments of type Class Modifier and Type Method Description Map<String,Class<?>>BaseRowSet. getTypeMap()Retrieves the type map associated with theConnectionobject for thisRowSetobject.Methods in javax.sql.rowset with parameters of type Class Modifier and Type Method Description booleanRowSetMetaDataImpl. isWrapperFor(Class<?> interfaces)Returns true if this either implements the interface argument or is directly or indirectly a wrapper for an object that does.<T> TRowSetMetaDataImpl. unwrap(Class<T> iface)Returns an object that implements the given interface to allow access to non-standard methods, or standard methods not exposed by the proxy.Method parameters in javax.sql.rowset with type arguments of type Class Modifier and Type Method Description voidBaseRowSet. setTypeMap(Map<String,Class<?>> map)Installs the givenjava.util.Mapobject as the type map associated with theConnectionobject for thisRowSetobject. -
Uses of Class in javax.sql.rowset.serial
Method parameters in javax.sql.rowset.serial with type arguments of type Class Modifier and Type Method Description ObjectSerialArray. getArray(long index, int count, Map<String,Class<?>> map)Returns a new array that is a copy of a slice of thisSerialArrayobject, starting with the element at the given index and containing the given number of consecutive elements.ObjectSerialArray. getArray(Map<String,Class<?>> map)Returns a new array that is a copy of thisSerialArrayobject, using the given type map for the custom mapping of each element when the elements are SQL UDTs.Object[]SerialStruct. getAttributes(Map<String,Class<?>> map)Retrieves the attributes for the SQL structured type that thisSerialStructrepresents as an array ofObjectvalues, using the given type map for custom mapping if appropriate.ObjectSerialRef. getObject(Map<String,Class<?>> map)Returns anObjectrepresenting the SQL structured type to which thisSerialRefobject refers.ResultSetSerialArray. getResultSet(long index, int count, Map<String,Class<?>> map)Retrieves a result set holding the elements of the subarray that starts at Retrieves aResultSetobject that contains a subarray of the elements in thisSerialArrayobject, starting at index index and containing up to count successive elements.ResultSetSerialArray. getResultSet(Map<String,Class<?>> map)Retrieves aResultSetobject that contains all of the elements of the SQLARRAYvalue represented by thisSerialArrayobject.Constructor parameters in javax.sql.rowset.serial with type arguments of type Class Constructor Description SerialArray(Array array, Map<String,Class<?>> map)Constructs a newSerialArrayobject from the givenArrayobject, using the given type map for the custom mapping of each element when the elements are SQL UDTs.SerialStruct(SQLData in, Map<String,Class<?>> map)Constructs aSerialStructobject from the givenSQLDataobject, using the given type map to custom map it to a class in the Java programming language.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 its attributes that are SQL structured types.SQLInputImpl(Object[] attributes, Map<String,Class<?>> map)Creates anSQLInputImplobject initialized with the given array of attributes and the given type map. -
Uses of Class in javax.swing
Methods in javax.swing that return Class Modifier and Type Method Description Class<?>JTable. getColumnClass(int column)Returns the type of the column appearing in the view at column positioncolumn.Class<? extends ComponentUI>UIDefaults. getUIClass(String uiClassID)Returns the L&F class that renders this component.Class<? extends ComponentUI>UIDefaults. getUIClass(String uiClassID, ClassLoader uiClassLoader)The value ofget(uidClassID)must be theStringname of a class that implements the correspondingComponentUIclass.Methods in javax.swing with parameters of type Class Modifier and Type Method Description static ContainerSwingUtilities. getAncestorOfClass(Class<?> c, Component comp)Convenience method for searching abovecompin the component hierarchy and returns the first object of classcit finds.TableCellEditorJTable. getDefaultEditor(Class<?> columnClass)Returns the editor to be used when no editor has been set in aTableColumn.TableCellRendererJTable. getDefaultRenderer(Class<?> columnClass)Returns the cell renderer to be used when no renderer has been set in aTableColumn.<T extends EventListener>
T[]AbstractListModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]AbstractSpinnerModel. getListeners(Class<T> listenerType)Return an array of all the listeners of the given type that were added to this model.<T extends EventListener>
T[]DefaultBoundedRangeModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]DefaultButtonModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]DefaultListSelectionModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]DefaultSingleSelectionModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]JComponent. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisJComponent.<T extends EventListener>
T[]Timer. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisTimer.static ObjectLookAndFeel. makeIcon(Class<?> baseClass, String gifFile)Creates and returns aUIDefault.LazyValuethat loads an image.voidJTable. setDefaultEditor(Class<?> columnClass, TableCellEditor editor)Sets a default cell editor to be used if no editor has been set in aTableColumn.voidJTable. setDefaultRenderer(Class<?> columnClass, TableCellRenderer renderer)Sets a default cell renderer to be used if no renderer has been set in aTableColumn. -
Uses of Class in javax.swing.event
Methods in javax.swing.event with parameters of type Class Modifier and Type Method Description <T extends EventListener>
voidEventListenerList. add(Class<T> t, T l)Adds the listener as a listener of the specified type.intEventListenerList. getListenerCount(Class<?> t)Returns the total number of listeners of the supplied type for this listener list.<T extends EventListener>
T[]EventListenerList. getListeners(Class<T> t)Return an array of all the listeners of the given type.<T extends EventListener>
voidEventListenerList. remove(Class<T> t, T l)Removes the listener as a listener of the specified type. -
Uses of Class in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type Class Modifier and Type Method Description voidSynthLookAndFeel. load(InputStream input, Class<?> resourceBase)Loads the set ofSynthStyles that will be used by thisSynthLookAndFeel. -
Uses of Class in javax.swing.table
Methods in javax.swing.table that return Class Modifier and Type Method Description Class<?>AbstractTableModel. getColumnClass(int columnIndex)ReturnsObject.classregardless ofcolumnIndex.Class<?>TableModel. getColumnClass(int columnIndex)Returns the most specific superclass for all the cell values in the column.Methods in javax.swing.table with parameters of type Class Modifier and Type Method Description <T extends EventListener>
T[]AbstractTableModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon thisAbstractTableModel.<T extends EventListener>
T[]DefaultTableColumnModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model. -
Uses of Class in javax.swing.text
Methods in javax.swing.text that return Class Modifier and Type Method Description Class<?>DefaultFormatter. getValueClass()Returns that class that is used to create new Objects.Methods in javax.swing.text with parameters of type Class Modifier and Type Method Description <T extends EventListener>
T[]AbstractDocument. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this document.<T extends EventListener>
T[]DefaultCaret. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this caret.<T extends EventListener>
T[]StyleContext.NamedStyle. getListeners(Class<T> listenerType)Return an array of all the listeners of the given type that were added to this model.voidDefaultFormatter. setValueClass(Class<?> valueClass)Sets that class that is used to create new Objects. -
Uses of Class in javax.swing.tree
Methods in javax.swing.tree with parameters of type Class Modifier and Type Method Description <T extends EventListener>
T[]DefaultTreeModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model.<T extends EventListener>
T[]DefaultTreeSelectionModel. getListeners(Class<T> listenerType)Returns an array of all the objects currently registered asFooListeners upon this model. -
Uses of Class in javax.tools
Methods in javax.tools with parameters of type Class Modifier and Type Method Description <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.DocumentationTaskDocumentationTool. getTask(Writer out, JavaFileManager fileManager, DiagnosticListener<? super JavaFileObject> diagnosticListener, Class<?> docletClass, Iterable<String> options, Iterable<? extends JavaFileObject> compilationUnits)Creates a future for a documentation task with the given components and arguments. -
Uses of Class in javax.xml.xpath
Methods in javax.xml.xpath with parameters of type Class Modifier and Type Method Description default <T> TXPath. evaluateExpression(String expression, Object item, Class<T> type)Evaluate an XPath expression in the specified context and return the 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 return the 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 typestatic QNameXPathEvaluationResult.XPathResultType. getQNameType(Class<?> clsType)Returns the QName type as specified inXPathConstantsthat corresponds to the specified class type. -
Uses of Class in jdk.dynalink.beans
Methods in jdk.dynalink.beans that return Class Modifier and Type Method Description Class<?>StaticClass. getRepresentedClass()Returns the represented Java class.Methods in jdk.dynalink.beans with parameters of type Class Modifier and Type Method Description static StaticClassStaticClass. forClass(Class<?> clazz)Retrieves theStaticClassinstance for the specified class.static ObjectBeansLinker. getConstructorMethod(Class<?> clazz, String signature)Return the dynamic method of constructor of the given class and the given signature.static Set<String>BeansLinker. getInstanceMethodNames(Class<?> clazz)Returns a set of names of all instance methods of a class.TypeBasedGuardingDynamicLinkerBeansLinker. getLinkerForClass(Class<?> clazz)Returns a bean linker for a particular single class.static Set<String>BeansLinker. getReadableInstancePropertyNames(Class<?> clazz)Returns a set of names of all readable instance properties of a class.static Set<String>BeansLinker. getReadableStaticPropertyNames(Class<?> clazz)Returns a set of names of all readable static properties of a class.static Set<String>BeansLinker. getStaticMethodNames(Class<?> clazz)Returns a set of names of all static methods of a class.static Set<String>BeansLinker. getWritableInstancePropertyNames(Class<?> clazz)Returns a set of names of all writable instance properties of a class.static Set<String>BeansLinker. getWritableStaticPropertyNames(Class<?> clazz)Returns a set of names of all writable static properties of a class. -
Uses of Class in jdk.dynalink.linker
Methods in jdk.dynalink.linker that return Class Modifier and Type Method Description Class<? extends Throwable>GuardedInvocation. getException()Returns the exception type that if thrown by the invocation should invalidate the linkage of this guarded invocation.Methods in jdk.dynalink.linker with parameters of type Class Modifier and Type Method Description booleanLinkerServices. canConvert(Class<?> from, Class<?> to)Returns true if there might exist a conversion between the requested types (either an automatic JVM conversion, or one provided by any availableGuardingTypeConverterFactory), or false if there definitely 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.ComparisonConversionComparator. compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2)Determines which of the two target types is the preferred conversion target from a source type.ConversionComparator.ComparisonLinkerServices. compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2)Determines which of the two type conversions from a source type to the two target types is preferred.GuardedInvocationGuardingTypeConverterFactory. convertToType(Class<?> sourceType, Class<?> targetType, Supplier<MethodHandles.Lookup> lookupSupplier)Returns a guarded type conversion that receives a value of the specified source type and returns a value converted to the specified target type.GuardedInvocationGuardedInvocation. dropArguments(int pos, Class<?>... valueTypes)Makes an invocation that drops arguments in both the invocation and the guard (if it exists and has at leastposparameters) withMethodHandles.dropArguments(MethodHandle, int, Class...).MethodHandleLinkerServices. getTypeConverter(Class<?> sourceType, Class<?> targetType)Given a source and target type, returns a method handle that converts between them.Method parameters in jdk.dynalink.linker with type arguments of type Class Modifier and Type Method Description GuardedInvocationGuardedInvocation. dropArguments(int pos, List<Class<?>> valueTypes)Makes an invocation that drops arguments in both the invocation and the guard (if it exists and has at leastposparameters) withMethodHandles.dropArguments(MethodHandle, int, List).Constructors in jdk.dynalink.linker with parameters of type Class Constructor Description GuardedInvocation(MethodHandle invocation, MethodHandle guard, SwitchPoint[] switchPoints, Class<? extends Throwable> exception)Creates a new guarded invocation, with a guard method handle, any number of switch points that can be used to invalidate it, and an exception that if thrown when invoked also invalidates it.GuardedInvocation(MethodHandle invocation, MethodHandle guard, SwitchPoint switchPoint, Class<? extends Throwable> exception)Creates a new guarded invocation, with a guard method handle, a switch point that can be used to invalidate it, and an exception that if thrown when invoked also invalidates it. -
Uses of Class in jdk.dynalink.linker.support
Methods in jdk.dynalink.linker.support that return Class Modifier and Type Method Description static Class<?>TypeUtilities. getPrimitiveType(Class<?> wrapperType)When passed a class representing a wrapper for a primitive type, returns the class representing the corresponding primitive type.static Class<?>TypeUtilities. getPrimitiveTypeByName(String name)Given a name of a primitive type returns the class representing it.static Class<?>TypeUtilities. getWrapperType(Class<?> primitiveType)When passed a class representing a primitive type, returns the class representing the corresponding wrapper type.Methods in jdk.dynalink.linker.support with parameters of type Class Modifier and Type Method Description booleanCompositeTypeBasedGuardingDynamicLinker. canLinkType(Class<?> type)Returns true if at least one of the composite linkers returns true fromTypeBasedGuardingDynamicLinker.canLinkType(Class)for the type.MethodHandleLookup. findGetter(Class<?> refc, String name, Class<?> type)Performs aMethodHandles.Lookup.findGetter(Class, String, Class), converting any encounteredIllegalAccessExceptioninto anIllegalAccessErrorandNoSuchFieldExceptioninto aNoSuchFieldError.static MethodHandleLookup. 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.MethodHandleLookup. findOwnSpecial(String name, Class<?> rtype, Class<?>... ptypes)Finds usingLookup.findSpecial(Class, String, MethodType)a method on that lookup's class.static MethodHandleLookup. 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.MethodHandleLookup. findOwnStatic(String name, Class<?> rtype, Class<?>... ptypes)Finds usingLookup.findStatic(Class, String, MethodType)a method on that lookup's class.MethodHandleLookup. findSpecial(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findSpecial(Class, String, MethodType, Class)on the underlying lookup.MethodHandleLookup. findStatic(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findStatic(Class, String, MethodType)on the underlying lookup.MethodHandleLookup. findVirtual(Class<?> declaringClass, String name, MethodType type)Performs aMethodHandles.Lookup.findVirtual(Class, String, MethodType)on the underlying lookup.static MethodHandleGuards. getClassGuard(Class<?> clazz)Creates a guard method that tests its only argument for being of an exact particular class.static MethodHandleGuards. getInstanceOfGuard(Class<?> clazz)Creates a guard method that tests its only argument for being an instance of a particular class.static Class<?>TypeUtilities. getPrimitiveType(Class<?> wrapperType)When passed a class representing a wrapper for a primitive type, returns the class representing the corresponding primitive type.static Class<?>TypeUtilities. getWrapperType(Class<?> primitiveType)When passed a class representing a primitive type, returns the class representing the corresponding wrapper type.static booleanTypeUtilities. isConvertibleWithoutLoss(Class<?> sourceType, Class<?> targetType)Determines whether a type can be converted to another without losing any precision.static MethodHandleGuards. isInstance(Class<?> clazz, int pos, MethodType type)Creates a method handle with arguments of a specified type, but with boolean return value.static MethodHandleGuards. 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".static MethodHandleGuards. isOfClass(Class<?> clazz, MethodType type)Creates a guard method handle with arguments of a specified type, but with boolean return value.static booleanTypeUtilities. isSubtype(Class<?> subType, Class<?> superType)Determines whether one type is a subtype of another type, as per JLS 4.10 "Subtyping".static booleanTypeUtilities. isWrapperType(Class<?> type)Returns true if the passed type is a wrapper for a primitive type. -
Uses of Class in jdk.jfr
Methods in jdk.jfr with parameters of type Class Modifier and Type Method Description static voidFlightRecorder. addPeriodicEvent(Class<? extends Event> eventClass, Runnable hook)Adds a hook for a periodic event.EventSettingsRecording. disable(Class<? extends Event> eventClass)Disables event.EventSettingsRecording. enable(Class<? extends Event> eventClass)Enables event.<A> AAnnotationElement. getAnnotation(Class<? extends Annotation> annotationType)Returns the first annotation for the specified type if anAnnotationElementwith the same name exists, elsenull.<A extends Annotation>
AEventType. getAnnotation(Class<A> annotationClass)Returns the first annotation for the specified type if an annotation element with the same name is directly present, otherwisenull.<A extends Annotation>
ASettingDescriptor. getAnnotation(Class<A> annotationType)Returns the first annotation for the specified type if an annotation element with the same name is available,nullotherwise.<A extends Annotation>
AValueDescriptor. getAnnotation(Class<A> annotationType)Returns the first annotation for the specified type if an annotation element with the same name is directly present for this value descriptor,nullotherwise.static EventTypeEventType. getEventType(Class<? extends Event> eventClass)Returns the event type for an event class, ornullif it doesn't exist.static voidFlightRecorder. register(Class<? extends Event> eventClass)Registers an event class.static voidFlightRecorder. unregister(Class<? extends Event> eventClass)Unregisters an event class.Constructors in jdk.jfr with parameters of type Class Constructor Description AnnotationElement(Class<? extends Annotation> annotationType)Creates an annotation element to use for dynamically defined events.AnnotationElement(Class<? extends Annotation> annotationType, Object value)Creates an annotation element to use for dynamically defined events.AnnotationElement(Class<? extends Annotation> 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 and annotations.ValueDescriptor(Class<?> type, String name, List<AnnotationElement> annotations)Constructs a value descriptor, useful for dynamically creating event types and annotations. -
Uses of Class in jdk.jshell.execution
Methods in jdk.jshell.execution that return Class Modifier and Type Method Description protected Class<?>DirectExecutionControl. findClass(String name)Finds the class with the specified binary name.Class<?>LoaderDelegate. findClass(String name)Finds the class with the specified binary name. -
Uses of Class in jdk.nashorn.api.scripting
Methods in jdk.nashorn.api.scripting with parameters of type Class Modifier and Type Method Description static ObjectAbstractJSObject. getDefaultValue(JSObject jsobj, Class<?> hint)Deprecated.useJSObject.getDefaultValue(Class)instead.default ObjectJSObject. getDefaultValue(Class<?> hint)Deprecated, for removal: This API element is subject to removal in a future version.Implements this object's[[DefaultValue]]method as per ECMAScript 5.1 section 8.6.2.<T> TScriptObjectMirror. to(Class<T> type)Deprecated, for removal: This API element is subject to removal in a future version.Utility to convert this script object to the given type. -
Uses of Class in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree that return Class Modifier and Type Method Description Class<? extends Tree>Tree.Kind. asInterface()Deprecated, for removal: This API element is subject to removal in a future version.Returns the associated interface type that uses this kind. -
Uses of Class in jdk.net
Methods in jdk.net with parameters of type Class Modifier and Type Method Description static Set<SocketOption<?>>Sockets. supportedOptions(Class<?> socketType)Returns a set ofSocketOptions supported by the given socket type.
-