Package org.benf.cfr.reader.bytecode
Class RecoveryOption<T>
- java.lang.Object
-
- org.benf.cfr.reader.bytecode.RecoveryOption<T>
-
- Direct Known Subclasses:
RecoveryOption.BooleanRO
,RecoveryOption.ConditionalRO
,RecoveryOption.IntRO
,RecoveryOption.TrooleanRO
public abstract class RecoveryOption<T> extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecoveryOption.BooleanRO
static class
RecoveryOption.ConditionalRO<X,T>
static class
RecoveryOption.IntRO
static class
RecoveryOption.TrooleanRO
-
Field Summary
Fields Modifier and Type Field Description protected PermittedOptionProvider.Argument<T>
arg
(package private) UnaryFunction<BytecodeMeta,java.lang.Boolean>
canhelp
private DecompilerComment
decompilerComment
protected T
value
-
Constructor Summary
Constructors Constructor Description RecoveryOption(PermittedOptionProvider.Argument<T> arg, T value, UnaryFunction<BytecodeMeta,java.lang.Boolean> canHelp, DecompilerComment comment)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
apply(MutableOptions mutableOptions, java.util.List<DecompilerComment> commentList, BytecodeMeta bytecodeMeta)
(package private) boolean
applyComment(boolean applied, java.util.List<DecompilerComment> commentList)
-
-
-
Field Detail
-
canhelp
final UnaryFunction<BytecodeMeta,java.lang.Boolean> canhelp
-
arg
protected final PermittedOptionProvider.Argument<T> arg
-
value
protected final T value
-
decompilerComment
private final DecompilerComment decompilerComment
-
-
Constructor Detail
-
RecoveryOption
RecoveryOption(PermittedOptionProvider.Argument<T> arg, T value, UnaryFunction<BytecodeMeta,java.lang.Boolean> canHelp, DecompilerComment comment)
-
-
Method Detail
-
applyComment
boolean applyComment(boolean applied, java.util.List<DecompilerComment> commentList)
-
apply
public abstract boolean apply(MutableOptions mutableOptions, java.util.List<DecompilerComment> commentList, BytecodeMeta bytecodeMeta)
-
-