Package org.benf.cfr.reader.api
Enum Class OutputSinkFactory.SinkClass
- All Implemented Interfaces:
Serializable
,Comparable<OutputSinkFactory.SinkClass>
,Constable
- Enclosing interface:
- OutputSinkFactory
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.
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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSinks will acceptSinkReturns.Decompiled
Sinks will acceptSinkReturns.DecompiledMultiVer
Sinks will acceptSinkReturns.ExceptionMessage
Sink will acceptSinkReturns.LineNumberMapping
s This will contain a mapping, per method, of bytecode location in a method to the line number in the generated text.Sinks will accept a stringSinks will accept a stream ofSinkReturns.Token
, terminating in an EOF token for any given file. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OutputSinkFactory.SinkClass
Returns the enum constant of this class with the specified name.static OutputSinkFactory.SinkClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STRING
Sinks will accept a string -
DECOMPILED
Sinks will acceptSinkReturns.Decompiled
-
DECOMPILED_MULTIVER
Sinks will acceptSinkReturns.DecompiledMultiVer
-
EXCEPTION_MESSAGE
Sinks will acceptSinkReturns.ExceptionMessage
-
TOKEN_STREAM
Sinks will accept a stream ofSinkReturns.Token
, terminating in an EOF token for any given file. Note that these tokens may be reused, and should not be cached. -
LINE_NUMBER_MAPPING
Sink will acceptSinkReturns.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. seeSinkReturns.LineNumberMapping
for further details.
-
-
Field Details
-
sinkClass
Get the type of message that the sink will be expected to take.
-
-
Constructor Details
-
SinkClass
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-