Lower.java 文件源码

java
阅读 31 收藏 0 点赞 0 评论 0

项目:turbine 作者:
/** Lower type annotations in a class declaration's signature. */
private ImmutableList<TypeAnnotationInfo> classTypeAnnotations(SourceTypeBoundClass info) {
  ImmutableList.Builder<TypeAnnotationInfo> result = ImmutableList.builder();
  {
    if (info.superClassType() != null) {
      lowerTypeAnnotations(
          result,
          info.superClassType(),
          TargetType.SUPERTYPE,
          new TypeAnnotationInfo.SuperTypeTarget(-1));
    }
    int idx = 0;
    for (Type i : info.interfaceTypes()) {
      lowerTypeAnnotations(
          result, i, TargetType.SUPERTYPE, new TypeAnnotationInfo.SuperTypeTarget(idx++));
    }
  }
  typeParameterAnnotations(
      result,
      info.typeParameterTypes().values(),
      TargetType.CLASS_TYPE_PARAMETER,
      TargetType.CLASS_TYPE_PARAMETER_BOUND);
  return result.build();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号