Class JsonAnnotation

java.lang.Object
org.apache.juneau.json.annotation.JsonAnnotation

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

    • DEFAULT

      public static final Json DEFAULT
      Default value
  • Constructor Details

  • Method Details

    • create

      public static JsonAnnotation.Builder create()
      Instantiates a new builder for this class.
      Returns:
      A new builder object.
    • create

      public static JsonAnnotation.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 JsonAnnotation.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 Json copy(Json 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.