summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2006-03-07 21:25:25 +0000
committermihaylov <mihaylov@epfl.ch>2006-03-07 21:25:25 +0000
commit8a9572b96be66414598ca9d27b29f5f3867f2023 (patch)
treeb095167c07b3c2a792327339b6ec64ccaec37bd0 /src
parenta190c204e0fa94755b5b08cb53799f50c9debd3e (diff)
downloadscala-8a9572b96be66414598ca9d27b29f5f3867f2023.tar.gz
scala-8a9572b96be66414598ca9d27b29f5f3867f2023.tar.bz2
scala-8a9572b96be66414598ca9d27b29f5f3867f2023.zip
Removed unnecessary files
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/runtime/InterpreterSupport.java110
-rw-r--r--src/library/scala/runtime/compat/BeanProperty.scala3
2 files changed, 0 insertions, 113 deletions
diff --git a/src/library/scala/runtime/InterpreterSupport.java b/src/library/scala/runtime/InterpreterSupport.java
deleted file mode 100644
index 2c62983f3a..0000000000
--- a/src/library/scala/runtime/InterpreterSupport.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/* __ *\
-** ________ ___ / / ___ Scala API **
-** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
-** __\ \/ /__/ __ |/ /__/ __ | **
-** /____/\___/_/ |_/____/_/ | | **
-** |/ **
-\* */
-
-// $Id$
-
-
-package scala.runtime;
-
-
-/** This class provides support methods for the interpreter. */
-public class InterpreterSupport {
-
- //########################################################################
- // Public classes
-
- /** This interface provides method to show definitions. */
- public static interface DefinitionPrinter {
-
- /** This method is invoked for each non-value definition. */
- public void showDefinition(String signature);
-
- /** This method is invoked for each value definition. */
- public void showValueDefinition(String signature, Object value);
-
- }
-
- /** This class describes an evaluation result. */
- public static class EvaluationResult {
-
- /** The value of the result */
- public final Object value;
-
- /** The type of the result */
- public final String type;
-
- /** Creates a new instance */
- public EvaluationResult(Object value, String type) {
- this.value = value;
- this.type = type;
- }
- }
-
- //########################################################################
- // Private Variables
-
- private static final ThreadLocal printer = new ThreadLocal();
- private static final ThreadLocal result = new ThreadLocal();
-
- //########################################################################
- // Public Functions
-
- /** Sets the definition printer of the current thread. */
- public static void setDefinitionPrinter(DefinitionPrinter object) {
- printer.set(object);
- }
-
- /** Returns the definition printer of the current thread. */
- public static DefinitionPrinter getDefinitionPrinter() {
- return (DefinitionPrinter)printer.get();
- }
-
- /**
- * This function is invoked for each non-value definition. It
- * forwards the call to the current thread's definition printer.
- *
- * @meta method (java.lang.String, scala.Any) scala.Unit;
- */
- public static void showDefinition(String signature) {
- DefinitionPrinter printer = getDefinitionPrinter();
- if (printer != null) printer.showDefinition(signature);
- }
-
- /**
- * This method is invoked for each value definition. It forwards
- * the call to the current thread's definition printer.
- *
- * @meta method (java.lang.String, scala.Any) scala.Unit;
- */
- public static void showValueDefinition(String signature, Object value) {
- DefinitionPrinter printer = getDefinitionPrinter();
- if (printer != null) printer.showValueDefinition(signature, value);
- }
-
- /**
- * Sets the evaluation result of the current thread.
- *
- * @meta method (scala.Any, java.lang.String) scala.Unit;
- */
- public static void setEvaluationResult(Object value, String type) {
- result.set(new EvaluationResult(value, type));
- }
-
- /**
- * Returns and resets the evaluation result of the current
- * thread. A null value indicates that the last evaluation had no
- * result (only definitions).
- */
- public static EvaluationResult getAndResetEvaluationResult() {
- Object object = result.get();
- result.set(null);
- return (EvaluationResult)object;
- }
-
- //########################################################################
-}
diff --git a/src/library/scala/runtime/compat/BeanProperty.scala b/src/library/scala/runtime/compat/BeanProperty.scala
deleted file mode 100644
index 04a28946be..0000000000
--- a/src/library/scala/runtime/compat/BeanProperty.scala
+++ /dev/null
@@ -1,3 +0,0 @@
-package scala.runtime.compat;
-
-class BeanProperty extends Attribute;