Examples of rawArguments()


Examples of lombok.ast.AlternateConstructorInvocation.rawArguments()

      }
    }
   
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
        result.rawArguments().addToEnd(arg);
      }
    }
    return posify(result);
  }
 
View Full Code Here

Examples of lombok.ast.AlternateConstructorInvocation.rawArguments()

      if (sel instanceof JCIdent) {
        String name = ((JCIdent) sel).getName().toString();
        if ("this".equals(name)) {
          AlternateConstructorInvocation aci = new AlternateConstructorInvocation();
          fillList(node.getTypeArguments(), aci.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE);
          fillList(node.getArguments(), aci.rawArguments());
          set(node, aci);
          setConversionPositionInfo(aci, "this", getPosition(sel));
          return;
        }
       
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawArguments()

      set(node, expr);
    }
   
    @Override public void visitNewClass(JCNewClass node) {
      ConstructorInvocation inv = new ConstructorInvocation();
      fillList(node.getArguments(), inv.rawArguments());
      fillList(node.getTypeArguments(), inv.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE);
      inv.rawTypeReference(toTree(node.getIdentifier(), FlagKey.TYPE_REFERENCE));
      inv.rawQualifier(toTree(node.getEnclosingExpression()));
      Node n = toTree(node.getClassBody());
      if (n instanceof TypeDeclaration) {
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawArguments()

      }
    }
   
    if (methodArguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)methodArguments).arguments) {
        constructorInvocation.rawArguments().addToEnd(arg);
      }
    }
   
    return posify(constructorInvocation);
  }
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawArguments()

      }
    }
   
    if (args instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)args).arguments) {
        result.rawArguments().addToEnd(arg);
      }
    } else DanglingNodes.addDanglingNode(result, args);
   
    return posify(result);
  }
View Full Code Here

Examples of lombok.ast.EnumConstant.rawArguments()

  public Node createEnumConstant(List<Node> annotations, Node name, Node arguments, Node body) {
    EnumConstant result = new EnumConstant().astName(createIdentifierIfNeeded(name, currentPos())).rawBody(body);
    if (annotations != null) for (Node n : annotations) if (n != null) result.rawAnnotations().addToEnd(n);
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
        result.rawArguments().addToEnd(arg);
      }
    }
    return posify(result);
  }
 
View Full Code Here

Examples of lombok.ast.EnumConstant.rawArguments()

              setPos(def, ec);
              ec.astName(new Identifier().astValue(vd.getName().toString()));
              fillList(vd.mods.annotations, ec.rawAnnotations());
              if (vd.init instanceof JCNewClass) {
                JCNewClass init = (JCNewClass) vd.init;
                fillList(init.getArguments(), ec.rawArguments());
                if (init.getClassBody() != null) {
                  NormalTypeBody constantBody = setPos(init, new NormalTypeBody());
                  fillList(init.getClassBody().getMembers(), constantBody.rawMembers());
                  ec.astBody(constantBody);
                }
View Full Code Here

Examples of lombok.ast.MethodInvocation.rawArguments()

        setPos(sel, id.astValue(name));
        sel = ((JCFieldAccess) sel).getExpression();
      }
      inv.astName(id).rawOperand(toTree(sel));
      fillList(node.getTypeArguments(), inv.rawMethodTypeArguments(), FlagKey.TYPE_REFERENCE);
      fillList(node.getArguments(), inv.rawArguments());
      set(node, inv);
    }
   
    @Override public void visitNewArray(JCNewArray node) {
      ArrayInitializer init = null;
View Full Code Here

Examples of lombok.ast.MethodInvocation.rawArguments()

      }
    } else DanglingNodes.addDanglingNode(mi, typeArguments);
   
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
        mi.rawArguments().addToEnd(arg);
      }
    } else DanglingNodes.addDanglingNode(mi, arguments);
   
    source.registerStructure(mi, dot);
   
View Full Code Here

Examples of lombok.ast.MethodInvocation.rawArguments()

    Identifier id = createIdentifierIfNeeded(identifier, currentPos());
   
    if (methodArguments instanceof TemporaryNode.MethodArguments) {
      MethodInvocation invoke = new MethodInvocation().astName(id);
      for (Node arg : ((TemporaryNode.MethodArguments)methodArguments).arguments) {
        invoke.rawArguments().addToEnd(arg);
      }
      return posify(invoke);
    } else {
      VariableReference ref = new VariableReference().astIdentifier(id);
      DanglingNodes.addDanglingNode(ref, methodArguments);
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.