|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.core.dom.ast.ASTVisitor
org.eclipse.cdt.internal.ui.viewsupport.FindNameForSelectionVisitor
public class FindNameForSelectionVisitor
Searches for a name related to the given selection. The first choice will be the largest name inside the selection. If it does not exist the smallest name surounding the selection is taken.
IASTNode.accept(ASTVisitor)
Field Summary |
---|
Fields inherited from class org.eclipse.cdt.core.dom.ast.ASTVisitor |
---|
PROCESS_ABORT, PROCESS_CONTINUE, PROCESS_SKIP, shouldVisitComments, shouldVisitDeclarations, shouldVisitDeclarators, shouldVisitDeclSpecifiers, shouldVisitEnumerators, shouldVisitExpressions, shouldVisitInitializers, shouldVisitNames, shouldVisitParameterDeclarations, shouldVisitProblems, shouldVisitStatements, shouldVisitTranslationUnit, shouldVisitTypeIds |
Constructor Summary | |
---|---|
FindNameForSelectionVisitor(java.lang.String filePath,
int selectionStart,
int selectionLength)
|
Method Summary | |
---|---|
org.eclipse.cdt.core.dom.ast.IASTName |
getSelectedName()
After the visitor was accepted by an ast-node you can query the selected name. |
int |
visit(org.eclipse.cdt.core.dom.ast.IASTDeclaration declaration)
|
int |
visit(org.eclipse.cdt.core.dom.ast.IASTName name)
|
Methods inherited from class org.eclipse.cdt.core.dom.ast.ASTVisitor |
---|
leave, leave, leave, leave, leave, leave, leave, leave, leave, leave, leave, leave, leave, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FindNameForSelectionVisitor(java.lang.String filePath, int selectionStart, int selectionLength)
Method Detail |
---|
public org.eclipse.cdt.core.dom.ast.IASTName getSelectedName()
null
.public int visit(org.eclipse.cdt.core.dom.ast.IASTDeclaration declaration)
visit
in class org.eclipse.cdt.core.dom.ast.ASTVisitor
public int visit(org.eclipse.cdt.core.dom.ast.IASTName name)
visit
in class org.eclipse.cdt.core.dom.ast.ASTVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |