Package org.benf.cfr.reader.api
Enum OutputSinkFactory.SinkClass
- java.lang.Object
-
- java.lang.Enum<OutputSinkFactory.SinkClass>
-
- org.benf.cfr.reader.api.OutputSinkFactory.SinkClass
-
- All Implemented Interfaces:
Serializable
,Comparable<OutputSinkFactory.SinkClass>
- 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 Summary
Enum Constants Enum Constant Description DECOMPILED
Sinks will acceptSinkReturns.Decompiled
DECOMPILED_MULTIVER
Sinks will acceptSinkReturns.DecompiledMultiVer
EXCEPTION_MESSAGE
Sinks will acceptSinkReturns.ExceptionMessage
STRING
Sinks will accept a string
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OutputSinkFactory.SinkClass
valueOf(String name)
Returns the enum constant of this type with the specified name.static OutputSinkFactory.SinkClass[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final OutputSinkFactory.SinkClass STRING
Sinks will accept a string
-
DECOMPILED
public static final OutputSinkFactory.SinkClass DECOMPILED
Sinks will acceptSinkReturns.Decompiled
-
DECOMPILED_MULTIVER
public static final OutputSinkFactory.SinkClass DECOMPILED_MULTIVER
Sinks will acceptSinkReturns.DecompiledMultiVer
-
EXCEPTION_MESSAGE
public static final OutputSinkFactory.SinkClass EXCEPTION_MESSAGE
Sinks will acceptSinkReturns.ExceptionMessage
-
-
Field Detail
-
sinkClass
public final Class<?> sinkClass
Get the type of message that the sink will be expected to take.
-
-
Method Detail
-
values
public static OutputSinkFactory.SinkClass[] 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 (OutputSinkFactory.SinkClass c : OutputSinkFactory.SinkClass.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OutputSinkFactory.SinkClass valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-