Class FieldRenamer

    • Field Detail

      • handedOutPairs

        public static int[] handedOutPairs
      • handedOutRunPairs

        public static int[] handedOutRunPairs
    • Constructor Detail

      • FieldRenamer

        public FieldRenamer​(Singletons.Global global)
        Singleton constructor.
        Parameters:
        global - the singletons container. Must not be null
        Throws:
        NullPointerException - when global argument is null
    • Method Detail

      • isRenameFields

        public boolean isRenameFields()
      • setRenameFields

        public void setRenameFields​(boolean renameFields)
      • getSkipFields

        public Set<String> getSkipFields()
      • setBooleanTo

        protected void setBooleanTo​(SootClass sootClass,
                                    SootField field,
                                    boolean value)
      • getOrAddNewName

        public String getOrAddNewName​(String originalName)
        Generates new unique name that have not existed before and mapping for it, or gets new name if one was already generated.
        Parameters:
        originalName - the original field name. If null then will be the same as generated one
        Returns:
        the new unique name
      • getRandomOpaques

        public SootField[] getRandomOpaques()
      • getRandomOpaquesForRunnable

        public int getRandomOpaquesForRunnable()
      • updateOpaqueRunnableCount

        public static void updateOpaqueRunnableCount​(int i)