Class Annotated

java.lang.Object
org.openrewrite.java.trait.Annotated
All Implemented Interfaces:
org.openrewrite.trait.Trait<org.openrewrite.java.tree.J.Annotation>

public class Annotated extends Object implements org.openrewrite.trait.Trait<org.openrewrite.java.tree.J.Annotation>
  • Constructor Details

    • Annotated

      public Annotated()
  • Method Details

    • getDefaultAttribute

      public Optional<Literal> getDefaultAttribute(@Nullable String defaultAlias)
      Parameters:
      defaultAlias - The name of the annotation attribute that is aliased to "value", if any.
      Returns:
      The attribute value.
    • getAttribute

      public Optional<Literal> getAttribute(String attribute)