Examples of rawReturnTypeReference()


Examples of lombok.ast.AnnotationMethodDeclaration.rawReturnTypeReference()

    int extraDims = dims == null ? 0 : dims.size();
    Node returnType = typeReference;
    if (extraDims > 0 && returnType instanceof TypeReference) {
      ((TypeReference)returnType).astArrayDimensions(((TypeReference)returnType).astArrayDimensions() + extraDims);
    }
    decl.rawReturnTypeReference(returnType);
    return posify(decl);
  }
 
  public Node createPackageDeclaration(List<Node> annotations, Node head, List<Node> tail) {
    PackageDeclaration decl = new PackageDeclaration();
View Full Code Here

Examples of lombok.ast.AnnotationMethodDeclaration.rawReturnTypeReference()

     
      if (hasFlag(FlagKey.METHODS_ARE_ANNMETHODS)) {
        AnnotationMethodDeclaration md = new AnnotationMethodDeclaration();
        md.astModifiers((Modifiers) toTree(node.getModifiers()));
        md.astMethodName(setPos(node, new Identifier().astValue(name)));
        md.rawReturnTypeReference(toTree(node.getReturnType(), FlagKey.TYPE_REFERENCE));
        md.rawDefaultValue(toTree(node.getDefaultValue()));
        addJavadoc(md, node.mods);
        set(node, md);
        return;
      }
View Full Code Here

Examples of lombok.ast.AnnotationMethodDeclaration.rawReturnTypeReference()

      md.astModifiers((Modifiers) toTree(node.getModifiers()));
      md.astMethodName(setPos(node, new Identifier().astValue(name)));
      fillList(node.getThrows(), md.rawThrownTypeReferences(), FlagKey.TYPE_REFERENCE);
      fillList(node.getTypeParameters(), md.rawTypeVariables());
      fillList(node.getParameters(), md.rawParameters(), FlagKey.NO_VARDECL_FOLDING, FlagKey.VARDEF_IS_DEFINITION);
      md.rawReturnTypeReference(toTree(node.getReturnType(), FlagKey.TYPE_REFERENCE));
      addJavadoc(md, node.mods);
      set(node, md);
    }
   
    @Override public void visitAnnotation(JCAnnotation node) {
View Full Code Here

Examples of lombok.ast.MethodDeclaration.rawReturnTypeReference()

    int extraDims = dims == null ? 0 : dims.size();
    Node returnType = resultType;
    if (extraDims > 0 && returnType instanceof TypeReference) {
      ((TypeReference)returnType).astArrayDimensions(((TypeReference)returnType).astArrayDimensions() + extraDims);
    }
    decl.rawReturnTypeReference(returnType);
    if (typeParameters instanceof TemporaryNode.OrphanedTypeVariables) {
      TemporaryNode.OrphanedTypeVariables otv = (TemporaryNode.OrphanedTypeVariables)typeParameters;
      if (otv.variables != null) for (Node typeParameter : otv.variables) {
        if (typeParameter != null) decl.rawTypeVariables().addToEnd(typeParameter);
      }
View Full Code Here

Examples of lombok.ast.MethodDeclaration.rawReturnTypeReference()

      md.astModifiers((Modifiers) toTree(node.getModifiers()));
      md.astMethodName(setPos(node, new Identifier().astValue(name)));
      fillList(node.getThrows(), md.rawThrownTypeReferences(), FlagKey.TYPE_REFERENCE);
      fillList(node.getTypeParameters(), md.rawTypeVariables());
      fillList(node.getParameters(), md.rawParameters(), FlagKey.NO_VARDECL_FOLDING, FlagKey.VARDEF_IS_DEFINITION);
      md.rawReturnTypeReference(toTree(node.getReturnType(), FlagKey.TYPE_REFERENCE));
      addJavadoc(md, node.mods);
      set(node, md);
    }
   
    @Override public void visitAnnotation(JCAnnotation node) {
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.