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/ex9/IsNotConstructorOrStaticInitializerGuard.java

12 lines
358 B
Java
Raw Normal View History

2023-01-07 16:48:53 +00:00
package ex9;
import ch.usi.dag.disl.annotation.GuardMethod;
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
2023-01-09 17:25:05 +00:00
public class IsNotConstructorOrStaticInitializerGuard {
2023-01-07 16:48:53 +00:00
@GuardMethod
public static boolean isNotConstructorOrStatic(final MethodStaticContext msc) {
2023-01-09 17:25:05 +00:00
return !msc.isMethodInitializer() && !msc.isMethodConstructor();
2023-01-07 16:48:53 +00:00
}
}