Class AnnotatedNode

    • Constructor Detail

      • AnnotatedNode

        public AnnotatedNode()
    • Method Detail

      • addAnnotation

        public void addAnnotation​(AnnotationNode annotation)
      • getDeclaringClass

        public ClassNode getDeclaringClass()
      • setDeclaringClass

        public void setDeclaringClass​(ClassNode declaringClass)
      • hasNoRealSourcePosition

        public boolean hasNoRealSourcePosition()
        Returns true for default constructors added by the compiler.

        See GROOVY-4161

      • setHasNoRealSourcePosition

        public void setHasNoRealSourcePosition​(boolean hasNoRealSourcePosition)
      • isSynthetic

        public boolean isSynthetic()
        Indicates if this node was added by the compiler.

        Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.

      • setSynthetic

        public void setSynthetic​(boolean synthetic)
        Sets this node as a node added by the compiler.

        Note: This method has nothing to do with the synthetic flag for classes, fields, methods or properties.