Class AnnotatedNodeUtils

java.lang.Object
org.apache.groovy.ast.tools.AnnotatedNodeUtils

public class AnnotatedNodeUtils extends Object
Utility class for working with AnnotatedNodes
  • Method Details

    • markAsGenerated

      public static <T extends AnnotatedNode> T markAsGenerated(ClassNode containingClass, T nodeToMark)
    • markAsGenerated

      public static <T extends AnnotatedNode> T markAsGenerated(ClassNode containingClass, T nodeToMark, boolean skipChecks)
    • hasAnnotation

      public static boolean hasAnnotation(AnnotatedNode node, ClassNode annotation)
    • isGenerated

      public static boolean isGenerated(AnnotatedNode node)
    • markAsInternal

      public static <T extends AnnotatedNode> T markAsInternal(T nodeToMark)
      Marks a node with the @Internal annotation.
      Since:
      6.0.0
    • isInternal

      public static boolean isInternal(AnnotatedNode node)
      Checks whether a node is annotated with @Internal.
      Since:
      6.0.0
    • deemedInternal

      public static boolean deemedInternal(AnnotatedNode node)
      Checks whether an AST node is deemed internal, either by name convention (contains $) or by being annotated with @Internal.
      Since:
      6.0.0