Class NodeGenerator

    • Constructor Detail

      • NodeGenerator

        protected NodeGenerator​(SourceRoot sourceRoot)
    • Method Detail

      • addOrReplaceWhenSameSignature

        protected void addOrReplaceWhenSameSignature​(ClassOrInterfaceDeclaration containingClassOrInterface,
                                                     CallableDeclaration<?> callable)
        Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it with callable. If not found, adds callable. When the new callable has no javadoc, any old javadoc will be kept.
      • replaceWhenSameSignature

        protected void replaceWhenSameSignature​(ClassOrInterfaceDeclaration containingClassOrInterface,
                                                CallableDeclaration<?> callable)
        Utility method that looks for a method or constructor with an identical signature as "callable" and replaces it with callable. If not found, fails. When the new callable has no javadoc, any old javadoc will be kept.