本文整理了Java中org.eclipse.jdt.core.Flags.isVolatile()
方法的一些代码示例,展示了Flags.isVolatile()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flags.isVolatile()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.Flags
类名称:Flags
方法名:isVolatile
[英]Returns whether the given integer includes the volatile
modifier.
[中]返回给定整数是否包含volatile
修饰符。
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public static boolean isVolatile(IMember member) throws JavaModelException{
return Flags.isVolatile(member.getFlags());
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
public static boolean isVolatile(IMember member) throws JavaModelException{
return Flags.isVolatile(member.getFlags());
}
代码示例来源:origin: eclipse/eclipse.jdt.ls
public static boolean isVolatile(IMember member) throws JavaModelException{
return Flags.isVolatile(member.getFlags());
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation
public static boolean isVolatile(IMember member) throws JavaModelException{
return Flags.isVolatile(member.getFlags());
}
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools.ui
if (Flags.isVolatile(newModifiers)) {
if (buffer.length() > 0) {
buffer.append(separator);
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
if (isStrictfp(flags))
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
int len = sb.length();
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
int len = sb.length();
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
int len = sb.length();
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
int len = sb.length();
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
if (isTransient(flags))
sb.append("transient "); //$NON-NLS-1$
if (isVolatile(flags))
sb.append("volatile "); //$NON-NLS-1$
int len = sb.length();
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
private ImageDescriptor decorate(ImageDescriptor descriptor, int modifiers, boolean isField) {
int flags= 0;
if (Flags.isDeprecated(modifiers))
flags |= JavaElementImageDescriptor.DEPRECATED;
if (Flags.isStatic(modifiers))
flags |= JavaElementImageDescriptor.STATIC;
if (Flags.isFinal(modifiers))
flags |= JavaElementImageDescriptor.FINAL;
if (Flags.isSynchronized(modifiers))
flags |= JavaElementImageDescriptor.SYNCHRONIZED;
if (Flags.isAbstract(modifiers))
flags |= JavaElementImageDescriptor.ABSTRACT;
if (isField) {
if (Flags.isVolatile(modifiers))
flags |= JavaElementImageDescriptor.VOLATILE;
if (Flags.isTransient(modifiers))
flags |= JavaElementImageDescriptor.TRANSIENT;
}
return new JavaElementImageDescriptor(descriptor, flags, JavaElementImageProvider.SMALL_SIZE);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
result.addWarning(Messages.format(RefactoringCoreMessages.ExtractClassRefactoring_warning_field_is_transient, BasicElementLabels.getJavaElementName(field.getElementName())), JavaStatusContext.create(field));
if (Flags.isVolatile(flags)) {
result.addWarning(Messages.format(RefactoringCoreMessages.ExtractClassRefactoring_warning_field_is_volatile, BasicElementLabels.getJavaElementName(field.getElementName())), JavaStatusContext.create(field));
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
result.addWarning(Messages.format(RefactoringCoreMessages.ExtractClassRefactoring_warning_field_is_transient, BasicElementLabels.getJavaElementName(field.getElementName())), JavaStatusContext.create(field));
if (Flags.isVolatile(flags)) {
result.addWarning(Messages.format(RefactoringCoreMessages.ExtractClassRefactoring_warning_field_is_volatile, BasicElementLabels.getJavaElementName(field.getElementName())), JavaStatusContext.create(field));
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
if (Flags.isTransient(flags))
adornments |= JavaElementImageDescriptor.TRANSIENT;
if (Flags.isVolatile(flags))
adornments |= JavaElementImageDescriptor.VOLATILE;
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
if (Flags.isVolatile(modifiers))
flags |= JavaElementImageDescriptor.VOLATILE;
if (Flags.isTransient(modifiers))
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
if (Flags.isTransient(flags))
adornments |= JavaElementImageDescriptor.TRANSIENT;
if (Flags.isVolatile(flags))
adornments |= JavaElementImageDescriptor.VOLATILE;
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
if (Flags.isTransient(flags))
adornments |= JavaElementImageDescriptor.TRANSIENT;
if (Flags.isVolatile(flags))
adornments |= JavaElementImageDescriptor.VOLATILE;
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
if (Flags.isVolatile(modifiers))
flags|= JavaElementImageDescriptor.VOLATILE;
if (Flags.isTransient(modifiers))
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
if (Flags.isVolatile(modifiers))
flags|= JavaElementImageDescriptor.VOLATILE;
if (Flags.isTransient(modifiers))
内容来源于网络,如有侵权,请联系作者删除!