public class ClassFile extends SimpleJavaFileObject
JavaFileObject.Kindkind, uri| Constructor and Description |
|---|
ClassFile(String className)
Creates a new class file holder.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteCode()
Returns byte code representation of the class after the class has been compiled.
|
String |
getClassName()
Getter for class name associated with this class file.
|
OutputStream |
openOutputStream() |
delete, getAccessLevel, getCharContent, getKind, getLastModified, getName, getNestingKind, isNameCompatible, openInputStream, openReader, openWriter, toString, toUripublic ClassFile(String className) throws URISyntaxException
className - class name.URISyntaxException - in case given class name could not be represented as an URI.public String getClassName()
public OutputStream openOutputStream() throws IOException
openOutputStream in interface FileObjectopenOutputStream in class SimpleJavaFileObjectIOExceptionpublic byte[] getByteCode()
Copyright © 2007-2023, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.