Package net.bytebuddy.build
Enum BuildLogger.NoOp
- java.lang.Object
-
- java.lang.Enum<BuildLogger.NoOp>
-
- net.bytebuddy.build.BuildLogger.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BuildLogger.NoOp>
,BuildLogger
- Enclosing interface:
- BuildLogger
public static enum BuildLogger.NoOp extends java.lang.Enum<BuildLogger.NoOp> implements BuildLogger
A non-operational build logger that discards all statements.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.build.BuildLogger
BuildLogger.Adapter, BuildLogger.Compound, BuildLogger.NoOp, BuildLogger.StreamWriting
-
-
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
debug(java.lang.String message)
Logs a message on the debug level.void
debug(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the debug level.void
error(java.lang.String message)
Logs a message on the error level.void
error(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the error level.void
info(java.lang.String message)
Logs a message on the info level.void
info(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the info level.boolean
isDebugEnabled()
Returnstrue
if the debug log level is enabled.boolean
isErrorEnabled()
Returnstrue
if the error log level is enabled.boolean
isInfoEnabled()
Returnstrue
if the info log level is enabled.boolean
isWarnEnabled()
Returnstrue
if the warn log level is enabled.static BuildLogger.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BuildLogger.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
warn(java.lang.String message)
Logs a message on the warn level.void
warn(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the warn level.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final BuildLogger.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static BuildLogger.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 (BuildLogger.NoOp c : BuildLogger.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 BuildLogger.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
-
isDebugEnabled
public boolean isDebugEnabled()
Returnstrue
if the debug log level is enabled.- Specified by:
isDebugEnabled
in interfaceBuildLogger
- Returns:
true
if the debug log level is enabled.
-
debug
public void debug(java.lang.String message)
Logs a message on the debug level.- Specified by:
debug
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
debug
public void debug(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the debug level.- Specified by:
debug
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isInfoEnabled
public boolean isInfoEnabled()
Returnstrue
if the info log level is enabled.- Specified by:
isInfoEnabled
in interfaceBuildLogger
- Returns:
true
if the info log level is enabled.
-
info
public void info(java.lang.String message)
Logs a message on the info level.- Specified by:
info
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
info
public void info(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the info level.- Specified by:
info
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isWarnEnabled
public boolean isWarnEnabled()
Returnstrue
if the warn log level is enabled.- Specified by:
isWarnEnabled
in interfaceBuildLogger
- Returns:
true
if the warn log level is enabled.
-
warn
public void warn(java.lang.String message)
Logs a message on the warn level.- Specified by:
warn
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
warn
public void warn(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the warn level.- Specified by:
warn
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
isErrorEnabled
public boolean isErrorEnabled()
Returnstrue
if the error log level is enabled.- Specified by:
isErrorEnabled
in interfaceBuildLogger
- Returns:
true
if the error log level is enabled.
-
error
public void error(java.lang.String message)
Logs a message on the error level.- Specified by:
error
in interfaceBuildLogger
- Parameters:
message
- The message to log.
-
error
public void error(java.lang.String message, java.lang.Throwable throwable)
Logs a message on the error level.- Specified by:
error
in interfaceBuildLogger
- Parameters:
message
- The message to log.throwable
- A throwable that is attached to the message.
-
-