jodd.proxetta.pointcuts.AllGettersPointcut Maven / Gradle / Ivy
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved.
package jodd.proxetta.pointcuts;
import jodd.proxetta.MethodInfo;
/**
* Pointcut on all public non final getters methods.
*/
public class AllGettersPointcut extends ProxyPointcutSupport {
public boolean apply(MethodInfo methodInfo) {
return
isPublic(methodInfo)
&& hasReturnValue(methodInfo)
&& (matchMethodName(methodInfo, "get*") || (matchMethodName(methodInfo, "is*")))
&& hasNoArguments(methodInfo)
;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy