summaryrefslogtreecommitdiff
path: root/src/reflect/scala/reflect/runtime/SymbolTable.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/reflect/scala/reflect/runtime/SymbolTable.scala')
-rw-r--r--src/reflect/scala/reflect/runtime/SymbolTable.scala17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/reflect/scala/reflect/runtime/SymbolTable.scala b/src/reflect/scala/reflect/runtime/SymbolTable.scala
new file mode 100644
index 0000000000..c90665508b
--- /dev/null
+++ b/src/reflect/scala/reflect/runtime/SymbolTable.scala
@@ -0,0 +1,17 @@
+package scala.reflect
+package runtime
+
+/**
+ * This symbol table trait fills in the definitions so that class information is obtained by refection.
+ * It can be used either from a reflexive universe (class scala.reflect.runtime.JavaUniverse), or else from
+ * a runtime compiler that uses reflection to get a class information (class scala.tools.nsc.ReflectGlobal)
+ */
+trait SymbolTable extends internal.SymbolTable with JavaMirrors with SymbolLoaders with SynchronizedOps {
+
+ def info(msg: => String) =
+ if (settings.verbose.value) println("[reflect-compiler] "+msg)
+
+ def debugInfo(msg: => String) =
+ if (settings.debug.value) info(msg)
+
+}