Java 类org.objectweb.asm.tree.TypeAnnotationNode 实例源码

项目:turbine    文件:IntegrationTestSupport.java   
private static void sortTypeAnnotations(List<TypeAnnotationNode> annos) {
  if (annos == null) {
    return;
  }
  annos.sort(
      Comparator.comparing((TypeAnnotationNode a) -> a.desc)
          .thenComparing(a -> String.valueOf(a.typeRef))
          .thenComparing(a -> String.valueOf(a.typePath))
          .thenComparing(a -> String.valueOf(a.values)));
}
项目:tascalate-async-await    文件:AsyncMethodTransformer.java   
protected static List<TypeAnnotationNode> copyTypeAnnotations(List<TypeAnnotationNode> originalAnnotations) {
    if (null == originalAnnotations || originalAnnotations.isEmpty()) {
        return null;
    }
    return originalAnnotations
        .stream()
        .map(t -> new TypeAnnotationNode(t.typeRef, t.typePath, t.desc))
        .collect(Collectors.toCollection(ArrayList::new));
}
项目:turbine    文件:IntegrationTestSupport.java   
private static void addTypesInTypeAnnotations(Set<String> types, List<TypeAnnotationNode> annos) {
  if (annos == null) {
    return;
  }
  annos.stream().forEach(a -> collectTypesFromAnnotation(types, a));
}
项目:tascalate-async-await    文件:BytecodeIntrospection.java   
static List<TypeAnnotationNode> visibleTypeAnnotationsOf(MethodNode methodNode) {
    return safeAnnotationsList(methodNode.visibleTypeAnnotations);
}
项目:tascalate-async-await    文件:BytecodeIntrospection.java   
static List<TypeAnnotationNode> visibleTypeAnnotationsOf(TryCatchBlockNode tryCatchBlockNode) {
    return safeAnnotationsList(tryCatchBlockNode.visibleTypeAnnotations);
}
项目:tascalate-async-await    文件:BytecodeIntrospection.java   
static List<TypeAnnotationNode> invisibleTypeAnnotationsOf(MethodNode methodNode) {
    return safeAnnotationsList(methodNode.invisibleTypeAnnotations);
}
项目:tascalate-async-await    文件:BytecodeIntrospection.java   
static List<TypeAnnotationNode> invisibleTypeAnnotationsOf(TryCatchBlockNode tryCatchBlockNode) {
    return safeAnnotationsList(tryCatchBlockNode.invisibleTypeAnnotations);
}