Errai 3.0.1-SNAPSHOT

org.jboss.errai.common.metadata
Class RebindUtils

java.lang.Object
  extended by org.jboss.errai.common.metadata.RebindUtils

public class RebindUtils
extends Object

Author:
Mike Brock , Christian Sadilek

Constructor Summary
RebindUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RebindUtils

public RebindUtils()
Method Detail

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).


Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.