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/ex10/IsPublicStaticGuard.java

12 lines
309 B
Java
Raw Permalink Normal View History

2023-01-09 17:35:38 +00:00
package ex10;
import ch.usi.dag.disl.annotation.GuardMethod;
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
public class IsPublicStaticGuard {
@GuardMethod
public static boolean isGuard(final MethodStaticContext msc) {
return msc.isMethodPublic() && msc.isMethodStatic();
}
}