Examples of newSimpleName()


Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

            backup.setName(newName);

            // If the field is static, add the checkpoint object as the first
            // argument.
            if (isStatic) {
                backup.arguments().add(ast.newSimpleName(CHECKPOINT_NAME));
            }

            // Add all the indices into the argument list.
            backup.arguments().addAll(indices);
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

        // Set the expression and name of the method invocation.
        if (newObject != null) {
            invocation.setExpression(newObject);
        }

        SimpleName newName = ast.newSimpleName(_getAssignMethodName(name
                .getIdentifier(), isSpecial));
        invocation.setName(newName);

        // If the field is static, add the checkpoint object as the first
        // argument.
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

        invocation.setName(newName);

        // If the field is static, add the checkpoint object as the first
        // argument.
        if (isStatic) {
            invocation.arguments().add(ast.newSimpleName(CHECKPOINT_NAME));
        }

        // Add an operator, if necessary.
        Type type = Type.getType(node);
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

            Initializer initializer = ast.newInitializer();
            Block body = ast.newBlock();
            initializer.setBody(body);

            MethodInvocation addInvocation = ast.newMethodInvocation();
            addInvocation.setExpression(ast.newSimpleName(CHECKPOINT_NAME));
            addInvocation.setName(ast.newSimpleName("addObject"));

            ClassInstanceCreation proxy = ast.newClassInstanceCreation();
            proxy
                    .setType(ast.newSimpleType(ast
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

            Block body = ast.newBlock();
            initializer.setBody(body);

            MethodInvocation addInvocation = ast.newMethodInvocation();
            addInvocation.setExpression(ast.newSimpleName(CHECKPOINT_NAME));
            addInvocation.setName(ast.newSimpleName("addObject"));

            ClassInstanceCreation proxy = ast.newClassInstanceCreation();
            proxy
                    .setType(ast.newSimpleType(ast
                            .newSimpleName(_getProxyName())));
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

            addInvocation.setExpression(ast.newSimpleName(CHECKPOINT_NAME));
            addInvocation.setName(ast.newSimpleName("addObject"));

            ClassInstanceCreation proxy = ast.newClassInstanceCreation();
            proxy
                    .setType(ast.newSimpleType(ast
                            .newSimpleName(_getProxyName())));
            addInvocation.arguments().add(proxy);
            body.statements().add(ast.newExpressionStatement(addInvocation));
            bodyDeclarations.add(initializer);
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

      expression = ast.newStringLiteral();
      ((StringLiteral) expression).setLiteralValue(value.toString());
    } else if (value.getClass().isEnum()) {
      String enumClass = value.getClass().getSimpleName();
      String enumVal = value.toString();
      expression = ast.newQualifiedName(ast.newSimpleName(enumClass), ast.newSimpleName(enumVal));

      addImportToCompilationUnit(value.getClass().getCanonicalName(), cu);
    }

    return expression;
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

      expression = ast.newStringLiteral();
      ((StringLiteral) expression).setLiteralValue(value.toString());
    } else if (value.getClass().isEnum()) {
      String enumClass = value.getClass().getSimpleName();
      String enumVal = value.toString();
      expression = ast.newQualifiedName(ast.newSimpleName(enumClass), ast.newSimpleName(enumVal));

      addImportToCompilationUnit(value.getClass().getCanonicalName(), cu);
    }

    return expression;
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

            .getJavadoc();
        final Javadoc newJavadoc = (Javadoc) ASTNode.copySubtree(ast,
            originalJavadoc);

        final EnumConstantDeclaration constDecl = createNewEnumConstantDeclarataion(
            ast, ast.newSimpleName(constantField.getElementName()),
            newJavadoc, annotationCollection);

        newEnumConstantToOldConstantFieldMap.put(constDecl, constantField);
        enumConstantDeclarationCollection.add(constDecl);
      }
View Full Code Here

Examples of org.eclipse.jdt.core.dom.AST.newSimpleName()

      if (!Flags.isPackageDefault(flag)) {
        final Modifier newModifier = ast
            .newModifier(Modifier.ModifierKeyword
                .fromFlagValue(flag));

        newEnumDeclaration = createNewEnumDeclaration(ast, ast
            .newSimpleName((String) this.simpleTypeNames.get(col)),
            enumConstantDeclarationCollection,
            new Object[] { newModifier });
      } else
        newEnumDeclaration = createNewEnumDeclaration(ast, ast
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.