Enum Class LoadedTypeInitializer.NoOp

java.lang.Object
java.lang.Enum<LoadedTypeInitializer.NoOp>
net.bytebuddy.implementation.LoadedTypeInitializer.NoOp
All Implemented Interfaces:
Serializable, Comparable<LoadedTypeInitializer.NoOp>, Constable, LoadedTypeInitializer
Enclosing interface:
LoadedTypeInitializer

public static enum LoadedTypeInitializer.NoOp extends Enum<LoadedTypeInitializer.NoOp> implements LoadedTypeInitializer
A loaded type initializer that does not do anything.
  • Enum Constant Details

  • Constructor Details

    • NoOp

      private NoOp()
  • Method Details

    • values

      public static LoadedTypeInitializer.NoOp[] 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

      public static LoadedTypeInitializer.NoOp valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • onLoad

      public void onLoad(Class<?> type)
      Callback that is invoked on the creation of an instrumented type. If the loaded type initializer is alive, this method should be implemented empty instead of throwing an exception.
      Specified by:
      onLoad in interface LoadedTypeInitializer
      Parameters:
      type - The manifestation of the instrumented type.
    • isAlive

      public boolean isAlive()
      Indicates if this initializer is alive and needs to be invoked. This is only meant as a mark. A loaded type initializer that is not alive might still be called and must therefore not throw an exception but rather provide an empty implementation.
      Specified by:
      isAlive in interface LoadedTypeInitializer
      Returns:
      true if this initializer is alive.