Class StaticCompiler

java.lang.Object
manifold.internal.javac.StaticCompiler

public class StaticCompiler extends Object
This class compiles resource types optionally specified with the command line arguments:
-Aother.source.files=[file-list]
or
-Amanifold.source.[ext]=[type-name-regex]

Note, the "other.source.files" argument may not be used with the "manifold.source.*" argument.

The specified resource types are compiled after javac finishes compiling the .java source list. Note, if a resource type is referenced by any of the .java files, the resource type sill compiled along with the .java files during javac's normal round of compilation. Thus, this class compiles only the specified resource types that remain uncompiled after .java source files.

See Explicit Resource Compilation

  • Method Details

    • instance

      public static StaticCompiler instance()
    • addIProxyFactory

      public void addIProxyFactory(String iface, String fqn)
    • surfaceGeneratedProxyFactoryClasses

      public void surfaceGeneratedProxyFactoryClasses(com.sun.tools.javac.util.Context context, com.sun.source.tree.CompilationUnitTree compilationUnit)
    • mapTypeManifoldToTypeNameRegexes

      public void mapTypeManifoldToTypeNameRegexes(Map<ITypeManifold, Set<String>> typeNames, String fqnOrExt, String regex)