Annotation Type Precompile
Deprecated.
Use -Amanifold.resource.<file-ext>=[type-name-regex] javac command line arguments.
Use
@Precompile to instruct Manifold to precompile classes from a specified type manifold.
This is useful for cases where a type manifold produces a static API for others to use. Note you
maybe provide more than one instance of @Precompile to precompile types from more than one
type manifold:
@Precompile(fileExtension = "json")
@Precompile(fileExtension = "yml")
This instructs the Java compiler to precompile all JSON and YAML in the enclosing module.
The default behavior:
@Precompile()
compiles all types from all type manifolds used in the module.-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionDeprecated.A file extension name e.g.,"json", handled by the Type Manifold class defining the domain of types to compile.Class<?> Deprecated.The Type Manifold class defining the domain of types to compile from.Deprecated.A regular expression defining the range of types that should be compiled fromtypeManifold()orfileExtension()viaITypeManifold#getAllTypeNames().
-
Element Details
-
typeManifold
Class<?> typeManifoldDeprecated.The Type Manifold class defining the domain of types to compile from. UsefileExtension()as a convenient alternative way to specify the type manifold via a file extension it handles.- Default:
java.lang.Object.class
-
fileExtension
String fileExtensionDeprecated.A file extension name e.g.,"json", handled by the Type Manifold class defining the domain of types to compile. This value is an alternative totypeManifold()as a simple way to indirectly specify theITypeManifold. If both arguments are present,typeManifold()has precedence. The default wildcard value"*"precompiles types from all type manifolds used in the module- Default:
"*"
-
typeNames
String typeNamesDeprecated.A regular expression defining the range of types that should be compiled fromtypeManifold()orfileExtension()viaITypeManifold#getAllTypeNames(). The default value".*"compiles all types originating from the specified type manifold.- Default:
".*"
-