Class TryWithResourcesJavac11Filter.Matcher
- java.lang.Object
-
- org.jacoco.core.internal.analysis.filter.AbstractMatcher
-
- org.jacoco.core.internal.analysis.filter.TryWithResourcesJavac11Filter.Matcher
-
- Enclosing class:
- TryWithResourcesJavac11Filter
private class TryWithResourcesJavac11Filter.Matcher extends AbstractMatcher
r = ...; try { ... } body-only-finally { if (r != null) r.close(); } catch (Throwable primaryExc) { if (r != null) try { r.close(); } catch (Throwable t) { primaryExc.addSuppressed(t); } throw primaryExc; }
null
check for resource is omitted when it is initialized usingnew
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
expectedOwner
private boolean
withNullCheck
-
Fields inherited from class org.jacoco.core.internal.analysis.filter.AbstractMatcher
cursor, vars
-
-
Constructor Summary
Constructors Modifier Constructor Description private
Matcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
match(org.objectweb.asm.tree.AbstractInsnNode start, IFilterOutput output, boolean withNullCheck)
private void
nextIsClose()
private boolean
nextIsJavacClose()
-
Methods inherited from class org.jacoco.core.internal.analysis.filter.AbstractMatcher
firstIsALoad0, next, nextIs, nextIsInvokeStatic, nextIsInvokeSuper, nextIsInvokeVirtual, nextIsSwitch, nextIsType, nextIsVar, skipNonOpcodes, skipNonOpcodes
-
-
-
-
Method Detail
-
match
void match(org.objectweb.asm.tree.AbstractInsnNode start, IFilterOutput output, boolean withNullCheck)
-
nextIsJavacClose
private boolean nextIsJavacClose()
-
nextIsClose
private void nextIsClose()
-
-