List of usage examples for java.lang.reflect Member getModifiers
public int getModifiers();
From source file:ModifierUtil.java
public static boolean isAbstract(Member member) { return Modifier.isAbstract(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isVolatile(Member member) { return Modifier.isVolatile(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isInterface(Member member) { return Modifier.isInterface(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isProtected(Member member) { return Modifier.isProtected(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isTransient(Member member) { return Modifier.isTransient(member.getModifiers()); }
From source file:ModifierUtil.java
public static boolean isSynchronized(Member member) { return Modifier.isSynchronized(member.getModifiers()); }
From source file:org.jiemamy.utils.reflect.ModifierUtil.java
/** * ????????// w ww . ja va2s. c o m * * @param member * @return ?????{@code true}?????????{@code false} * @throws IllegalArgumentException ?{@code null}??? */ public static boolean isInstanceMember(Member member) { Validate.notNull(member); int mod = member.getModifiers(); return Modifier.isStatic(mod) == false; }
From source file:org.jiemamy.utils.reflect.ModifierUtil.java
/** * {@code final}???????/*from w w w.j a v a2 s . c o m*/ * * @param member * @return {@code final}????{@code true}?????????{@code false} * @throws IllegalArgumentException ?{@code null}??? */ public static boolean isFinal(Member member) { Validate.notNull(member); return Modifier.isFinal(member.getModifiers()); }
From source file:org.jiemamy.utils.reflect.ModifierUtil.java
/** * {@code public}???????/*from w ww .ja v a 2 s .com*/ * * @param member * @return ????{@code true}?????????{@code false} * @throws IllegalArgumentException ?{@code null}??? */ public static boolean isPublic(Member member) { Validate.notNull(member); return Modifier.isPublic(member.getModifiers()); }
From source file:org.jiemamy.utils.reflect.ModifierUtil.java
/** * {@code public},{@code static},{@code final}????{@code true}?????????{@code false}?? * /*from www . j a v a 2 s . com*/ * @param member * @return {@code public},{@code static},{@code final}????{@code true}?????????{@code false} * @throws IllegalArgumentException ?{@code null}??? */ public static boolean isPublicStaticFinal(Member member) { Validate.notNull(member); return isPublicStaticFinal(member.getModifiers()); }