11 lines
342 B
Java
11 lines
342 B
Java
package ex9;
|
|
|
|
import ch.usi.dag.disl.annotation.GuardMethod;
|
|
import ch.usi.dag.disl.staticcontext.MethodStaticContext;
|
|
|
|
public class IsNotConstructorOrStaticGuard {
|
|
@GuardMethod
|
|
public static boolean isNotConstructorOrStatic(final MethodStaticContext msc) {
|
|
return !msc.isMethodStatic() && !msc.isMethodConstructor();
|
|
}
|
|
}
|