diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-06-15 20:55:29 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-06-15 20:55:29 +0200 |
commit | ebf00a8a27e3e86df7c7a95f5d8dd9c4f57fb755 (patch) | |
tree | 2d64b5f9c95487140e63895f982a277af9971d25 /src/reflect | |
parent | 4c6522bab70ce8588f5688c9b4c01fe3ff8d24fc (diff) | |
download | scala-ebf00a8a27e3e86df7c7a95f5d8dd9c4f57fb755.tar.gz scala-ebf00a8a27e3e86df7c7a95f5d8dd9c4f57fb755.tar.bz2 scala-ebf00a8a27e3e86df7c7a95f5d8dd9c4f57fb755.zip |
exposes extra tests for symbols as discussed on reflection meeting
review by @odersky
Diffstat (limited to 'src/reflect')
-rw-r--r-- | src/reflect/scala/reflect/api/Symbols.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/api/Symbols.scala b/src/reflect/scala/reflect/api/Symbols.scala index 1d266dc778..b2eb598cc0 100644 --- a/src/reflect/scala/reflect/api/Symbols.scala +++ b/src/reflect/scala/reflect/api/Symbols.scala @@ -116,11 +116,28 @@ trait Symbols extends base.Symbols { self: Universe => */ def isValue: Boolean + /** Does this symbol denote a stable value? */ + def isStable: Boolean + /** Does this symbol represent a mutable value? * If yes, `isTerm` and `isValue` are also guaranteed to be true. */ def isVariable: Boolean + /** Does this symbol represent a getter or a setter? + */ + def isAccessor: Boolean + + /** Does this symbol represent a getter of a field? + * If yes, `isTerm` and `isMethod` are also guaranteed to be true. + */ + def isGetter: Boolean + + /** Does this symbol represent a setter of a field? + * If yes, `isTerm` and `isMethod` are also guaranteed to be true. + */ + def isSetter: Boolean + /** Does this symbol represent the definition of a package? * If yes, `isTerm` is also guaranteed to be true. */ |