Package manifold.rt.api
Annotation Type Precompile
-
@Retention(SOURCE) @Repeatable(Precompiles.class) @Deprecated public @interface Precompile
Deprecated.Use -Amanifold.resource.<file-ext>=[type-name-regex] javac command line arguments.Use@Precompileto 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@Precompileto precompile types from more than one type manifold:
This instructs the Java compiler to precompile all@Precompile(fileExtension = "json") @Precompile(fileExtension = "yml")JSONandYAMLin the enclosing module. The default behavior:
compiles all types from all type manifolds used in the module.@Precompile()
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description StringfileExtensionDeprecated.A file extension name e.g.,"json", handled by the Type Manifold class defining the domain of types to compile.Class<?>typeManifoldDeprecated.The Type Manifold class defining the domain of types to compile from.StringtypeNamesDeprecated.A regular expression defining the range of types that should be compiled fromtypeManifold()orfileExtension()viaITypeManifold#getAllTypeNames().
-
-
-
Element Detail
-
typeManifold
Class<?> typeManifold
Deprecated.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 fileExtension
Deprecated.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 typeNames
Deprecated.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:
- ".*"
-
-