Package net.bytebuddy.build
Class Plugin.Engine.Default.Preprocessor
- java.lang.Object
-
- net.bytebuddy.build.Plugin.Engine.Default.Preprocessor
-
- All Implemented Interfaces:
java.util.concurrent.Callable<java.util.concurrent.Callable<? extends Plugin.Engine.Dispatcher.Materializable>>
- Enclosing class:
- Plugin.Engine.Default
private class Plugin.Engine.Default.Preprocessor extends java.lang.Object implements java.util.concurrent.Callable<java.util.concurrent.Callable<? extends Plugin.Engine.Dispatcher.Materializable>>
A preprocessor for a parallel plugin engine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classPlugin.Engine.Default.Preprocessor.IgnoredA materializable for an ignored element.private classPlugin.Engine.Default.Preprocessor.ResolvedA resolved materializable.private classPlugin.Engine.Default.Preprocessor.UnresolvedA materializable that represents an unresolved type.
-
Field Summary
Fields Modifier and Type Field Description private ClassFileLocatorclassFileLocatorThe class file locator to use.private ClassFileVersionclassFileVersionThe multi-release class file version ornullfor a regular class.private Plugin.Engine.Source.ElementelementThe processed element.private Plugin.Engine.ListenerlistenerThe listener to notify.private java.util.List<Plugin>pluginsThe plugins to apply.private java.util.List<Plugin.WithPreprocessor>preprocessorsThe plugins with preprocessors to preprocess.private java.lang.StringtypeNameThe name of the processed type.private TypePooltypePoolThe type pool to use.
-
Constructor Summary
Constructors Modifier Constructor Description privatePreprocessor(Plugin.Engine.Source.Element element, java.lang.String typeName, ClassFileLocator classFileLocator, ClassFileVersion classFileVersion, TypePool typePool, Plugin.Engine.Listener listener, java.util.List<Plugin> plugins, java.util.List<Plugin.WithPreprocessor> preprocessors)Creates a new preprocessor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.Callable<Plugin.Engine.Dispatcher.Materializable>call()
-
-
-
Field Detail
-
element
private final Plugin.Engine.Source.Element element
The processed element.
-
typeName
private final java.lang.String typeName
The name of the processed type.
-
classFileLocator
private final ClassFileLocator classFileLocator
The class file locator to use.
-
classFileVersion
@MaybeNull @ValueHandling(REVERSE_NULLABILITY) private final ClassFileVersion classFileVersion
The multi-release class file version ornullfor a regular class.
-
typePool
private final TypePool typePool
The type pool to use.
-
listener
private final Plugin.Engine.Listener listener
The listener to notify.
-
plugins
private final java.util.List<Plugin> plugins
The plugins to apply.
-
preprocessors
private final java.util.List<Plugin.WithPreprocessor> preprocessors
The plugins with preprocessors to preprocess.
-
-
Constructor Detail
-
Preprocessor
private Preprocessor(Plugin.Engine.Source.Element element, java.lang.String typeName, ClassFileLocator classFileLocator, @MaybeNull ClassFileVersion classFileVersion, TypePool typePool, Plugin.Engine.Listener listener, java.util.List<Plugin> plugins, java.util.List<Plugin.WithPreprocessor> preprocessors)
Creates a new preprocessor.- Parameters:
element- The processed element.typeName- The name of the processed type.classFileLocator- The class file locator to use.classFileVersion- The multi-release class file version ornullfor a regular class.typePool- The type pool to use.listener- The listener to notify.plugins- The plugins to apply.preprocessors- The plugins with preprocessors to preprocess.
-
-
Method Detail
-
call
public java.util.concurrent.Callable<Plugin.Engine.Dispatcher.Materializable> call() throws java.lang.Exception
- Specified by:
callin interfacejava.util.concurrent.Callable<java.util.concurrent.Callable<? extends Plugin.Engine.Dispatcher.Materializable>>- Throws:
java.lang.Exception
-
-