Example usage for org.eclipse.jdt.internal.compiler.lookup AnnotationHolder getAnnotations

List of usage examples for org.eclipse.jdt.internal.compiler.lookup AnnotationHolder getAnnotations

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.lookup AnnotationHolder getAnnotations.

Prototype

AnnotationBinding[] getAnnotations() 

Source Link

Usage

From source file:org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.java

License:Open Source License

AnnotationBinding[] retrieveAnnotations(Binding binding) {
    AnnotationHolder holder = retrieveAnnotationHolder(binding, true);
    return holder == null ? Binding.NO_ANNOTATIONS : holder.getAnnotations();
}