Class AbstractExpressionTransformer<T extends Expression>

    • Constructor Detail

      • AbstractExpressionTransformer

        public AbstractExpressionTransformer​(Class<T> clazz,
                                             SourceUnit sourceUnit,
                                             Closure<Boolean> criteria)
        Every instance needs the source unit awareness and the name of the method it's going to transform
        Parameters:
        clazz - the type of the expression we're interested in
        sourceUnit - Needed to apply scope
        criteria - the criteria used to search the interesting Expression
        Since:
        0.2.3
      • AbstractExpressionTransformer

        public AbstractExpressionTransformer​(Class<T> clazz,
                                             SourceUnit sourceUnit)
        Every instance needs the source unit awareness and the name of the method it's going to transform
        Parameters:
        clazz - the type of the expression we're interested in
        sourceUnit - Needed to apply scope Expression
        Since:
        0.2.3