Java Code Examples for org.eclipse.jdt.core.dom.SingleVariableDeclaration#getName()
The following examples show how to use
org.eclipse.jdt.core.dom.SingleVariableDeclaration#getName() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DeclarationInfoManager.java From lapse-plus with GNU General Public License v3.0 | 5 votes |
public boolean visit(SingleVariableDeclaration node) { SimpleName name = node.getName(); boolean isFinal = Modifier.isFinal(node.getModifiers()); if(isFinal) { info.setFinal(name); } info.setVariableDeclaration(getKey(name), node); log("1. Encountered " + node); return true; }
Example 2
Source File: ChangeTypeRefactoring.java From Eclipse-Postfix-Code-Completion with Eclipse Public License 1.0 | 4 votes |
/** * The selection corresponds to a SingleVariableDeclaration * @param svd * @return the message */ private String singleVariableDeclarationSelected(SingleVariableDeclaration svd) { SimpleName name = svd.getName(); setSelectionRanges(name); return simpleNameSelected(name); }