Class AbstractStatementTransformer<T extends Statement>

    • Constructor Detail

      • AbstractStatementTransformer

        public AbstractStatementTransformer​(SourceUnit sourceUnit,
                                            Closure<Boolean> criteria)
        Every instance needs the source unit awareness and the name of the method it's going to transform
        Parameters:
        sourceUnit - Needed to apply scope
        criteria - the criteria used to search the interesting Statement
        Since:
        0.2.0
    • Method Detail

      • transformStatement

        public abstract void transformStatement​(T statement)
        This method will transform the statement into its final version.
        Parameters:
        statement - the method statement you want to transform
        Since:
        0.2.0