Top Description Inners Methods
net.bytebuddy.description.annotation

public Interface AnnotationSource

Known Direct Subinterfaces
net.bytebuddy.description.method.ParameterDescription, net.bytebuddy.description.type.PackageDescription, net.bytebuddy.description.type.RecordComponentDescription, net.bytebuddy.description.type.TypeDescription.Generic, net.bytebuddy.description.ByteCodeElement
Known Direct Implementers
net.bytebuddy.description.annotation.AnnotationSource.Empty, net.bytebuddy.description.annotation.AnnotationSource.Explicit, net.bytebuddy.utility.JavaModule
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, java.util.Arrays, .List

Describes a declaration source for annotations.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum
AnnotationSource.Empty

An annotation source that does not declare any annotations.

public static class
AnnotationSource.Explicit

An annotation source that declares a given list of annotations.

Method Summary

Modifier and TypeMethod and Description
public AnnotationList

Returns:

A list of declared annotations.
getDeclaredAnnotations
()

Returns a list of annotations that are declared by this instance.

Method Detail

getDeclaredAnnotationsback to summary
public AnnotationList getDeclaredAnnotations()

Returns a list of annotations that are declared by this instance.

Returns:AnnotationList

A list of declared annotations.

net.bytebuddy.description.annotation back to summary

public final Enum AnnotationSource.Empty

extends Enum<AnnotationSource.Empty>
implements AnnotationSource
Class Inheritance
All Implemented Interfaces
net.bytebuddy.description.annotation.AnnotationSource

An annotation source that does not declare any annotations.

Field Summary

Modifier and TypeField and Description
public static final AnnotationSource.Empty
INSTANCE

The singleton instance.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public AnnotationList
getDeclaredAnnotations()

Implements net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Returns a list of annotations that are declared by this instance.
public static AnnotationSource.Empty
public static AnnotationSource.Empty[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

INSTANCEback to summary
public static final AnnotationSource.Empty INSTANCE

The singleton instance.

Constructor Detail

Emptyback to summary
private Empty()

Method Detail

getDeclaredAnnotationsback to summary
public AnnotationList getDeclaredAnnotations()

Implements net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Doc from net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Returns a list of annotations that are declared by this instance.

Returns:AnnotationList

A list of declared annotations.

valueOfback to summary
public static AnnotationSource.Empty valueOf(String name)
valuesback to summary
public static AnnotationSource.Empty[] values()
net.bytebuddy.description.annotation back to summary

public Class AnnotationSource.Explicit

extends Object
implements AnnotationSource
Class Inheritance
  • java.lang.Object
  • net.bytebuddy.description.annotation.AnnotationSource.Explicit
All Implemented Interfaces
net.bytebuddy.description.annotation.AnnotationSource
Annotations
@Enhance

An annotation source that declares a given list of annotations.

Field Summary

Modifier and TypeField and Description
private final List<? extends AnnotationDescription>
annotations

The represented annotations.

Constructor Summary

AccessConstructor and Description
public
Explicit(AnnotationDescription...
The represented annotations.
annotation
)

Creates a new explicit annotation source.

public
Explicit(List<? extends AnnotationDescription>
The represented annotations.
annotations
)

Creates a new explicit annotation source.

Method Summary

Modifier and TypeMethod and Description
public AnnotationList
getDeclaredAnnotations()

Implements net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Returns a list of annotations that are declared by this instance.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationsback to summary
private final List<? extends AnnotationDescription> annotations

The represented annotations.

Constructor Detail

Explicitback to summary
public Explicit(AnnotationDescription... annotation)

Creates a new explicit annotation source.

Parameters
annotation:AnnotationDescription[]

The represented annotations.

Explicitback to summary
public Explicit(List<? extends AnnotationDescription> annotations)

Creates a new explicit annotation source.

Parameters
annotations:List<? extends AnnotationDescription>

The represented annotations.

Method Detail

getDeclaredAnnotationsback to summary
public AnnotationList getDeclaredAnnotations()

Implements net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Doc from net.bytebuddy.description.annotation.AnnotationSource.getDeclaredAnnotations.

Returns a list of annotations that are declared by this instance.

Returns:AnnotationList

A list of declared annotations.