Errai 3.0.1-SNAPSHOT

org.jboss.errai.codegen.util
Class ClassChangeUtil

java.lang.Object
  extended by org.jboss.errai.codegen.util.ClassChangeUtil

public class ClassChangeUtil
extends Object

Author:
Mike Brock

Nested Class Summary
static class ClassChangeUtil.JDKCompiler
           
static class ClassChangeUtil.JDTCompiler
           
 
Constructor Summary
ClassChangeUtil()
           
 
Method Summary
static void _findAllMatching(HashSet<File> matching, String fileName, File from)
           
static Class compileAndLoad(File sourceFile, String fullyQualifiedName)
           
static Class compileAndLoad(File sourceFile, String packageName, String className)
           
static Class compileAndLoad(String sourcePath, String packageName, String className)
           
static Class compileAndLoad(String sourcePath, String packageName, String className, String outputPath)
           
static String compileClass(String sourcePath, String packageName, String className, String outputPath)
           
static Set<File> findAllMatching(String fileName, File from)
           
static Set<File> findMatchingOutputDirectoryByModel(Map<String,String> toMatch, File from)
           
static File getFileIfExists(String path)
           
static Class loadClassDefinition(String path, String packageName, String className)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassChangeUtil

public ClassChangeUtil()
Method Detail

compileAndLoad

public static Class compileAndLoad(File sourceFile,
                                   String fullyQualifiedName)
                            throws IOException
Throws:
IOException

compileAndLoad

public static Class compileAndLoad(File sourceFile,
                                   String packageName,
                                   String className)
                            throws IOException
Throws:
IOException

compileAndLoad

public static Class compileAndLoad(String sourcePath,
                                   String packageName,
                                   String className)
                            throws IOException
Throws:
IOException

compileAndLoad

public static Class compileAndLoad(String sourcePath,
                                   String packageName,
                                   String className,
                                   String outputPath)
                            throws IOException
Throws:
IOException

compileClass

public static String compileClass(String sourcePath,
                                  String packageName,
                                  String className,
                                  String outputPath)

loadClassDefinition

public static Class loadClassDefinition(String path,
                                        String packageName,
                                        String className)
                                 throws IOException
Throws:
IOException

getFileIfExists

public static File getFileIfExists(String path)

findAllMatching

public static Set<File> findAllMatching(String fileName,
                                        File from)

_findAllMatching

public static void _findAllMatching(HashSet<File> matching,
                                    String fileName,
                                    File from)

findMatchingOutputDirectoryByModel

public static Set<File> findMatchingOutputDirectoryByModel(Map<String,String> toMatch,
                                                           File from)

Errai 3.0.1-SNAPSHOT

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