269 |
269 |
270 /** An environment is "static" if its static level is greater than |
270 /** An environment is "static" if its static level is greater than |
271 * the one of its outer environment |
271 * the one of its outer environment |
272 */ |
272 */ |
273 protected static boolean isStatic(Env<AttrContext> env) { |
273 protected static boolean isStatic(Env<AttrContext> env) { |
274 return env.info.staticLevel > env.outer.info.staticLevel; |
274 return env.outer != null && env.info.staticLevel > env.outer.info.staticLevel; |
275 } |
275 } |
276 |
276 |
277 /** An environment is an "initializer" if it is a constructor or |
277 /** An environment is an "initializer" if it is a constructor or |
278 * an instance initializer. |
278 * an instance initializer. |
279 */ |
279 */ |