Class ResourceProgramFinder

  • All Implemented Interfaces:
    com.smeup.rpgparser.rpginterop.RpgProgramFinder

    public class ResourceProgramFinder
    extends Object
    implements com.smeup.rpgparser.rpginterop.RpgProgramFinder
    A class that implements the RpgProgramFinder interface to find RPG programs, APIs, and copies from resources. Each resource is searched in the /libraries/std directory.
    • Constructor Detail

      • ResourceProgramFinder

        public ResourceProgramFinder​(String rpglePath,
                                     ClassLoader classLoader)
      • ResourceProgramFinder

        public ResourceProgramFinder​(String rpglePath)
    • Method Detail

      • findApi

        @Nullable
        public com.smeup.rpgparser.parsing.ast.Api findApi​(@NotNull
                                                           com.smeup.rpgparser.parsing.ast.ApiId apiId)
        Specified by:
        findApi in interface com.smeup.rpgparser.rpginterop.RpgProgramFinder
      • findApiDescriptor

        @Nullable
        public com.smeup.rpgparser.parsing.ast.ApiDescriptor findApiDescriptor​(@NotNull
                                                                               com.smeup.rpgparser.parsing.ast.ApiId apiId)
        Specified by:
        findApiDescriptor in interface com.smeup.rpgparser.rpginterop.RpgProgramFinder
      • findCopy

        @Nullable
        public com.smeup.rpgparser.parsing.facade.Copy findCopy​(@NotNull
                                                                com.smeup.rpgparser.parsing.facade.CopyId copyId)
        Specified by:
        findCopy in interface com.smeup.rpgparser.rpginterop.RpgProgramFinder
      • findRpgProgram

        @Nullable
        public com.smeup.rpgparser.interpreter.RpgProgram findRpgProgram​(@NotNull
                                                                         String name)
        Specified by:
        findRpgProgram in interface com.smeup.rpgparser.rpginterop.RpgProgramFinder
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object