
com.newrelic.agent.instrumentation.methodmatchers.AllMethodsMatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of newrelic-agent Show documentation
Show all versions of newrelic-agent Show documentation
Jar required to run with a java application to monitor performance.
The newest version!
/*
*
* * Copyright 2020 New Relic Corporation. All rights reserved.
* * SPDX-License-Identifier: Apache-2.0
*
*/
package com.newrelic.agent.instrumentation.methodmatchers;
import java.util.Set;
import org.objectweb.asm.commons.Method;
/**
* A method matcher that matches all methods except constructors.
*/
public final class AllMethodsMatcher implements MethodMatcher {
@Override
public boolean matches(int access, String name, String desc, Set annotations) {
return !"".equals(name);
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
return true;
}
@Override
public int hashCode() {
return super.hashCode();
}
@Override
public Method[] getExactMethods() {
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy