1 46 package org.codehaus.groovy.runtime; 47 48 import java.lang.reflect.Method ; 49 import java.lang.reflect.Modifier ; 50 51 57 public class MethodHelper { 58 59 public static boolean isStatic(Method method) { 60 int flags = Modifier.STATIC; 61 return (method.getModifiers() & (flags)) == flags; 62 } 63 64 public static boolean isPublic(Method method) { 65 int flags = Modifier.PUBLIC; 66 return (method.getModifiers() & (flags)) == flags; 67 } 68 } 69 | Popular Tags |