Class TryCatchMatching
java.lang.Object
net.covers1624.coffeegrinder.bytecode.matching.TryCatchMatching
Created by covers1624 on 20/6/21.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable ThrowmatchThrow(@Nullable Instruction insn) Matches a singleThrowinstruction.static @Nullable TryCatchmatchTryCatch(@Nullable Instruction insn) Matches a singleTryCatchinstruction.static @Nullable TryFinallymatchTryFinally(@Nullable Instruction insn) Matches a singleTryFinallyinstruction.
-
Constructor Details
-
TryCatchMatching
public TryCatchMatching()
-
-
Method Details
-
matchTryCatch
Matches a singleTryCatchinstruction.- Parameters:
insn- The instruction to match.- Returns:
- The
TryCatchinstruction or null.
-
matchTryFinally
Matches a singleTryFinallyinstruction.- Parameters:
insn- The instruction to match.- Returns:
- The
TryFinallyinstruction or null.
-
matchThrow
Matches a singleThrowinstruction.- Parameters:
insn- The instruction to match.- Returns:
- The
Throwinstruction or null.
-