summaryrefslogtreecommitdiff
path: root/sources/scalac/symtab
diff options
context:
space:
mode:
authorschinz <schinz@epfl.ch>2005-03-14 16:08:57 +0000
committerschinz <schinz@epfl.ch>2005-03-14 16:08:57 +0000
commit26743f690b55e5eb7ecd922e99030ffcc26826b7 (patch)
treec4651c9f56f97a48547eff2cff1c75bc553faa78 /sources/scalac/symtab
parente657ee6136e9538c7acde124316429341aa227a6 (diff)
downloadscala-26743f690b55e5eb7ecd922e99030ffcc26826b7.tar.gz
scala-26743f690b55e5eb7ecd922e99030ffcc26826b7.tar.bz2
scala-26743f690b55e5eb7ecd922e99030ffcc26826b7.zip
- added hasStaticAttribute method
Diffstat (limited to 'sources/scalac/symtab')
-rw-r--r--sources/scalac/symtab/Symbol.java6
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? */