Class CodeStringCache

  • All Implemented Interfaces:
    jadx.api.ICodeCache, java.io.Closeable, java.lang.AutoCloseable

    public class CodeStringCache
    extends jadx.api.impl.DelegateCodeCache
    Keep code strings for faster search
    • Field Summary

      • Fields inherited from class jadx.api.impl.DelegateCodeCache

        backCache
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeStringCache​(jadx.api.ICodeCache backCache)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.lang.String clsFullName, jadx.api.ICodeInfo codeInfo)  
      void close()  
      @NotNull jadx.api.ICodeInfo get​(java.lang.String clsFullName)  
      @Nullable java.lang.String getCode​(java.lang.String clsFullName)  
      void remove​(java.lang.String clsFullName)  
      • Methods inherited from class jadx.api.impl.DelegateCodeCache

        contains
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CodeStringCache

        public CodeStringCache​(jadx.api.ICodeCache backCache)
    • Method Detail

      • getCode

        @Nullable
        public @Nullable java.lang.String getCode​(java.lang.String clsFullName)
        Specified by:
        getCode in interface jadx.api.ICodeCache
        Overrides:
        getCode in class jadx.api.impl.DelegateCodeCache
      • get

        @NotNull
        public @NotNull jadx.api.ICodeInfo get​(java.lang.String clsFullName)
        Specified by:
        get in interface jadx.api.ICodeCache
        Overrides:
        get in class jadx.api.impl.DelegateCodeCache
      • add

        public void add​(java.lang.String clsFullName,
                        jadx.api.ICodeInfo codeInfo)
        Specified by:
        add in interface jadx.api.ICodeCache
        Overrides:
        add in class jadx.api.impl.DelegateCodeCache
      • remove

        public void remove​(java.lang.String clsFullName)
        Specified by:
        remove in interface jadx.api.ICodeCache
        Overrides:
        remove in class jadx.api.impl.DelegateCodeCache
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class jadx.api.impl.DelegateCodeCache
        Throws:
        java.io.IOException