Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Accessing local variable reference

Dear all,
     I have written the code which searches the variable and its reference
in the runtime workspace using the SearchEngine class. Now in the results
that is in the 'acceptSearchMatch' method of the SearchRequestor, it gives
the matches of the local variable and fied reference. With the help of that
match, I am getting the information of the method in which it is referenced
but not the complete statement of its reference that is the statement where
variable is used. I wanted to know how we can get the same. Below is the
code snippet which might give us some idea:-

public void acceptSearchMatch(SearchMatch match) throws CoreException {
 if (match instanceof LocalVariableReferenceMatch || match instanceof
FieldReferenceMatch) {

 }
}
-- 
View this message in context: http://www.nabble.com/Accessing-local-variable-reference-tp24917474p24917474.html
Sent from the Eclipse JDT - core mailing list archive at Nabble.com.



Back to the top