Package lombok.ast

Examples of lombok.ast.AlternateConstructorInvocation


   
    return posify(variableDefinition);
  }
 
  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) {
        result.rawArguments().addToEnd(arg);
      }
    }
    return posify(result);
  }
View Full Code Here


      JCTree sel = node.getMethodSelect();
      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

TOP

Related Classes of lombok.ast.AlternateConstructorInvocation

Copyright © 2018 www.massapicom. 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.