Package net.bytebuddy.build
Enum Class Plugin.Engine.Listener.NoOp
- All Implemented Interfaces:
Serializable,Comparable<Plugin.Engine.Listener.NoOp>,Constable,Plugin.Engine.ErrorHandler,Plugin.Engine.Listener
- Enclosing interface:
Plugin.Engine.Listener
public static enum Plugin.Engine.Listener.NoOp
extends Enum<Plugin.Engine.Listener.NoOp>
implements Plugin.Engine.Listener
A non-operational listener.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.FailingNested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.Listener
Plugin.Engine.Listener.Adapter, Plugin.Engine.Listener.Compound, Plugin.Engine.Listener.ForErrorHandler, Plugin.Engine.Listener.NoOp, Plugin.Engine.Listener.StreamWriting, Plugin.Engine.Listener.WithErrorsOnly, Plugin.Engine.Listener.WithTransformationsOnly -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonComplete(TypeDescription typeDescription) Invoked upon completing handling a type that was either transformed or ignored.voidonDiscovery(String typeName) Invoked upon discovering a type but prior to its resolution.voidonError(Map<TypeDescription, List<Throwable>> throwables) Invoked at the end of the build if at least one type transformation failed.voidInvoked at the end of the build if a plugin could not be closed.voidonError(TypeDescription typeDescription, List<Throwable> throwables) Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.voidonError(TypeDescription typeDescription, Plugin plugin, Throwable throwable) Invoked if an error occured during a plugin's application on a given type.voidonIgnored(TypeDescription typeDescription, List<Plugin> plugins) Invoked if one or more plugins did not transform a type.voidonIgnored(TypeDescription typeDescription, Plugin plugin) Invoked if a type description is ignored by a given plugin.voidonLiveInitializer(TypeDescription typeDescription, TypeDescription definingType) Invoked if a type transformation implied a live initializer.voidonManifest(Manifest manifest) Invoked when a manifest was found or found missing.voidonResource(String name) Invoked if a resource that is not a class file is discovered.voidonTransformation(TypeDescription typeDescription, List<Plugin> plugins) Invoked after a type was transformed using at least one plugin.voidonTransformation(TypeDescription typeDescription, Plugin plugin) Invoked after a type was transformed using a specific plugin.voidonUnresolved(String typeName) Invoked if a type could not be resolved.static Plugin.Engine.Listener.NoOpReturns the enum constant of this class with the specified name.static Plugin.Engine.Listener.NoOp[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
NoOp
private NoOp()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
onDiscovery
Invoked upon discovering a type but prior to its resolution.- Specified by:
onDiscoveryin interfacePlugin.Engine.Listener- Parameters:
typeName- The name of the discovered type.
-
onTransformation
Invoked after a type was transformed using a specific plugin.- Specified by:
onTransformationin interfacePlugin.Engine.Listener- Parameters:
typeDescription- The type being transformed.plugin- The plugin that was applied.
-
onTransformation
Invoked after a type was transformed using at least one plugin.- Specified by:
onTransformationin interfacePlugin.Engine.Listener- Parameters:
typeDescription- The type being transformed.plugins- A list of plugins that were applied.
-
onIgnored
Invoked if a type description is ignored by a given plugin. This callback is not invoked, if the ignore type matcher excluded a type from transformation.- Specified by:
onIgnoredin interfacePlugin.Engine.Listener- Parameters:
typeDescription- The type being transformed.plugin- The plugin that ignored the given type.
-
onIgnored
Invoked if one or more plugins did not transform a type. This callback is also invoked if an ignore matcher excluded a type from transformation.- Specified by:
onIgnoredin interfacePlugin.Engine.Listener- Parameters:
typeDescription- The type being transformed.plugins- the plugins that ignored the type.
-
onError
Invoked if an error occured during a plugin's application on a given type.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type being matched or transformed.plugin- The plugin being applied.throwable- The throwable that caused the error.
-
onError
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type being transformed.throwables- The throwables that caused errors during the application.
-
onError
Invoked at the end of the build if at least one type transformation failed.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
throwables- A mapping of types that failed during transformation to the errors that were caught.
-
onError
Invoked at the end of the build if a plugin could not be closed.- Specified by:
onErrorin interfacePlugin.Engine.ErrorHandler- Parameters:
plugin- The plugin that could not be closed.throwable- The error that was caused when the plugin was attempted to be closed.
-
onLiveInitializer
Invoked if a type transformation implied a live initializer.- Specified by:
onLiveInitializerin interfacePlugin.Engine.ErrorHandler- Parameters:
typeDescription- The type that was transformed.definingType- The type that implies the initializer which might be the type itself or an auxiliary type.
-
onComplete
Invoked upon completing handling a type that was either transformed or ignored.- Specified by:
onCompletein interfacePlugin.Engine.Listener- Parameters:
typeDescription- The type that was transformed.
-
onUnresolved
Invoked if a type could not be resolved.- Specified by:
onUnresolvedin interfacePlugin.Engine.ErrorHandler- Parameters:
typeName- The name of the unresolved type.
-
onManifest
Invoked when a manifest was found or found missing.- Specified by:
onManifestin interfacePlugin.Engine.ErrorHandler- Parameters:
manifest- The located manifest ornullif no manifest was found.
-
onResource
Invoked if a resource that is not a class file is discovered.- Specified by:
onResourcein interfacePlugin.Engine.ErrorHandler- Parameters:
name- The name of the discovered resource.
-