public class OCL2JavaFileObject extends SimpleJavaFileObject
JavaFileObject.Kind| Constructor and Description |
|---|
OCL2JavaFileObject(String qualifiedName,
String javaCode) |
| Modifier and Type | Method and Description |
|---|---|
CharSequence |
getCharContent(boolean ignoreEncodingErrors) |
static Class<?> |
loadExplicitClass(File explicitClassPath,
String qualifiedClassName)
Load the class whose Java name is qualifiedClassName and whose class file can be found below explicitClassPath.
|
static Class<?> |
loadExplicitClass(File explicitClassPath,
String qualifiedClassName,
ClassLoader fallBackClassLoader) |
static String |
saveClass(String explicitClassPath,
String qualifiedName,
String javaCodeSource) |
delete, getAccessLevel, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openOutputStream, openReader, openWriter, toString, toUripublic static Class<?> loadExplicitClass(File explicitClassPath, String qualifiedClassName) throws ClassNotFoundException, IOException
fallBackClassLoader - ClassNotFoundExceptionIOExceptionpublic static Class<?> loadExplicitClass(File explicitClassPath, String qualifiedClassName, ClassLoader fallBackClassLoader) throws ClassNotFoundException, IOException
ClassNotFoundExceptionIOExceptionpublic static String saveClass(String explicitClassPath, String qualifiedName, String javaCodeSource) throws MalformedURLException
MalformedURLExceptionpublic CharSequence getCharContent(boolean ignoreEncodingErrors) throws IOException
getCharContent in interface FileObjectgetCharContent in class SimpleJavaFileObjectIOExceptionCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.