diff options
author | schinz <schinz@epfl.ch> | 2005-03-14 16:08:57 +0000 |
---|---|---|
committer | schinz <schinz@epfl.ch> | 2005-03-14 16:08:57 +0000 |
commit | 26743f690b55e5eb7ecd922e99030ffcc26826b7 (patch) | |
tree | c4651c9f56f97a48547eff2cff1c75bc553faa78 | |
parent | e657ee6136e9538c7acde124316429341aa227a6 (diff) | |
download | scala-26743f690b55e5eb7ecd922e99030ffcc26826b7.tar.gz scala-26743f690b55e5eb7ecd922e99030ffcc26826b7.tar.bz2 scala-26743f690b55e5eb7ecd922e99030ffcc26826b7.zip |
- added hasStaticAttribute method
-rw-r--r-- | sources/scalac/symtab/Symbol.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sources/scalac/symtab/Symbol.java b/sources/scalac/symtab/Symbol.java index 072083ceb2..7a51776cc5 100644 --- a/sources/scalac/symtab/Symbol.java +++ b/sources/scalac/symtab/Symbol.java @@ -557,7 +557,11 @@ public abstract class Symbol implements Modifiers, Kinds { /** Is this symbol static (i.e. with no outer instance)? */ public final boolean isStatic() { - return isRoot() || (attrs & IS_STATIC) != 0 || owner.isStaticOwner(); + return isRoot() || hasStaticAttribute() || owner.isStaticOwner(); + } + + public final boolean hasStaticAttribute() { + return (attrs & IS_STATIC) != 0; } /** Does this symbol denote a class that defines static symbols? */ |