This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
AJP/DiSLProject2022/src-profiler/ex11/IsDynamicTargetGuard.java

12 lines
341 B
Java
Raw Permalink Normal View History

2023-01-20 17:26:55 +00:00
package ex11;
import ch.usi.dag.disl.annotation.GuardMethod;
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
public class IsDynamicTargetGuard {
2023-01-20 17:26:55 +00:00
@GuardMethod
public static boolean guard(final MethodStaticContext msc) {
return !msc.isMethodConstructor() && !msc.isMethodPrivate() && !msc.isMethodStatic();
2023-01-20 17:26:55 +00:00
}
}