public static boolean hasPossibleStaticProperty ( ClassNode cNode , String methodName ) { // assume explicit static method call checked first so we can assume a simple check here if ( ! methodName . startsWith ( "get" ) && ! methodName . startsWith ( "is" ) ) { return false ; } String propName = getPropNameForAccessor ( methodName ) ; PropertyNode pNode = getStaticProperty ( cNode , propName ) ; return pNode != null && ( methodName . startsWith ( "get" ) || boolean_TYPE . equals ( pNode . getType ( ) ) ) ; }
Return true if we have a static accessor