Example usage for java.lang.reflect Member isSynthetic

List of usage examples for java.lang.reflect Member isSynthetic

Introduction

In this page you can find the example usage for java.lang.reflect Member isSynthetic.

Prototype

public boolean isSynthetic();

Source Link

Document

Returns true if this member was introduced by the compiler; returns false otherwise.

Usage

From source file:EnumSpy.java

private static String synthetic(Member m) {
    return (m.isSynthetic() ? "[ synthetic ]" : "");
}

From source file:ModifierUtil.java

public static boolean isSynthetic(Member member) {

    return member.isSynthetic();
}

From source file:com.clark.func.Functions.java

/**
 * Check a Member for basic accessibility.
 * /* w w w . j  ava2 s .c  o m*/
 * @param m
 *            Member to check
 * @return true if <code>m</code> is accessible
 */
static boolean isAccessible(Member m) {
    return m != null && Modifier.isPublic(m.getModifiers()) && !m.isSynthetic();
}

From source file:org.pircbotx.TestUtils.java

public static boolean isRealMember(Member member) {
    return !member.isSynthetic() && !member.getName().startsWith("__");
}

From source file:org.robobinding.util.MemberUtils.java

/**
 * Returns whether a Member is accessible.
 * //w w w .  j a v a2 s .c o m
 * @param m
 *            Member to check
 * @return true if <code>m</code> is accessible
 */
static boolean isAccessible(final Member m) {
    return m != null && Modifier.isPublic(m.getModifiers()) && !m.isSynthetic();
}