本文整理了Java中org.eclipse.jdt.core.Flags.isSynthetic()
方法的一些代码示例,展示了Flags.isSynthetic()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Flags.isSynthetic()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.Flags
类名称:Flags
方法名:isSynthetic
[英]Returns whether the given integer includes the indication that the element is synthetic.
[中]返回给定整数是否包含元素为合成的指示。
代码示例来源:origin: eclipse/eclipse.jdt.ls
public static boolean isSynthetic(IMember member) throws JavaModelException{
return Flags.isSynthetic(member.getFlags());
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core.manipulation
public static boolean isSynthetic(IMember member) throws JavaModelException{
return Flags.isSynthetic(member.getFlags());
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
public static boolean isSynthetic(IMember member) throws JavaModelException{
return Flags.isSynthetic(member.getFlags());
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public static boolean isSynthetic(IMember member) throws JavaModelException{
return Flags.isSynthetic(member.getFlags());
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
@Override
public boolean select(Viewer viewer, Object parent, Object element) {
if (!(element instanceof IMember))
return true;
IMember member= (IMember)element;
if (!(member.isBinary()))
return true;
try {
return !Flags.isSynthetic(member.getFlags());
} catch (JavaModelException e) {
return true;
}
}
}
代码示例来源:origin: eclipse/eclipse.jdt.ls
private boolean isSyntheticElement(IJavaElement element) {
if (!(element instanceof IMember)) {
return false;
}
IMember member= (IMember)element;
if (!(member.isBinary())) {
return false;
}
try {
return Flags.isSynthetic(member.getFlags());
} catch (JavaModelException e) {
return false;
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
public boolean select(Viewer viewer, Object parent, Object element) {
if (!(element instanceof IMember))
return true;
IMember member= (IMember)element;
if (!(member.isBinary()))
return true;
try {
return !Flags.isSynthetic(member.getFlags());
} catch (JavaModelException e) {
return true;
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
@Override
public boolean select(Viewer viewer, Object parent, Object element) {
if (!(element instanceof IMember))
return true;
IMember member= (IMember)element;
if (!(member.isBinary()))
return true;
try {
return !Flags.isSynthetic(member.getFlags());
} catch (JavaModelException e) {
return true;
}
}
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui
appendTypeDeclaration((IType) child, new SubProgressMonitor(monitor, 1));
} else if (child instanceof IField) {
if (stub && !Flags.isEnum(flags) && !Flags.isSynthetic(flags))
appendFieldDeclaration((IField) child);
} else if (child instanceof IMethod) {
if (method.isConstructor())
skip= false;
skip= skip || Flags.isSynthetic(flags) || Flags.isBridge(flags);
if (!skip)
appendMethodDeclaration(method);
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui
appendTypeDeclaration((IType) child, new SubProgressMonitor(monitor, 1));
} else if (child instanceof IField) {
if (stub && !Flags.isEnum(flags) && !Flags.isSynthetic(flags))
appendFieldDeclaration((IField) child);
} else if (child instanceof IMethod) {
if (method.isConstructor())
skip= false;
skip= skip || Flags.isSynthetic(flags) || Flags.isBridge(flags);
if (!skip)
appendMethodDeclaration(method);
代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui
appendTypeDeclaration((IType) child, new SubProgressMonitor(monitor, 1));
} else if (child instanceof IField) {
if (stub && !Flags.isEnum(flags) && !Flags.isSynthetic(flags))
appendFieldDeclaration((IField) child);
} else if (child instanceof IMethod) {
if (method.isConstructor())
skip= false;
skip= skip || Flags.isSynthetic(flags) || Flags.isBridge(flags);
if (!skip)
appendMethodDeclaration(method);
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
isBreakingChange= Flags.isSynthetic(meth.getModifiers());
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
isBreakingChange = Flags.isSynthetic(meth.getModifiers());
isBreakingChange = Flags.isSynthetic(meth.getModifiers());
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
String name = field.getName();
if (Flags.isSynthetic(access)) {
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
if (Flags.isSynthetic(access)) {
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
private void getDeltaForMethod(IApiMethod method) {
int access = method.getModifiers();
if (Flags.isSynthetic(access)) {
代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.api.tools
private void getDeltaForField(IApiField field) {
int access = field.getModifiers();
if (Flags.isSynthetic(access)) {
内容来源于网络,如有侵权,请联系作者删除!