@Override public boolean visit(SingleVariableDeclaration node) { this.declarationModifierVisited = false; if (node.getParent() instanceof MethodDeclaration) { // special case: annotations on parameters without modifiers should not be treated as type annotations this.declarationModifierVisited = (node.getModifiers() == 0); } return true; }
@Override public boolean visit(SingleVariableDeclaration node) { this.declarationModifierVisited = false; if (node.getParent() instanceof MethodDeclaration) { // special case: annotations on parameters without modifiers should not be treated as type annotations this.declarationModifierVisited = (node.getModifiers() == 0); } return true; }
@Override public boolean visit(SingleVariableDeclaration node) { this.declarationModifierVisited = false; if (node.getParent() instanceof MethodDeclaration) { // special case: annotations on parameters without modifiers should not be treated as type annotations this.declarationModifierVisited = (node.getModifiers() == 0); } return true; }
@Override public boolean visit(SingleVariableDeclaration node) { this.declarationModifierVisited = false; if (node.getParent() instanceof MethodDeclaration) { // special case: annotations on parameters without modifiers should not be treated as type annotations this.declarationModifierVisited = (node.getModifiers() == 0); } return true; }
@Override public boolean visit(final SingleVariableDeclaration node) { if (className.contains(node.getType().toString())) { interestingNodes.add(node.getParent()); } return false; }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl, TextEditGroup group) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, group); } } } }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, null); } } } }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, null); } } } }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl, TextEditGroup group) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, group); } } } }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, null); } } } }
private void removeParamTag(ASTRewrite rewrite, SingleVariableDeclaration varDecl, TextEditGroup group) { if (varDecl.getParent() instanceof MethodDeclaration) { Javadoc javadoc= ((MethodDeclaration) varDecl.getParent()).getJavadoc(); if (javadoc != null) { TagElement tagElement= JavadocTagsSubProcessor.findParamTag(javadoc, varDecl.getName().getIdentifier()); if (tagElement != null) { rewrite.remove(tagElement, group); } } } }
@Override public boolean visit(SingleVariableDeclaration node) { if (isInterface(node.getParent().getParent())) { return removeFinalModifier(modifiers(node)); } return VISIT_SUBTREE; }
@Override public boolean visit(final SingleVariableDeclaration node) { final ASTNode parent = node.getParent(); if (parent.getNodeType() == ASTNode.METHOD_DECLARATION) { variableScopes.put(parent, new Variable(node.getName() .getIdentifier(), node.getType().toString(), ScopeType.SCOPE_METHOD)); } else { variableScopes.put(parent, new Variable(node.getName() .getIdentifier(), node.getType().toString(), ScopeType.SCOPE_LOCAL)); } return false; }
@Override public boolean visit(final SingleVariableDeclaration it) { if ((((it.getParent() instanceof MethodDeclaration) || (it.getParent() instanceof CatchClause)) || (it.getParent() instanceof EnhancedForStatement))) { final Function1<IExtendedModifier, Boolean> _function = (IExtendedModifier it_1) -> { return Boolean.valueOf(it_1.isAnnotation()); }; this.appendModifiers(it, IterableExtensions.<IExtendedModifier>filter(Iterables.<IExtendedModifier>filter(it.modifiers(), IExtendedModifier.class), _function)); } else { this.appendModifiers(it, it.modifiers()); } it.getType().accept(this); this.appendExtraDimensions(it.getExtraDimensions()); boolean _isVarargs = it.isVarargs(); if (_isVarargs) { this.appendToBuffer("..."); } this.appendSpaceToBuffer(); it.getName().accept(this); Expression _initializer = it.getInitializer(); boolean _tripleNotEquals = (_initializer != null); if (_tripleNotEquals) { this.appendToBuffer("="); it.getInitializer().accept(this); } return false; }
} else if (parent instanceof SingleVariableDeclaration) { final SingleVariableDeclaration var = (SingleVariableDeclaration) parent; return getAccessTypeAndScope(var.getParent()); } else if (parent instanceof VariableDeclarationFragment) { final VariableDeclarationFragment var = (VariableDeclarationFragment) parent;
expressionTypeBinding = expression.resolveTypeBinding(); } else { ASTNode parent = svDecl.getParent(); if (parent instanceof EnhancedForStatement) { EnhancedForStatement efStmt = (EnhancedForStatement) parent;
expressionTypeBinding= expression.resolveTypeBinding(); } else { ASTNode parent= svDecl.getParent(); if (parent instanceof EnhancedForStatement) { EnhancedForStatement efStmt= (EnhancedForStatement) parent;