Example usage for org.eclipse.jdt.core.dom WildcardType annotations

List of usage examples for org.eclipse.jdt.core.dom WildcardType annotations

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom WildcardType annotations.

Prototype

public List annotations() 

Source Link

Document

Returns the live ordered list of annotations for this Type node (added in JLS8 API).

Usage

From source file:org.whole.lang.java.util.JDTTransformerVisitor.java

License:Open Source License

public boolean visit(WildcardType node) {
    if (acceptChild(node.getBound())) {
        type = conditionalWrapWithAnnotatedType(
                lf.createWildcardType(type, lf.createUpperBound(node.isUpperBound())), node.annotations());
    } else {/*w w  w.  jav  a2s.  c  o  m*/
        type = conditionalWrapWithAnnotatedType(lf.createWildcardType(), node.annotations());
    }
    return false;
}