Class MemberDictionary

java.lang.Object
com.thoughtworks.xstream.core.util.MemberDictionary

public class MemberDictionary extends Object
A dictionary for member information of types.
Since:
1.4.21
  • Field Details

    • types

      private final Map types
  • Constructor Details

    • MemberDictionary

      public MemberDictionary()
      Constructs an instance.
      Since:
      1.4.21
  • Method Details

    • add

      public boolean add(Class definedIn, String member)
      Add the member of the type into the dictionary.
      Parameters:
      definedIn - the type owning the member or null
      member - the member name
      Returns:
      true if the member has been added to the dictionary
      Since:
      1.4.21
    • contains

      public boolean contains(Class definedIn, String member)
      Checks the existence of the member of a type in the dictionary.
      Parameters:
      definedIn - the type owning the member or null
      member - the member name
      Returns:
      true if the member is in the dictionary
      Since:
      1.4.21