Examples of rawConstructorTypeArguments()


Examples of lombok.ast.AlternateConstructorInvocation.rawConstructorTypeArguments()

  public Node createAlternateConstructorInvocation(Node typeArguments, Node arguments) {
    AlternateConstructorInvocation result = new AlternateConstructorInvocation();
   
    if (typeArguments instanceof TemporaryNode.TypeArguments) {
      for (Node arg : ((TemporaryNode.TypeArguments)typeArguments).arguments) {
        result.rawConstructorTypeArguments().addToEnd(arg);
      }
    }
   
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
View Full Code Here

Examples of lombok.ast.AlternateConstructorInvocation.rawConstructorTypeArguments()

      Identifier id = new Identifier();
      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.rawConstructorTypeArguments()

    }
   
    @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) {
        NormalTypeBody body = ((ClassDeclaration) n).astBody();
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawConstructorTypeArguments()

        .rawTypeReference(typeReference)
        .rawAnonymousClassBody(classBody);
   
    if (constructorTypeArgs instanceof TemporaryNode.TypeArguments) {
      for (Node arg : ((TemporaryNode.TypeArguments)constructorTypeArgs).arguments) {
        constructorInvocation.rawConstructorTypeArguments().addToEnd(arg);
      }
    }
   
    if (methodArguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)methodArguments).arguments) {
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawConstructorTypeArguments()

        .rawTypeReference(type)
        .rawAnonymousClassBody(anonymousClassBody);
   
    if (constructorTypeArgs instanceof TemporaryNode.TypeArguments) {
      for (Node arg : ((TemporaryNode.TypeArguments)constructorTypeArgs).arguments) {
        result.rawConstructorTypeArguments().addToEnd(arg);
      }
    }
   
    if (args instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)args).arguments) {
View Full Code Here

Examples of lombok.ast.SuperConstructorInvocation.rawConstructorTypeArguments()

  public Node createSuperConstructorInvocation(org.parboiled.Node<Node> dot, Node qualifier, Node typeArguments, Node arguments) {
    SuperConstructorInvocation result = new SuperConstructorInvocation().rawQualifier(qualifier);
   
    if (typeArguments instanceof TemporaryNode.TypeArguments) {
      for (Node arg : ((TemporaryNode.TypeArguments)typeArguments).arguments) {
        result.rawConstructorTypeArguments().addToEnd(arg);
      }
    }
   
    if (arguments instanceof TemporaryNode.MethodArguments) {
      for (Node arg : ((TemporaryNode.MethodArguments)arguments).arguments) {
View Full Code Here

Examples of lombok.ast.SuperConstructorInvocation.rawConstructorTypeArguments()

          return;
        }
       
        if ("super".equals(name)) {
          SuperConstructorInvocation sci = new SuperConstructorInvocation();
          fillList(node.getTypeArguments(), sci.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE);
          fillList(node.getArguments(), sci.rawArguments());
          set(node, sci);
          setConversionPositionInfo(sci, "super", getPosition(sel));
          return;
        }
View Full Code Here

Examples of lombok.ast.SuperConstructorInvocation.rawConstructorTypeArguments()

        sel = null;
      } else if (sel instanceof JCFieldAccess) {
        String name = ((JCFieldAccess) sel).getIdentifier().toString();
        if ("super".equals(name)) {
          SuperConstructorInvocation sci = new SuperConstructorInvocation();
          fillList(node.getTypeArguments(), sci.rawConstructorTypeArguments(), FlagKey.TYPE_REFERENCE);
          fillList(node.getArguments(), sci.rawArguments());
          sci.rawQualifier(toTree(((JCFieldAccess) sel).getExpression()));
          set(node, sci);
          setConversionPositionInfo(sci, "super", getPosition(sel));
          return;
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.