Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » How to check if a IVariableBinding corresponds to a static effectively final variable?
How to check if a IVariableBinding corresponds to a static effectively final variable? [message #1865766] Fri, 10 May 2024 21:58
Eclipse UserFriend
Hey, I need to check if the given IVariableBinding corresponds to an effectively final static variable. From the documentation, I know that "effectively final" applies only to local variables. But how to check that it has the only assignment in the declaration or a static block?

	public static boolean isStaticEffetivelyFinal(IVariableBinding binding) {
	    if ((binding.getModifiers() & Modifier.STATIC) == 0) {
	        return false;
	    }
	    // ???
	}
Previous Topic:Jgoodies no class defined error
Next Topic:Regression: Expressions broken for Remote Java Application in recent Eclipse versions
Goto Forum:
  


Current Time: Sat May 24 10:04:17 EDT 2025

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

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

Back to the top