Class ExampleAnnotation

java.lang.Object
org.apache.juneau.annotation.ExampleAnnotation

public class ExampleAnnotation extends Object
Utility classes and methods for the @Example annotation.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • create

      Instantiates a new builder for this class.
      Returns:
      A new builder object.
    • create

      public static ExampleAnnotation.Builder create(Class<?>... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • create

      public static ExampleAnnotation.Builder create(String... on)
      Instantiates a new builder for this class.
      Parameters:
      on - The targets this annotation applies to.
      Returns:
      A new builder object.
    • copy

      public static Example copy(Example a, VarResolverSession r)
      Creates a copy of the specified annotation.
      Parameters:
      a - The annotation to copy.s
      r - The var resolver for resolving any variables.
      Returns:
      A copy of the specified annotation.