Package org.openrewrite.java.trait
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>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String attribute) getDefaultAttribute(@Nullable String defaultAlias) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.openrewrite.trait.Trait
getCursor, getTree
-
Constructor Details
-
Annotated
public Annotated()
-
-
Method Details
-
getDefaultAttribute
- Parameters:
defaultAlias- The name of the annotation attribute that is aliased to "value", if any.- Returns:
- The attribute value.
-
getAttribute
-