public class RebindUtils extends Object
Constructor and Description |
---|
RebindUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
cacheFileExists(String name) |
static Set<String> |
findTranslatablePackages(com.google.gwt.core.ext.GeneratorContext context)
Returns a list of all translatable packages accessible to the module under compilation
(including inherited modules).
|
static Set<String> |
findTranslatablePackagesInModule(com.google.gwt.core.ext.GeneratorContext context)
Returns the list of translatable packages in the module that caused the generator to run (the
module under compilation).
|
static Set<File> |
getAllModuleXMLs(com.google.gwt.core.ext.GeneratorContext context) |
static File |
getCacheFile(String name) |
static String |
getClasspathHash() |
static File |
getErraiCacheDir() |
static Set<String> |
getInheritedModules(com.google.gwt.core.ext.GeneratorContext context) |
static String |
getModuleName(com.google.gwt.core.ext.GeneratorContext context) |
static Set<String> |
getOuterTranslatablePackages(com.google.gwt.core.ext.GeneratorContext context) |
static Set<String> |
getReloadablePackageNames(com.google.gwt.core.ext.GeneratorContext context) |
static String |
getTempDirectory() |
static String |
guessWorkingDirectoryForModule(com.google.gwt.core.ext.GeneratorContext context) |
static boolean |
hasClasspathChanged() |
static boolean |
hasClasspathChangedForAnnotatedWith(Class<? extends Annotation> annoClass) |
static boolean |
hasClasspathChangedForAnnotatedWith(Set<Class<? extends Annotation>> annotations) |
static String |
hashToHexString(byte[] hash) |
static boolean |
isModuleInherited(com.google.gwt.core.ext.GeneratorContext context,
String moduleName) |
static String |
packageNameToDirName(String pkg) |
static String |
readFileToString(File file) |
static void |
writeStringToFile(File file,
String data) |
public static String getTempDirectory()
public static String getClasspathHash()
public static String hashToHexString(byte[] hash)
public static File getErraiCacheDir()
public static boolean cacheFileExists(String name)
public static boolean hasClasspathChanged()
public static boolean hasClasspathChangedForAnnotatedWith(Set<Class<? extends Annotation>> annotations)
public static boolean hasClasspathChangedForAnnotatedWith(Class<? extends Annotation> annoClass)
public static String guessWorkingDirectoryForModule(com.google.gwt.core.ext.GeneratorContext context)
public static Set<File> getAllModuleXMLs(com.google.gwt.core.ext.GeneratorContext context)
public static Set<String> getInheritedModules(com.google.gwt.core.ext.GeneratorContext context)
public static boolean isModuleInherited(com.google.gwt.core.ext.GeneratorContext context, String moduleName)
public static Set<String> getReloadablePackageNames(com.google.gwt.core.ext.GeneratorContext context)
public static Set<String> getOuterTranslatablePackages(com.google.gwt.core.ext.GeneratorContext context)
public static String getModuleName(com.google.gwt.core.ext.GeneratorContext context)
public static Set<String> findTranslatablePackagesInModule(com.google.gwt.core.ext.GeneratorContext context)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.