Package editor

Class TypeNameCache

java.lang.Object
editor.TypeNameCache
All Implemented Interfaces:
ITypeLoaderListener

public class TypeNameCache extends Object implements ITypeLoaderListener
  • Field Details

    • _moduleTypeLoader

      private LocklessLazyVar<ITypeLoaderStack> _moduleTypeLoader
    • _allTypeNames

      private volatile Set<String> _allTypeNames
    • _allNamespaces

      private Set<String> _allNamespaces
    • _relativeTypeNameToFullyQualifiedTypeNames

      private Map<String,List<String>> _relativeTypeNameToFullyQualifiedTypeNames
    • _caching

      private volatile boolean _caching
  • Constructor Details

    • TypeNameCache

      public TypeNameCache()
  • Method Details

    • getAllTypeNames

      public Set<String> getAllTypeNames(IProgressCallback progress)
    • getFullyQualifiedClassNameFromRelativeName

      public List<String> getFullyQualifiedClassNameFromRelativeName(String relativeClassName)
    • getAllNamespaces

      public Set<String> getAllNamespaces()
    • refreshedTypes

      public void refreshedTypes(RefreshRequest request)
      Description copied from interface: ITypeLoaderListener
      Fired when an existing type is refreshed, i.e. there are potential changes
      Specified by:
      refreshedTypes in interface ITypeLoaderListener
    • refreshed

      public void refreshed()
      Description copied from interface: ITypeLoaderListener
      Fired when the typesystem is fully refreshed
      Specified by:
      refreshed in interface ITypeLoaderListener
    • getAllTypeNamesCache

      private Set<String> getAllTypeNamesCache(IProgressCallback progress)
    • getRelativeTypeNamesCache

      private Map<String,List<String>> getRelativeTypeNamesCache()
    • addRelativeToFullTypeMapping

      private void addRelativeToFullTypeMapping(String fullyQualifiedTypeName)
    • lastIndexOf

      private int lastIndexOf(String fullyQualifiedTypeName, char c)
    • clearCaches

      public void clearCaches()