/** * Attempts to convert a path name (possibly a path within an archive) to a package name. */ public static String pathToPackageName(String relativePath) { String qualifiedName = classFilePathToClassname(relativePath); return ClassNameUtil.getPackageName(qualifiedName); }
public PackageFrequencyTrie addClass(String qualifiedName) { String packageName = ClassNameUtil.getPackageName(qualifiedName); PackageFrequencyTrie subTrie = getSubTrie(packageName); subTrie.classCount++; return this; }
@Override public void decompilationFailed(List<String> inputPath, String message) { progressEstimate.addWork(1); }
/** * The path $USER_HOME/cache */ public static Path getUserCacheDir() { return getUserSubdirectory(CACHE_DIRECTORY_NAME); }
/** * The path $WINDUP_HOME/addons */ public static Path getWindupAddonsDir() { return getWindupSubdirectory(ADDONS_DIRECTORY_NAME); }
/** * The path $USER_HOME/ignore */ public static Path getUserIgnoreDir() { return getUserSubdirectory("ignore"); }
/** * The path $WINDUP_HOME/ignore */ public static Path getWindupIgnoreDir() { return getWindupSubdirectory("ignore"); }
/** * Discover if a Class <b>c</b> has been annotated with <b>type</b>. This also discovers annotations defined through * a @{@link Stereotype}. * * @param c The class to inspect. * @param type The targeted annotation class * @return True if annotation is present either on class, false if the annotation is not present. */ public static boolean isAnnotationPresent(final Class<?> c, final Class<? extends Annotation> type) { return getAnnotation(c, type) != null; }
public JadretroDecompilerAdapter() { LogController.LoggingAdapter.tieSystemOutAndErrToLog(); if(SystemUtils.IS_OS_WINDOWS) { APP_NAME = "jad.exe"; } else { APP_NAME = "jad"; } }
/** * Attempts to convert a path name (possibly a path within an archive) to a package name. */ public static String pathToPackageName(String relativePath) { String qualifiedName = classFilePathToClassname(relativePath); return ClassNameUtil.getPackageName(qualifiedName); }
public PackageFrequencyTrie addClass(String qualifiedName) { String packageName = ClassNameUtil.getPackageName(qualifiedName); PackageFrequencyTrie subTrie = getSubTrie(packageName); subTrie.classCount++; return this; }
/** * The path $USER_HOME/ignore */ public static Path getUserIgnoreDir() { return getUserSubdirectory(IGNORE_DIRECTORY_NAME); }
/** * The path $WINDUP_HOME/cache */ public static Path getWindupCacheDir() { return getWindupSubdirectory(CACHE_DIRECTORY_NAME); }
/** * The path $USER_HOME/rules */ public static Path getUserRulesDir() { return getUserSubdirectory("rules"); }
/** * The path $WINDUP_HOME/cache */ public static Path getWindupCacheDir() { return getWindupSubdirectory("cache"); }
/** * The path $USER_HOME/rules */ public static Path getUserRulesDir() { return getUserSubdirectory(RULES_DIRECTORY_NAME); }
/** * The path $WINDUP_HOME/addons */ public static Path getWindupAddonsDir() { return getWindupSubdirectory(ADDONS_DIRECTORY_NAME); }