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 classRecoveryOption.BooleanROstatic classRecoveryOption.ConditionalRO<X,T>static classRecoveryOption.IntROstatic classRecoveryOption.TrooleanRO
-
Field Summary
Fields Modifier and Type Field Description protected PermittedOptionProvider.Argument<T>arg(package private) UnaryFunction<BytecodeMeta,java.lang.Boolean>canhelpprivate DecompilerCommentdecompilerCommentprotected Tvalue
-
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 booleanapply(MutableOptions mutableOptions, java.util.List<DecompilerComment> commentList, BytecodeMeta bytecodeMeta)(package private) booleanapplyComment(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)
-
-