本文整理了Java中java.lang.Class.isLocalOrAnonymousClass()
方法的一些代码示例,展示了Class.isLocalOrAnonymousClass()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Class.isLocalOrAnonymousClass()
方法的具体详情如下:
包路径:java.lang.Class
类名称: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();
}
内容来源于网络,如有侵权,请联系作者删除!