org.eclipse.jdt.internal.core.util.Util.getAnnotation()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(10.3k)|赞(0)|评价(0)|浏览(191)

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

Util.getAnnotation介绍

暂无

代码示例

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

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations) {
  if (binaryAnnotations == null) return Annotation.NO_ANNOTATIONS;
  int length = binaryAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  return annotations;
}
@Override

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations) {
  if (binaryAnnotations == null) return Annotation.NO_ANNOTATIONS;
  int length = binaryAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  return annotations;
}
public IMemberValuePair getDefaultValue() throws JavaModelException {

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations) {
  if (binaryAnnotations == null) return Annotation.NO_ANNOTATIONS;
  int length = binaryAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  return annotations;
}
public IMemberValuePair getDefaultValue() throws JavaModelException {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations) {
  if (binaryAnnotations == null) return Annotation.NO_ANNOTATIONS;
  int length = binaryAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  return annotations;
}
public IMemberValuePair getDefaultValue() throws JavaModelException {

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations) {
  if (binaryAnnotations == null) return Annotation.NO_ANNOTATIONS;
  int length = binaryAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  return annotations;
}
public IMemberValuePair getDefaultValue() throws JavaModelException {

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private IAnnotation[] getAnnotations(JavaElement annotationParent, IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  IAnnotation[] annotations = new IAnnotation[length + standardLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(annotationParent, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
public IMemberValuePair getDefaultValue() throws JavaModelException {

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

} else if (binaryValue instanceof IBinaryAnnotation) {
  memberValuePair.valueKind = IMemberValuePair.K_ANNOTATION;
  return getAnnotation(parent, (IBinaryAnnotation) binaryValue, memberValuePair.getMemberName());
} else if (binaryValue instanceof ClassSignature) {
  memberValuePair.valueKind = IMemberValuePair.K_CLASS;

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

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

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

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

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

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

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

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

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

protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations, long tagBits) {
  IAnnotation[] standardAnnotations = getStandardAnnotations(tagBits);
  if (binaryAnnotations == null)
    return standardAnnotations;
  int length = binaryAnnotations.length;
  int standardLength = standardAnnotations.length;
  int fullLength = length + standardLength;
  if (fullLength == 0) {
    return Annotation.NO_ANNOTATIONS;
  }
  IAnnotation[] annotations = new IAnnotation[fullLength];
  for (int i = 0; i < length; i++) {
    annotations[i] = Util.getAnnotation(this, binaryAnnotations[i], null);
  }
  System.arraycopy(standardAnnotations, 0, annotations, length, standardLength);
  return annotations;
}
private IAnnotation getAnnotation(char[][] annotationName) {

相关文章

Util类方法