Code example for Method

Methods: getModifiersgetReturnType

0
    if (drawMethod != null)
    { 
      try 
      { 
        isKeepAspectRatioMethod = aClass.getMethod("isPreserveAspectRatio", EMPTY_PARAMS);
        final int modifiers = isKeepAspectRatioMethod.getModifiers();
        if (Modifier.isPublic(modifiers) == false ||
            Modifier.isAbstract(modifiers) ||
            Modifier.isStatic(modifiers) ||
            Boolean.TYPE.equals(isKeepAspectRatioMethod.getReturnType()) == false)
        { 
          isKeepAspectRatioMethod = null;
        } 
      } 
      catch (NoSuchMethodException e)
      { 
        // ignored .. 
      } 
 
      try 
Contextual code suggestions in your IDE  Get Codota for Java