public class UimaDecompiler extends Object
Constructor and Description |
---|
UimaDecompiler() |
UimaDecompiler(ClassLoader classLoader,
File outputDirectory) |
Modifier and Type | Method and Description |
---|---|
String |
decompile(byte[] b)
Decompile from the file system, maybe in a Jar.
|
ByteArrayOutputStream |
decompile(String className)
decompile className, getting the compiled version from the classpath
|
ByteArrayOutputStream |
decompileCommon(String className)
Common part for decompiling to a ByteArrayOutputStream
the decompiler settings are set up to get the compiled form by name
|
boolean |
decompiledFailed(ByteArrayOutputStream baos) |
boolean |
decompileToOutputDirectory(String className) |
String |
decompileToString(String className)
decompile className, getting the compiled version from the classpath
|
String |
decompileToString(String className,
byte[] byteArray) |
boolean |
writeIfOk(ByteArrayOutputStream baos,
String className) |
public UimaDecompiler()
public UimaDecompiler(ClassLoader classLoader, File outputDirectory)
public ByteArrayOutputStream decompile(String className)
className
- the dotted name of the classpublic ByteArrayOutputStream decompileCommon(String className)
className
- the class to decompilepublic String decompileToString(String className)
className
- the dotted or slashified name of the classpublic String decompile(byte[] b)
b
- the byte array representing the compiled filepublic boolean decompileToOutputDirectory(String className)
public boolean writeIfOk(ByteArrayOutputStream baos, String className)
public boolean decompiledFailed(ByteArrayOutputStream baos)
Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.