org.jboss.errai.common.metadata
Class RebindUtils
java.lang.Object
org.jboss.errai.common.metadata.RebindUtils
public class RebindUtils
- extends Object
- Author:
- Mike Brock , Christian Sadilek
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RebindUtils
public RebindUtils()
getTempDirectory
public static String getTempDirectory()
getClasspathHash
public static String getClasspathHash()
hashToHexString
public static String hashToHexString(byte[] hash)
getErraiCacheDir
public static File getErraiCacheDir()
getCacheFile
public static File getCacheFile(String name)
cacheFileExists
public static boolean cacheFileExists(String name)
hasClasspathChanged
public static boolean hasClasspathChanged()
hasClasspathChangedForAnnotatedWith
public static boolean hasClasspathChangedForAnnotatedWith(Set<Class<? extends Annotation>> annotations)
hasClasspathChangedForAnnotatedWith
public static boolean hasClasspathChangedForAnnotatedWith(Class<? extends Annotation> annoClass)
writeStringToFile
public static void writeStringToFile(File file,
String data)
readFileToString
public static String readFileToString(File file)
packageNameToDirName
public static String packageNameToDirName(String pkg)
guessWorkingDirectoryForModule
public static String guessWorkingDirectoryForModule(com.google.gwt.core.ext.GeneratorContext context)
getAllModuleXMLs
public static Set<File> getAllModuleXMLs(com.google.gwt.core.ext.GeneratorContext context)
getInheritedModules
public static Set<String> getInheritedModules(com.google.gwt.core.ext.GeneratorContext context)
isModuleInherited
public static boolean isModuleInherited(com.google.gwt.core.ext.GeneratorContext context,
String moduleName)
getReloadablePackageNames
public static Set<String> getReloadablePackageNames(com.google.gwt.core.ext.GeneratorContext context)
getOuterTranslatablePackages
public static Set<String> getOuterTranslatablePackages(com.google.gwt.core.ext.GeneratorContext context)
getModuleName
public static String getModuleName(com.google.gwt.core.ext.GeneratorContext context)
findTranslatablePackagesInModule
public 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).
findTranslatablePackages
public 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).
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.