Enum Class OutputSinkFactory.SinkClass

java.lang.Object
java.lang.Enum<OutputSinkFactory.SinkClass>
org.benf.cfr.reader.api.OutputSinkFactory.SinkClass
All Implemented Interfaces:
Serializable, Comparable<OutputSinkFactory.SinkClass>, Constable
Enclosing interface:
OutputSinkFactory

public static enum OutputSinkFactory.SinkClass extends Enum<OutputSinkFactory.SinkClass>
Defines the kind of object that will arrive on your sink.
All consumers should accept at least STRING.
Not all classes are appropriate to all sink types.

OutputSinkFactory.Sink instances are constructed, and used in terms of sink classes so as to ensure easy future expansion of capabilities without breaking the ABI, and without being entirely weakly typed.
  • Enum Constant Details

  • Field Details

    • sinkClass

      public final Class<?> sinkClass
      Get the type of message that the sink will be expected to take.
  • Constructor Details

    • SinkClass

      private SinkClass(Class<?> sinkClass)
  • Method Details

    • values

      public static OutputSinkFactory.SinkClass[] 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 OutputSinkFactory.SinkClass 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