JSema implements Sema { IAnnotationBinding[] resolvePackageAnnotations(String packageName) { return ASTUtils.resolvePackageAnnotations(ast, packageName); } JSema(AST ast); JType type(ITypeBinding typeBinding); JPackageSymbol packageSymbol(IPackageBinding packageBinding); JTypeSymbol typeSymbol(ITypeBinding typeBinding); JMethodSymbol methodSymbol(IMethodBinding methodBinding); JVariableSymbol variableSymbol(IVariableBinding variableBinding); @Override Type getClassType(String fullyQualifiedName);  }
@Test void resolvePackageAnnotations() { assertThat(sema.resolvePackageAnnotations("org.sonar.java.resolve.targets.annotations")) .hasSize(1); }