public static enum OutputSinkFactory.SinkClass extends 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.LineNumberMapping s
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 |
---|---|
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(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.Decompiled
public static final OutputSinkFactory.SinkClass DECOMPILED_MULTIVER
SinkReturns.DecompiledMultiVer
public static final OutputSinkFactory.SinkClass EXCEPTION_MESSAGE
SinkReturns.ExceptionMessage
public 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.LineNumberMapping
s
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 Class<?> sinkClass
public static OutputSinkFactory.SinkClass[] values()
for (OutputSinkFactory.SinkClass c : OutputSinkFactory.SinkClass.values()) System.out.println(c);
public static OutputSinkFactory.SinkClass valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2011-2021. All Rights Reserved.