Package net.bytebuddy.build
Enum Plugin.Engine.Listener.NoOp
- java.lang.Object
-
- java.lang.Enum<Plugin.Engine.Listener.NoOp>
-
- net.bytebuddy.build.Plugin.Engine.Listener.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Plugin.Engine.Listener.NoOp>
,Plugin.Engine.ErrorHandler
,Plugin.Engine.Listener
- Enclosing interface:
- Plugin.Engine.Listener
public static enum Plugin.Engine.Listener.NoOp extends java.lang.Enum<Plugin.Engine.Listener.NoOp> implements Plugin.Engine.Listener
A non-operational listener.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.Plugin.Engine.ErrorHandler
Plugin.Engine.ErrorHandler.Enforcing, Plugin.Engine.ErrorHandler.Failing
-
Nested 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 Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
NoOp()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onComplete(TypeDescription typeDescription)
Invoked upon completing handling a type that was either transformed or ignored.void
onDiscovery(java.lang.String typeName)
Invoked upon discovering a type but prior to its resolution.void
onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.void
onError(Plugin plugin, java.lang.Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.void
onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.void
onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.void
onIgnored(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Invoked if one or more plugins did not transform a type.void
onIgnored(TypeDescription typeDescription, Plugin plugin)
Invoked if a type description is ignored by a given plugin.void
onLiveInitializer(TypeDescription typeDescription, TypeDescription definingType)
Invoked if a type transformation implied a live initializer.void
onManifest(java.util.jar.Manifest manifest)
Invoked when a manifest was found or found missing.void
onResource(java.lang.String name)
Invoked if a resource that is not a class file is discovered.void
onTransformation(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.void
onTransformation(TypeDescription typeDescription, Plugin plugin)
Invoked after a type was transformed using a specific plugin.void
onUnresolved(java.lang.String typeName)
Invoked if a type could not be resolved.static Plugin.Engine.Listener.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Plugin.Engine.Listener.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Plugin.Engine.Listener.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Plugin.Engine.Listener.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Plugin.Engine.Listener.NoOp c : Plugin.Engine.Listener.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plugin.Engine.Listener.NoOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
onDiscovery
public void onDiscovery(java.lang.String typeName)
Invoked upon discovering a type but prior to its resolution.- Specified by:
onDiscovery
in interfacePlugin.Engine.Listener
- Parameters:
typeName
- The name of the discovered type.
-
onTransformation
public void onTransformation(TypeDescription typeDescription, Plugin plugin)
Invoked after a type was transformed using a specific plugin.- Specified by:
onTransformation
in interfacePlugin.Engine.Listener
- Parameters:
typeDescription
- The type being transformed.plugin
- The plugin that was applied.
-
onTransformation
public void onTransformation(TypeDescription typeDescription, java.util.List<Plugin> plugins)
Invoked after a type was transformed using at least one plugin.- Specified by:
onTransformation
in interfacePlugin.Engine.Listener
- Parameters:
typeDescription
- The type being transformed.plugins
- A list of plugins that were applied.
-
onIgnored
public void onIgnored(TypeDescription typeDescription, Plugin plugin)
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:
onIgnored
in interfacePlugin.Engine.Listener
- Parameters:
typeDescription
- The type being transformed.plugin
- The plugin that ignored the given type.
-
onIgnored
public void onIgnored(TypeDescription typeDescription, java.util.List<Plugin> plugins)
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:
onIgnored
in interfacePlugin.Engine.Listener
- Parameters:
typeDescription
- The type being transformed.plugins
- the plugins that ignored the type.
-
onError
public void onError(TypeDescription typeDescription, Plugin plugin, java.lang.Throwable throwable)
Invoked if an error occured during a plugin's application on a given type.- Specified by:
onError
in interfacePlugin.Engine.ErrorHandler
- Parameters:
typeDescription
- The type being matched or transformed.plugin
- The plugin being applied.throwable
- The throwable that caused the error.
-
onError
public void onError(TypeDescription typeDescription, java.util.List<java.lang.Throwable> throwables)
Invoked after the application of all plugins was attempted if at least one error occured during handling a given type.- Specified by:
onError
in interfacePlugin.Engine.ErrorHandler
- Parameters:
typeDescription
- The type being transformed.throwables
- The throwables that caused errors during the application.
-
onError
public void onError(java.util.Map<TypeDescription,java.util.List<java.lang.Throwable>> throwables)
Invoked at the end of the build if at least one type transformation failed.- Specified by:
onError
in interfacePlugin.Engine.ErrorHandler
- Parameters:
throwables
- A mapping of types that failed during transformation to the errors that were caught.
-
onError
public void onError(Plugin plugin, java.lang.Throwable throwable)
Invoked at the end of the build if a plugin could not be closed.- Specified by:
onError
in 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
public void onLiveInitializer(TypeDescription typeDescription, TypeDescription definingType)
Invoked if a type transformation implied a live initializer.- Specified by:
onLiveInitializer
in 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
public void onComplete(TypeDescription typeDescription)
Invoked upon completing handling a type that was either transformed or ignored.- Specified by:
onComplete
in interfacePlugin.Engine.Listener
- Parameters:
typeDescription
- The type that was transformed.
-
onUnresolved
public void onUnresolved(java.lang.String typeName)
Invoked if a type could not be resolved.- Specified by:
onUnresolved
in interfacePlugin.Engine.ErrorHandler
- Parameters:
typeName
- The name of the unresolved type.
-
onManifest
public void onManifest(java.util.jar.Manifest manifest)
Invoked when a manifest was found or found missing.- Specified by:
onManifest
in interfacePlugin.Engine.ErrorHandler
- Parameters:
manifest
- The located manifest ornull
if no manifest was found.
-
onResource
public void onResource(java.lang.String name)
Invoked if a resource that is not a class file is discovered.- Specified by:
onResource
in interfacePlugin.Engine.ErrorHandler
- Parameters:
name
- The name of the discovered resource.
-
-