public class ClassChangeUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ClassChangeUtil.JDKCompiler |
static class |
ClassChangeUtil.JDTCompiler |
Constructor and Description |
---|
ClassChangeUtil() |
Modifier and Type | Method and Description |
---|---|
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) |
public static Class compileAndLoad(File sourceFile, String fullyQualifiedName) throws IOException
IOException
public static Class compileAndLoad(File sourceFile, String packageName, String className) throws IOException
IOException
public static Class compileAndLoad(String sourcePath, String packageName, String className) throws IOException
IOException
public static Class compileAndLoad(String sourcePath, String packageName, String className, String outputPath) throws IOException
IOException
public static String compileClass(String sourcePath, String packageName, String className, String outputPath)
public static Class loadClassDefinition(String path, String packageName, String className) throws IOException
IOException
public static void _findAllMatching(HashSet<File> matching, String fileName, File from)
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.