Class ObjectRecorder.ObjectInspection

java.lang.Object
info.monitorenter.reflection.ObjectRecorder.ObjectInspection
Enclosing class:
ObjectRecorder

public final class ObjectRecorder.ObjectInspection extends Object
Data container for the inspection of the internal intance.

Version:
$Revision: 1.10 $
Author:
Achim Westermann
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected long
    Time stamp of the inspection.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates an instance linked to the outer recorder.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    add(Object value)
    Adds an inspected value to this inspection.
    get(int index)
    Get the value for the attribute at the given index.
    long
    Returns the time stamp in ms of this inspection.
    protected void
    remove(Object value)
    Removes the inspected value from this inspection.
    Returns a pretty print of this inspection.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • m_time

      protected long m_time
      Time stamp of the inspection.
  • Constructor Details

    • ObjectInspection

      protected ObjectInspection()
      Creates an instance linked to the outer recorder.

  • Method Details

    • add

      protected void add(Object value)
      Adds an inspected value to this inspection.

      Parameters:
      value - an inspected value of this inspection.
    • get

      public Object get(int index)
      Get the value for the attribute at the given index.

      Parameters:
      index - the index of the inspected value according to the order it was found on the instance by Class.getDeclaredFields().

      Returns:
      the value for the attribute at the given index.
    • getTime

      public long getTime()
      Returns the time stamp in ms of this inspection.

      Returns:
      the time stamp in ms of this inspection.
    • remove

      protected void remove(Object value)
      Removes the inspected value from this inspection.

      The value is identified by means of Object.equals(java.lang.Object).

      Parameters:
      value - the inspected value from this inspection.
    • toString

      public String toString()
      Returns a pretty print of this inspection.

      Overrides:
      toString in class Object
      Returns:
      a pretty print of this inspection.
      See Also: