java.lang.Class.isLocalOrAnonymousClass()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(261)

本文整理了Java中java.lang.Class.isLocalOrAnonymousClass()方法的一些代码示例,展示了Class.isLocalOrAnonymousClass()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Class.isLocalOrAnonymousClass()方法的具体详情如下:
包路径:java.lang.Class
类名称:Class
方法名:isLocalOrAnonymousClass

Class.isLocalOrAnonymousClass介绍

[英]Returns true if this is a local class or an anonymous class. Returns false otherwise.
[中]如果这是本地类或匿名类,则返回true。否则返回false。

代码示例

代码示例来源:origin: org.apidesign.bck2brwsr/emul.mini

/**
 * Returns {@code true} if and only if the underlying class is a local
 * class.
 *
 * @return {@code true} if and only if this class is a local class.
 * @since 1.5
 */
public boolean isLocalClass() {
  return isLocalOrAnonymousClass() && !isAnonymousClass();
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * Returns {@code true} if and only if the underlying class is a local
 * class.
 *
 * @return {@code true} if and only if this class is a local class.
 * @since 1.5
 */
public boolean isLocalClass() {
  return isLocalOrAnonymousClass() && !isAnonymousClass();
}

代码示例来源:origin: com.jtransc/jtransc-rt

@JTranscSync
public boolean isLocalClass() {
  return isLocalOrAnonymousClass() && !isAnonymousClass();
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul.mini

/**
 * Returns {@code true} if and only if the underlying class is a member
 * class.
 *
 * @return {@code true} if and only if this class is a member class.
 * @since 1.5
 */
public boolean isMemberClass() {
  return getSimpleBinaryName() != null && !isLocalOrAnonymousClass();
}

代码示例来源:origin: jtulach/bck2brwsr

/**
 * Returns {@code true} if and only if the underlying class is a member
 * class.
 *
 * @return {@code true} if and only if this class is a member class.
 * @since 1.5
 */
public boolean isMemberClass() {
  return getSimpleBinaryName() != null && !isLocalOrAnonymousClass();
}

代码示例来源:origin: org.apidesign.bck2brwsr/emul.mini

return null;
if (isLocalOrAnonymousClass())
  return null;

代码示例来源:origin: jtulach/bck2brwsr

return null;
if (isLocalOrAnonymousClass())
  return null;

代码示例来源:origin: com.jtransc/jtransc-rt

@JTranscSync
public boolean isMemberClass() {
  return getSimpleBinaryName() != null && !isLocalOrAnonymousClass();
}

相关文章

Class类方法