List of usage examples for java.lang.reflect Member getModifiers
public int getModifiers();
From source file:Main.java
protected static boolean isConcrete(Member member) { return (member.getModifiers() & 1536) == 0; }
From source file:Main.java
public static boolean isConcrete(Member member) { int mod = member.getModifiers(); return (mod & (Modifier.INTERFACE | Modifier.ABSTRACT)) == 0; }
From source file:Main.java
public static boolean isConcrete(Member paramMember) { return (0x600 & paramMember.getModifiers()) == 0; }
From source file:Util.java
/** * Returns true if a Member is accessible via reflection under normal Java access * controls./*ww w. ja va 2s. co m*/ * * @since 1.2 */ public static boolean isAccessible(Member member) { return Modifier.isPublic(member.getModifiers()) && Modifier.isPublic(member.getDeclaringClass().getModifiers()); }
From source file:ModifierUtil.java
public static boolean isFinal(Member member) { return Modifier.isFinal(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isNative(Member member) { return Modifier.isNative(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isPublic(Member member) { return Modifier.isPublic(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isStatic(Member member) { return Modifier.isStatic(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isStrict(Member member) { return Modifier.isStrict(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isPrivate(Member member) { return Modifier.isPrivate(member.getModifiers()); }