java.lang.Object
games.stendhal.server.core.reflectiondebugger.FieldLister

public class FieldLister extends Object
Lists the contents all fields of a class and its super classes.
Author:
hendrik
  • Constructor Details

    • FieldLister

      public FieldLister(Object object)
      Creates a new FieldLister.
      Parameters:
      object - object to inspect
  • Method Details

    • scan

      public void scan()
      Scans the object for direct and indirect fields. Use getResult to get the result.
    • getResult

      public Map<String,​Pair<String,​String>> getResult()
      Retrieves the result. Note: You need to call scan first.
      Returns:
      Map with field names as keys and a pair of type and value.