private AST getAST(){ return fTempDeclarationNode.getAST(); }
private AST getAST(){ return fTempDeclarationNode.getAST(); }
private AST getAST(){ return fTempDeclarationNode.getAST(); }
private String getType(VariableDeclaration declaration, boolean isVarargs) { String type= ASTNodes.asString(ASTNodeFactory.newType(declaration.getAST(), declaration)); if (isVarargs) return type + ParameterInfo.ELLIPSIS; else return type; }
protected static void copyExtraDimensions(final VariableDeclaration oldVarDeclaration, final VariableDeclaration newVarDeclaration) { final AST ast= newVarDeclaration.getAST(); for (int index= 0, n= oldVarDeclaration.extraDimensions().size(); index < n; index++) newVarDeclaration.extraDimensions().add(ASTNode.copySubtree(ast, (Dimension) oldVarDeclaration.extraDimensions().get(index))); }
protected static void copyExtraDimensions(final VariableDeclaration oldVarDeclaration, final VariableDeclaration newVarDeclaration) { final AST ast= newVarDeclaration.getAST(); for (int index= 0, n= oldVarDeclaration.extraDimensions().size(); index < n; index++) newVarDeclaration.extraDimensions().add(ASTNode.copySubtree(ast, (Dimension) oldVarDeclaration.extraDimensions().get(index))); }
private String getType(VariableDeclaration declaration, boolean isVarargs) { String type = ASTNodes.asString(ASTNodeFactory.newType(declaration.getAST(), declaration, fImportRewriter, new ContextSensitiveImportRewriteContext(declaration, fImportRewriter))); if (isVarargs) { return type + ParameterInfo.ELLIPSIS; } else { return type; } }
private String getType(VariableDeclaration declaration, boolean isVarargs) { String type= ASTNodes.asString(ASTNodeFactory.newType(declaration.getAST(), declaration, fImportRewriter, new ContextSensitiveImportRewriteContext(declaration, fImportRewriter))); if (isVarargs) return type + ParameterInfo.ELLIPSIS; else return type; }
private String getType(VariableDeclaration declaration, boolean isVarargs) { String type= ASTNodes.asString(ASTNodeFactory.newType(declaration.getAST(), declaration, fImportRewriter, new ContextSensitiveImportRewriteContext(declaration, fImportRewriter))); if (isVarargs) return type + ParameterInfo.ELLIPSIS; else return type; }
private String getType(VariableDeclaration declaration, boolean isVarargs, boolean isVarTypeAllowed) { if (isVarTypeAllowed) { return getType(declaration, isVarargs); } else { String type= ASTNodes.asString(ASTNodeFactory.newNonVarType(declaration.getAST(), declaration, fImportRewriter, new ContextSensitiveImportRewriteContext(declaration, fImportRewriter))); if (isVarargs) return type + ParameterInfo.ELLIPSIS; else return type; } }
public static Type newNonVarType(AST ast, VariableDeclaration declaration, ImportRewrite importRewrite, ImportRewriteContext context) { if (declaration.getAST().apiLevel() < AST.JLS10) { return newType(ast, declaration, importRewrite, context);