Class AnnotationDeserializer

java.lang.Object
org.openrewrite.java.internal.parser.AnnotationDeserializer

public class AnnotationDeserializer extends Object
  • Constructor Details

    • AnnotationDeserializer

      public AnnotationDeserializer()
  • Method Details

    • parseAnnotation

      public static AnnotationDeserializer.AnnotationInfo parseAnnotation(String annotationStr)
      Parses a serialized annotation string.
    • parseAnnotations

      public static List<AnnotationDeserializer.AnnotationInfo> parseAnnotations(String annotationsStr)
      Parses multiple annotations from a string that may contain: - Multiple annotations separated by pipes (backward compatibility) - Multiple annotations concatenated without delimiters (new format) - Single annotation
      Parameters:
      annotationsStr - The serialized annotations string
      Returns:
      List of parsed annotation info objects
    • parseValue

      public static Object parseValue(String value)
      Determines the type of a serialized value and returns it in the appropriate format. This is a public API method that creates a new parser for the complete value string.