Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to know if a IVariableBinding represents a local variable?
How to know if a IVariableBinding represents a local variable? [message #646038] Tue, 21 December 2010 12:04 Go to next message
Eclipse UserFriend
I've noticed eclipse.jdt.core.dom variable bindings (IVariableBinding) offer boolean methods to check if they are representing a field, Enum constant or parameter (isEnumConstant(), isField() and isParameter() ).

How can I know if it represents a local variable? Is it safe to assume that if a IVariableBinding is not one of the former three it will ALWAYS be a local variable?
Re: How to know if a IVariableBinding represents a local variable? [message #646061 is a reply to message #646038] Tue, 21 December 2010 13:22 Go to previous messageGo to next message
Eclipse UserFriend
On 12/21/2010 10:34 PM, Joan Robert wrote:
> Is it safe to assume
> that if a IVariableBinding is not one of the former three it will ALWAYS
> be a local variable?
yes
Re: How to know if a IVariableBinding represents a local variable? [message #646072 is a reply to message #646061] Tue, 21 December 2010 15:47 Go to previous messageGo to next message
Eclipse UserFriend
That's what I thought. Thanks.
Re: How to know if a IVariableBinding represents a local variable? [message #802673 is a reply to message #646072] Mon, 20 February 2012 04:24 Go to previous message
Eclipse UserFriend
Hi Joan,

AS you mentioned coding about local variables, could you please tell me how did you manage renaming those local variables? and how did you get them for the first place?

[Updated on: Mon, 20 February 2012 04:25] by Moderator

Previous Topic:Auto Completion activates after 2 characters?
Next Topic:Migration from old Eclipse+MyEclipse to Indigo
Goto Forum:
  


Current Time: Fri May 16 22:08:20 EDT 2025

Powered by FUDForum. Page generated in 0.04307 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top