| Package | Description | 
|---|---|
| java.beans | Contains classes related to developing
beans -- components
based on the JavaBeans™ architecture. | 
| 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.reflect | Provides classes and interfaces for obtaining reflective
 information about classes and objects. | 
| javax.annotation | |
| javax.annotation.processing | Facilities for declaring annotation processors and for
 allowing annotation processors to communicate with an annotation processing
 tool environment. | 
| javax.jws | |
| javax.jws.soap | |
| 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.xml.bind.annotation | 
        Defines annotations for customizing Java program elements to XML Schema mapping. | 
| javax.xml.bind.annotation.adapters | XmlAdapterand its spec-defined
        sub-classes to allow arbitrary Java classes to be used with JAXB. | 
| javax.xml.ws | This package contains the core JAX-WS APIs. | 
| javax.xml.ws.soap | This package defines APIs specific to the SOAP binding. | 
| javax.xml.ws.spi | This package defines SPIs for JAX-WS. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | ConstructorPropertiesAn annotation on a constructor that shows how the parameters of
   that constructor correspond to the constructed object's getter
   methods. | 
| interface  | TransientIndicates that an attribute called "transient"
 should be declared with the given  valuewhen theIntrospectorconstructs
 aPropertyDescriptororEventSetDescriptorclasses associated with the annotated code element. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | DeprecatedA program element annotated @Deprecated is one that programmers
 are discouraged from using, typically because it is dangerous,
 or because a better alternative exists. | 
| interface  | FunctionalInterfaceAn informative annotation type used to indicate that an interface
 type declaration is intended to be a functional interface as
 defined by the Java Language Specification. | 
| interface  | OverrideIndicates that a method declaration is intended to override a
 method declaration in a supertype. | 
| interface  | SafeVarargsA programmer assertion that the body of the annotated method or
 constructor does not perform potentially unsafe operations on its
 varargs parameter. | 
| interface  | SuppressWarningsIndicates that the named compiler warnings should be suppressed in the
 annotated element (and in all program elements contained in the annotated
 element). | 
| Modifier and Type | Method and Description | 
|---|---|
| <A extends Annotation> | Class. getAnnotation(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getAnnotation(Class<A> annotationClass) | 
| <A extends Annotation> | Class. getAnnotationsByType(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getAnnotationsByType(Class<A> annotationClass) | 
| <A extends Annotation> | Class. getDeclaredAnnotation(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getDeclaredAnnotation(Class<A> annotationClass) | 
| <A extends Annotation> | Class. getDeclaredAnnotationsByType(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getDeclaredAnnotationsByType(Class<A> annotationClass) | 
| Modifier and Type | Method and Description | 
|---|---|
| Annotation[] | Class. getAnnotations() | 
| Annotation[] | Package. getAnnotations() | 
| <A extends Annotation> | Class. getAnnotationsByType(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getAnnotationsByType(Class<A> annotationClass) | 
| Annotation[] | Class. getDeclaredAnnotations() | 
| Annotation[] | Package. getDeclaredAnnotations() | 
| <A extends Annotation> | Class. getDeclaredAnnotationsByType(Class<A> annotationClass) | 
| <A extends Annotation> | Package. getDeclaredAnnotationsByType(Class<A> annotationClass) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | Class. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type
 is present on this element, else false. | 
| boolean | Package. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type
 is present on this element, else false. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | DocumentedIndicates that annotations with a type are to be documented by javadoc
 and similar tools by default. | 
| interface  | InheritedIndicates that an annotation type is automatically inherited. | 
| interface  | NativeIndicates that a field defining a constant value may be referenced
 from native code. | 
| interface  | RepeatableThe annotation type  java.lang.annotation.Repeatableis
 used to indicate that the annotation type whose declaration it
 (meta-)annotates is repeatable. | 
| interface  | RetentionIndicates how long annotations with the annotated type are to
 be retained. | 
| interface  | TargetIndicates the contexts in which an annotation type is applicable. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<? extends Annotation> | IncompleteAnnotationException. annotationType()Returns the Class object for the annotation type with the
 missing element. | 
| Class<? extends Annotation> | Annotation. annotationType()Returns the annotation type of this annotation. | 
| Constructor and Description | 
|---|
| IncompleteAnnotationException(Class<? extends Annotation> annotationType,
                             String elementName)Constructs an IncompleteAnnotationException to indicate that
 the named element was missing from the specified annotation type. | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends Annotation> | Constructor. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if
 such an annotation is present, else null. | 
| <T extends Annotation> | Executable. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if
 such an annotation is present, else null. | 
| <T extends Annotation> | AccessibleObject. getAnnotation(Class<T> annotationClass) | 
| <T extends Annotation> | AnnotatedElement. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if
 such an annotation is present, else null. | 
| <T extends Annotation> | Field. getAnnotation(Class<T> annotationClass) | 
| <T extends Annotation> | Method. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if
 such an annotation is present, else null. | 
| <T extends Annotation> | Parameter. getAnnotation(Class<T> annotationClass)Returns this element's annotation for the specified type if
 such an annotation is present, else null. | 
| <T extends Annotation> | Executable. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | AccessibleObject. getAnnotationsByType(Class<T> annotationClass) | 
| default <T extends Annotation> | AnnotatedElement. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | Field. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | Parameter. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | AccessibleObject. getDeclaredAnnotation(Class<T> annotationClass) | 
| default <T extends Annotation> | AnnotatedElement. 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> | Parameter. getDeclaredAnnotation(Class<T> annotationClass) | 
| <T extends Annotation> | AccessibleObject. getDeclaredAnnotationsByType(Class<T> annotationClass) | 
| default <T extends Annotation> | 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> | Parameter. getDeclaredAnnotationsByType(Class<T> annotationClass) | 
| Modifier and Type | Method and Description | 
|---|---|
| Annotation[] | AccessibleObject. getAnnotations() | 
| Annotation[] | AnnotatedElement. getAnnotations()Returns annotations that are present on this element. | 
| Annotation[] | Parameter. getAnnotations()Returns annotations that are present on this element. | 
| <T extends Annotation> | Executable. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | AccessibleObject. getAnnotationsByType(Class<T> annotationClass) | 
| default <T extends Annotation> | AnnotatedElement. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | Field. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| <T extends Annotation> | Parameter. getAnnotationsByType(Class<T> annotationClass)Returns annotations that are associated with this element. | 
| Annotation[] | Constructor. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| Annotation[] | Executable. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| Annotation[] | AccessibleObject. getDeclaredAnnotations() | 
| Annotation[] | AnnotatedElement. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| Annotation[] | Field. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| Annotation[] | Method. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| Annotation[] | Parameter. getDeclaredAnnotations()Returns annotations that are directly present on this element. | 
| <T extends Annotation> | AccessibleObject. getDeclaredAnnotationsByType(Class<T> annotationClass) | 
| default <T extends Annotation> | 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> | Parameter. getDeclaredAnnotationsByType(Class<T> annotationClass) | 
| Annotation[][] | Constructor. getParameterAnnotations()Returns an array of arrays of  Annotations that
 represent the annotations on the formal parameters, in
 declaration order, of theExecutablerepresented by
 this object. | 
| abstract Annotation[][] | Executable. getParameterAnnotations()Returns an array of arrays of  Annotations that
 represent the annotations on the formal parameters, in
 declaration order, of theExecutablerepresented by
 this object. | 
| Annotation[][] | Method. getParameterAnnotations()Returns an array of arrays of  Annotations that
 represent the annotations on the formal parameters, in
 declaration order, of theExecutablerepresented by
 this object. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | AccessibleObject. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type
 is present on this element, else false. | 
| default boolean | AnnotatedElement. isAnnotationPresent(Class<? extends Annotation> annotationClass)Returns true if an annotation for the specified type
 is present on this element, else false. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | GeneratedThe Generated annotation is used to mark source code that has been generated. | 
| interface  | PostConstructThe PostConstruct annotation is used on a method that needs to be executed
 after dependency injection is done to perform any initialization. | 
| interface  | PreDestroyThe PreDestroy annotation is used on methods as a callback notification to
 signal that the instance is in the process of being removed by the
 container. | 
| interface  | ResourceThe Resource annotation marks a resource that is needed
 by the application. | 
| interface  | ResourcesThis class is used to allow multiple resources declarations. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | SupportedAnnotationTypesAn annotation used to indicate what annotation types an annotation
 processor supports. | 
| interface  | SupportedOptionsAn annotation used to indicate what options an annotation processor
 supports. | 
| interface  | SupportedSourceVersionAn annotation used to indicate the latest source version an
 annotation processor supports. | 
| Modifier and Type | Method and Description | 
|---|---|
| Set<? extends Element> | RoundEnvironment. getElementsAnnotatedWith(Class<? extends Annotation> a)Returns the elements annotated with the given annotation type. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | HandlerChain | 
| interface  | Oneway | 
| interface  | WebMethod | 
| interface  | WebParam | 
| interface  | WebResult | 
| interface  | WebService | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | InitParamDeprecated.  | 
| interface  | SOAPBinding | 
| interface  | SOAPMessageHandlerDeprecated.  | 
| interface  | SOAPMessageHandlersDeprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| <A extends Annotation> | AnnotatedConstruct. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if
 such an annotation is present, else  null. | 
| <A extends Annotation> | AnnotatedConstruct. getAnnotationsByType(Class<A> annotationType)Returns annotations that are associated with this construct. | 
| Modifier and Type | Method and Description | 
|---|---|
| <A extends Annotation> | AnnotatedConstruct. getAnnotationsByType(Class<A> annotationType)Returns annotations that are associated with this construct. | 
| Modifier and Type | Method and Description | 
|---|---|
| <A extends Annotation> | Element. getAnnotation(Class<A> annotationType)Returns this construct's annotation of the specified type if
 such an annotation is present, else  null. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | DescriptorKeyMeta-annotation that describes how an annotation element relates
 to a field in a  Descriptor. | 
| interface  | MXBeanAnnotation to mark an interface explicitly as being an MXBean
    interface, or as not being an MXBean interface. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | XmlAccessorOrder Controls the ordering of fields and properties in a class. | 
| interface  | XmlAccessorType Controls whether fields or Javabean properties are serialized by default. | 
| interface  | XmlAnyAttribute
 Maps a JavaBean property to a map of wildcard attributes. | 
| interface  | XmlAnyElementMaps a JavaBean property to XML infoset representation and/or JAXB element. | 
| interface  | XmlAttachmentRefMarks a field/property that its XML form is a uri reference to mime content. | 
| interface  | XmlAttribute
 Maps a JavaBean property to a XML attribute. | 
| interface  | XmlElementMaps a JavaBean property to a XML element derived from property name. | 
| interface  | XmlElementDeclMaps a factory method to a XML element. | 
| interface  | XmlElementRef
 Maps a JavaBean property to a XML element derived from property's type. | 
| interface  | XmlElementRefsMarks a property that refers to classes with  XmlElementor JAXBElement. | 
| interface  | XmlElements
 A container for multiple @ XmlElementannotations. | 
| interface  | XmlElementWrapperGenerates a wrapper element around XML representation. | 
| interface  | XmlEnum
 Maps an enum type  Enumto XML representation. | 
| interface  | XmlEnumValueMaps an enum constant in  Enumtype to XML representation. | 
| interface  | XmlID
 Maps a JavaBean property to XML ID. | 
| interface  | XmlIDREF
 Maps a JavaBean property to XML IDREF. | 
| interface  | XmlInlineBinaryDataDisable consideration of XOP encoding for datatypes that are bound to
 base64-encoded binary data in XML. | 
| interface  | XmlListUsed to map a property to a list simple type. | 
| interface  | XmlMimeTypeAssociates the MIME type that controls the XML representation of the property. | 
| interface  | XmlMixed
 Annotate a JavaBean multi-valued property to support mixed content. | 
| interface  | XmlNs
 Associates a namespace prefix with a XML namespace URI. | 
| interface  | XmlRegistryMarks a class that has  XmlElementDecls. | 
| interface  | XmlRootElementMaps a class or an enum type to an XML element. | 
| interface  | XmlSchema Maps a package name to a XML namespace. | 
| interface  | XmlSchemaTypeMaps a Java type to a simple schema built-in type. | 
| interface  | XmlSchemaTypes
 A container for multiple @ XmlSchemaTypeannotations. | 
| interface  | XmlSeeAlsoInstructs JAXB to also bind other classes when binding this class. | 
| interface  | XmlTransient
 Prevents the mapping of a JavaBean property/type to XML representation. | 
| interface  | XmlType
 Maps a class or an enum type to a XML Schema type. | 
| interface  | XmlValue
 Enables mapping a class to a  XML Schema complex type with a
 simpleContent or a XML Schema simple type. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | XmlJavaTypeAdapterUse an adapter that implements  XmlAdapterfor custom marshaling. | 
| interface  | XmlJavaTypeAdapters
 A container for multiple @ XmlJavaTypeAdapterannotations. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | ActionThe  Actionannotation allows explicit association of a
 WS-AddressingActionmessage addressing property withinput,output, andfaultmessages of the mapped WSDL operation. | 
| interface  | BindingTypeThe  BindingTypeannotation is used to
  specify the binding to use for a web service
  endpoint implementation class. | 
| interface  | FaultActionThe  FaultActionannotation is used inside anActionannotation to allow an explicit association of a WS-AddressingActionmessage addressing property with thefaultmessages of the WSDL operation mapped from the exception class. | 
| interface  | RequestWrapperUsed to annotate methods in the Service Endpoint Interface with the request
 wrapper bean to be used at runtime. | 
| interface  | RespectBindingThis feature clarifies the use of the  wsdl:bindingin a JAX-WS runtime. | 
| interface  | ResponseWrapperUsed to annotate methods in the Service Endpoint Interface with the response
 wrapper bean to be used at runtime. | 
| interface  | ServiceModeUsed to indicate whether a  Providerimplementation wishes to work
 with entire protocol messages or just with protocol message payloads. | 
| interface  | WebEndpointUsed to annotate the  getPortName()methods of a generated service interface. | 
| interface  | WebFaultUsed to annotate service specific exception classes to customize
 to the local and namespace name of the fault element and the name
 of the fault bean. | 
| interface  | WebServiceClientUsed to annotate a generated service interface. | 
| interface  | WebServiceProviderUsed to annotate a Provider implementation class. | 
| interface  | WebServiceRefThe  WebServiceRefannotation is used to
 define a reference to a web service and
 (optionally) an injection target for it. | 
| interface  | WebServiceRefsThe  WebServiceRefsannotation allows
 multiple web service references to be declared at the
 class level. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | AddressingThis annotation represents the use of WS-Addressing with either
 the SOAP 1.1/HTTP or SOAP 1.2/HTTP binding. | 
| interface  | MTOMThis feature represents the use of MTOM with a
 web service. | 
| Modifier and Type | Class and Description | 
|---|---|
| interface  | WebServiceFeatureAnnotationAnnotation used to identify other annotations
 as a  WebServiceFeature. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.