org.jboss.errai.codegen.util
Class ClassChangeUtil
java.lang.Object
org.jboss.errai.codegen.util.ClassChangeUtil
public class ClassChangeUtil
- extends Object
- Author:
- Mike Brock
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 |
ClassChangeUtil
public ClassChangeUtil()
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)
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.