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/ex2/IsNotTriviallyThreadGuard.java

15 lines
439 B
Java
Raw Permalink Normal View History

2023-01-02 14:18:34 +00:00
package ex2;
import ch.usi.dag.disl.annotation.GuardMethod;
import ch.usi.dag.disl.staticcontext.ClassStaticContext;
2023-01-04 16:23:12 +00:00
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
2023-01-02 14:18:34 +00:00
public class IsNotTriviallyThreadGuard {
@GuardMethod
2023-01-04 16:23:12 +00:00
public static boolean isNotTriviallyThread(final ClassStaticContext csc, final MethodStaticContext msc) {
return !msc.isMethodStatic() && !IsTriviallyThreadGuard.isThread(csc, msc);
2023-01-02 14:18:34 +00:00
}
2023-01-04 16:23:12 +00:00
2023-01-02 14:18:34 +00:00
}