Revision: 15736
http://jikesrvm.svn.sourceforge.net/jikesrvm/?rev=15736&view=revAuthor: rgarner
Date: 2009-07-23 01:47:42 +0000 (Thu, 23 Jul 2009)
Log Message:
-----------
Javadoc
Modified Paths:
--------------
rvmroot/trunk/MMTk/harness/src/org/mmtk/harness/lang/runtime/ObjectValue.java
Modified: rvmroot/trunk/MMTk/harness/src/org/mmtk/harness/lang/runtime/ObjectValue.java
===================================================================
--- rvmroot/trunk/MMTk/harness/src/org/mmtk/harness/lang/runtime/ObjectValue.java 2009-07-23 01:46:59 UTC (rev 15735)
+++ rvmroot/trunk/MMTk/harness/src/org/mmtk/harness/lang/runtime/ObjectValue.java 2009-07-23 01:47:42 UTC (rev 15736)
@@ -42,7 +42,7 @@
/**
* An object value with the given initial value
- * @param value
+ * @param value Initial value
*/
public ObjectValue(ObjectReference value) {
this.value = value;
@@ -51,6 +51,7 @@
/**
* Get this value as an object.
*/
+ @Override
public ObjectReference getObjectValue() {
return value;
}
@@ -58,6 +59,7 @@
/**
* Get this value as a boolean.
*/
+ @Override
public boolean getBoolValue() {
return !value.isNull();
}
@@ -83,11 +85,15 @@
/**
* GC-time processing of the contained object
+ * @param trace The trace object
*/
public void traceObject(TraceLocal trace) {
value = trace.traceObject(value, true);
}
+ /**
+ * @see org.mmtk.harness.lang.runtime.Value#marshall(java.lang.Class)
+ */
@Override
public Object marshall(Class<?> klass) {
if (klass.isAssignableFrom(ObjectValue.class)) {
@@ -104,6 +110,10 @@
return (other instanceof ObjectValue && value.equals(((ObjectValue)other).value));
}
+ /**
+ * Use the hash code of the underlying ObjectReference
+ * @see org.mmtk.harness.lang.runtime.Value#hashCode()
+ */
@Override
public int hashCode() {
return value.hashCode();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
Jikesrvm-commits mailing list
Jikesrvm-commits@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-commits