APIdia Launch Partner
Top Inners Fields Constructors Methods
jdk.jfr.internal

public final Class AnnotationConstruct

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, java.lang.reflect.InvocationHandler, .Method, .Proxy, java.util.List, jdk.jfr.AnnotationElement, .Description, .Label, .Unsigned

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private List<AnnotationElement>
private byte

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public final <T> T
getAnnotation(Class<? extends Annotation> clazz)

pack-priv AnnotationElement
public <T> T
getAnnotationValue(Class<? extends Annotation> clazz, T defaultValue)

Convenience method that returns the annotation value, or a default value if the type lacks the annotation.

public String
public String
public List<AnnotationElement>
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationElementsback to summary
private List<AnnotationElement> annotationElements
unsignedFlagback to summary
private byte unsignedFlag

Constructor Detail

AnnotationConstructback to summary
public AnnotationConstruct(List<AnnotationElement> elements)
AnnotationConstructback to summary
public AnnotationConstruct()

Method Detail

getAnnotationback to summary
public final <T> T getAnnotation(Class<? extends Annotation> clazz)
Annotations
@SuppressWarnings:unchecked
getAnnotationElementback to summary
pack-priv AnnotationElement getAnnotationElement(Class<? extends Annotation> clazz)
getAnnotationValueback to summary
public <T> T getAnnotationValue(Class<? extends Annotation> clazz, T defaultValue)

Convenience method that returns the annotation value, or a default value if the type lacks the annotation.

Annotations
@SuppressWarnings:unchecked
getDescriptionback to summary
public String getDescription()
getLabelback to summary
public String getLabel()
getUnmodifiableAnnotationElementsback to summary
public List<AnnotationElement> getUnmodifiableAnnotationElements()
hasUnsignedback to summary
public boolean hasUnsigned()
setAnnotationElementsback to summary
public void setAnnotationElements(List<AnnotationElement> elements)
jdk.jfr.internal back to summary

private final Class AnnotationConstruct.AnnotationInvocationHandler

extends Object
implements InvocationHandler
Class Inheritance
  • java.lang.Object
  • jdk.jfr.internal.AnnotationConstruct.AnnotationInvocationHandler
All Implemented Interfaces
java.lang.reflect.InvocationHandler

Field Summary

Modifier and TypeField and Description
private final AnnotationElement

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object proxy, Method method, Object[] args)

Implements java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

annotationElementback to summary
private final AnnotationElement annotationElement

Constructor Detail

AnnotationInvocationHandlerback to summary
pack-priv AnnotationInvocationHandler(AnnotationElement a)

Method Detail

invokeback to summary
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable

Implements java.lang.reflect.InvocationHandler.invoke.

Doc from java.lang.reflect.InvocationHandler.invoke.

Processes a method invocation on a proxy instance and returns the result. This method will be invoked on an invocation handler when a method is invoked on a proxy instance that it is associated with.

Annotations
@Override
Exceptions
Throwable:
the exception to throw from the method invocation on the proxy instance. The exception's type must be assignable either to any of the exception types declared in the throws clause of the invoked method or to the unchecked exception types java.lang.RuntimeException or java.lang.Error. If a checked exception is thrown by this method that is not assignable to any of the exception types declared in the throws clause of the invoked method, then an UndeclaredThrowableException containing the exception that was thrown by this method will be thrown by the method invocation on the proxy instance.