Examples of rawTypeReference()


Examples of lombok.ast.Cast.rawTypeReference()

    }
   
    @Override public void visitTypeCast(JCTypeCast node) {
      Cast cast = new Cast();
      cast.rawOperand(toTree(node.getExpression()));
      cast.rawTypeReference(toTree(node.getType(), FlagKey.TYPE_REFERENCE));
      set(node, cast);
    }
   
    @Override public void visitUnary(JCUnary node) {
      UnaryExpression expr = new UnaryExpression();
View Full Code Here

Examples of lombok.ast.ClassLiteral.rawTypeReference()

      }
     
      if ("class".equals(name)) {
        ClassLiteral c = new ClassLiteral();
        setConversionPositionInfo(c, "class", getPosition(node));
        set(node, c.rawTypeReference(toTree(node.getExpression(), FlagKey.TYPE_REFERENCE)));
        return;
      }
     
      set(node, new Select().astIdentifier(id).rawOperand(toTree(node.getExpression())));
    }
View Full Code Here

Examples of lombok.ast.ConstructorInvocation.rawTypeReference()

   
    @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();
        if (body != null) body.unparent();
View Full Code Here

Examples of lombok.ast.InstanceOf.rawTypeReference()

      set(node, inv);
    }
   
    @Override public void visitTypeTest(JCInstanceOf node) {
      InstanceOf io = new InstanceOf();
      io.rawTypeReference(toTree(node.getType(), FlagKey.TYPE_REFERENCE));
      io.rawObjectReference(toTree(node.getExpression()));
      set(node, io);
    }
   
    @Override public void visitConditional(JCConditional node) {
View Full Code Here

Examples of lombok.ast.VariableDefinition.rawTypeReference()

    if ((first.mods.flags & Flags.VARARGS) != 0) {
      def.astVarargs(true);
      setConversionPositionInfo(def, "...", getPosition(baseType));
      if (baseType instanceof JCArrayTypeTree) baseType = ((JCArrayTypeTree) baseType).elemtype;
    }
    def.rawTypeReference(toTree(baseType, FlagKey.TYPE_REFERENCE));
    def.astVarargs((first.mods.flags & Flags.VARARGS) != 0);
   
    for (JCVariableDecl varDecl : decls) {
      int extraDims = countDims(varDecl.vartype) - baseDims;
      VariableDefinitionEntry entry = new VariableDefinitionEntry();
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.