org.eclipse.jdt.internal.compiler.lookup.Binding.getAnnotationTagBits()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(7.2k)|赞(0)|评价(0)|浏览(103)

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

Binding.getAnnotationTagBits介绍

[英]Compute the tagbits for standard annotations. For source types, these could require lazily resolving corresponding annotation nodes, in case of forward references. For type use bindings, this method still returns the tagbits corresponding to the type declaration binding.
[中]计算标准注释的标记位。对于源类型,在正向引用的情况下,可能需要延迟解析相应的注释节点。对于类型使用绑定,此方法仍然返回与类型声明绑定对应的标记位。

代码示例

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

@Override
public boolean isDeprecated(Element e) {
  if (!(e instanceof ElementImpl)) {
    return false;
  }
  return (((ElementImpl)e)._binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

@Override
public boolean isDeprecated(Element e) {
  if (!(e instanceof ElementImpl)) {
    return false;
  }
  return (((ElementImpl)e)._binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0;
}

代码示例来源:origin: org.eclipse.jdt.compiler/apt

@Override
public boolean isDeprecated(Element e) {
  if (!(e instanceof ElementImpl)) {
    return false;
  }
  return (((ElementImpl)e)._binding.getAnnotationTagBits() & TagBits.AnnotationDeprecated) != 0;
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}
public void setFields(FieldBinding[] fields) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}
public void setFields(FieldBinding[] fields) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
public AnnotationHolder retrieveAnnotationHolder(Binding binding, boolean forceInitialization) {
  if (!isPrototype())
    return this.prototype.retrieveAnnotationHolder(binding, forceInitialization);
  if (forceInitialization)
    binding.getAnnotationTagBits(); // ensure annotations are up to date
  return super.retrieveAnnotationHolder(binding, false);
}

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

@Override
AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

AnnotationBinding[] retrieveAnnotations(Binding binding) {
  
  if (!isPrototype())
    return this.prototype.retrieveAnnotations(binding);
  
  return AnnotationBinding.addStandardAnnotations(super.retrieveAnnotations(binding), binding.getAnnotationTagBits(), this.environment);
}

相关文章