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

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

Introduction

In this page you can find the example usage for org.eclipse.jdt.core.dom SimpleType 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(SimpleType node) {
    String name = node.getName().getFullyQualifiedName();
    if (StringUtils.isQualified(name))
        type = conditionalWrapWithAnnotatedType(lf.createQualifiedType(name), node.annotations());
    else/*from   w  w w . j a v  a  2s .  c  om*/
        type = conditionalWrapWithAnnotatedType(lf.createSimpleType(name), node.annotations());
    return false;
}