diff graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java @ 6329:92bc58dc5b5e

More clean up and documentation in api.code and api.meta.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 07 Sep 2012 13:40:53 +0200
parents 11bd46151e71
children d93bff9fecb6
line wrap: on
line diff
--- a/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java	Fri Sep 07 12:12:47 2012 +0200
+++ b/graal/com.oracle.graal.api.meta/src/com/oracle/graal/api/meta/Value.java	Fri Sep 07 13:40:53 2012 +0200
@@ -41,7 +41,7 @@
     /**
      * The kind of this value.
      */
-    public final Kind kind;
+    private final Kind kind;
 
     /**
      * Initializes a new value of the specified kind.
@@ -55,6 +55,14 @@
      * String representation of the kind, which should be the end of all {@link #toString()} implementation of subclasses.
      */
     protected final String kindSuffix() {
-        return "|" + kind.typeChar;
+        return "|" + getKind().typeChar;
+    }
+
+    /**
+     * Gets the kind of the value.
+     * @return the kind
+     */
+    public final Kind getKind() {
+        return kind;
     }
 }