Class GwtIncompatibleStripper

java.lang.Object
com.google.j2cl.tools.gwtincompatible.GwtIncompatibleStripper

public final class GwtIncompatibleStripper extends Object
A helper to comment out source code elements annotated with "incompatible" annotations (e.g. @GwtIncompatible) so that they are ignored by tools taking that source as input such as the java compile or the j2cl transpile.
  • Method Details

    • preprocessFiles

      public static void preprocessFiles(List<com.google.j2cl.common.SourceUtils.FileInfo> fileInfos, com.google.j2cl.common.OutputUtils.Output output, com.google.j2cl.common.Problems problems, String annotationName)
      Preprocess all provided files and put them to provided output path.
    • strip

      public static String strip(String fileContent, String annotationName)