Package lombok.ast

Examples of lombok.ast.AnnotationElement.astName()


      a.rawAnnotationTypeReference(toTree(node.getAnnotationType(), FlagKey.TYPE_REFERENCE));
      for (JCExpression elem : node.getArguments()) {
        AnnotationElement e = new AnnotationElement();
        if (elem instanceof JCAssign) {
          JCExpression rawName = ((JCAssign) elem).getVariable();
          if (rawName instanceof JCIdent) e.astName(setPos(rawName, new Identifier().astValue(((JCIdent)rawName).getName().toString())));
          elem = ((JCAssign) elem).getExpression();
        }
        e.rawValue(toTree(elem));
        a.astElements().addToEnd(e);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.