public static enum OutputSinkFactory.SinkClass extends java.lang.Enum<OutputSinkFactory.SinkClass>
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 and Description |
|---|
DECOMPILED
Sinks will accept
SinkReturns.Decompiled |
DECOMPILED_MULTIVER
Sinks will accept
SinkReturns.DecompiledMultiVer |
EXCEPTION_MESSAGE
Sinks will accept
SinkReturns.ExceptionMessage |
LINE_NUMBER_MAPPING
Sink will accept
SinkReturns.LineNumberMappings
This will contain a mapping, per method, of bytecode location in a method to the line
number in the generated text. |
STRING
Sinks will accept a string
|
TOKEN_STREAM
Sinks will accept a stream of
SinkReturns.Token,
terminating in an EOF token for any given file. |
| Modifier and Type | Field and Description |
|---|---|
java.lang.Class<?> |
sinkClass
Get the type of message that the sink will be expected to take.
|
| Modifier and Type | Method and Description |
|---|---|
static OutputSinkFactory.SinkClass |
valueOf(java.lang.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.
|
public static final OutputSinkFactory.SinkClass STRING
public static final OutputSinkFactory.SinkClass DECOMPILED
SinkReturns.Decompiledpublic static final OutputSinkFactory.SinkClass DECOMPILED_MULTIVER
SinkReturns.DecompiledMultiVerpublic static final OutputSinkFactory.SinkClass EXCEPTION_MESSAGE
SinkReturns.ExceptionMessagepublic static final OutputSinkFactory.SinkClass TOKEN_STREAM
SinkReturns.Token,
terminating in an EOF token for any given file.
Note that these tokens may be reused, and should not be cached.public static final OutputSinkFactory.SinkClass LINE_NUMBER_MAPPING
SinkReturns.LineNumberMappings
This will contain a mapping, per method, of bytecode location in a method to the line
number in the generated text.
Note that due to lambda inlining/bridges/friends etc, this means that methods which are not emitted in the
eventual decompilation will receive line number mappings, which will point to line numbers that are
visibly contained in other methods.
see SinkReturns.LineNumberMapping for further details.public final java.lang.Class<?> sinkClass
public static OutputSinkFactory.SinkClass[] values()
for (OutputSinkFactory.SinkClass c : OutputSinkFactory.SinkClass.values()) System.out.println(c);
public static OutputSinkFactory.SinkClass valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null