Class AnnotationValue.Loaded.AbstractBase<W>

java.lang.Object
net.bytebuddy.description.annotation.AnnotationValue.Loaded.AbstractBase<W>
Type Parameters:
W - The represented loaded type.
All Implemented Interfaces:
AnnotationValue.Loaded<W>
Direct Known Subclasses:
AnnotationValue.ForAnnotationDescription.Loaded, AnnotationValue.ForConstant.Loaded, AnnotationValue.ForDescriptionArray.Loaded, AnnotationValue.ForEnumerationDescription.Loaded, AnnotationValue.ForEnumerationDescription.Loaded.WithIncompatibleRuntimeType, AnnotationValue.ForMissingValue.Loaded, AnnotationValue.ForTypeDescription.Loaded, AnnotationValue.Loaded.AbstractBase.ForUnresolvedProperty
Enclosing interface:
AnnotationValue.Loaded<U>

public abstract static class AnnotationValue.Loaded.AbstractBase<W> extends Object implements AnnotationValue.Loaded<W>
An abstract base implementation of a loaded annotation value.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • resolve

      public <X> X resolve(Class<? extends X> type)
      Resolves the value to the actual value of an annotation. Calling this method might throw a runtime exception if this value is either not defined or not resolved.
      Specified by:
      resolve in interface AnnotationValue.Loaded<W>
      Type Parameters:
      X - The value's loaded type.
      Parameters:
      type - The value's loaded type.
      Returns:
      The actual annotation value represented by this instance.