public class ClassTypeWriter
extends java.io.PrintWriter
Modifier and Type | Field and Description |
---|---|
static int |
PRINT_CONSTANT_POOL
Flag to print constant pool.
|
static int |
PRINT_CONSTANT_POOL_INDEXES
Flag to print constant pool indexes.
|
static int |
PRINT_EXTRAS |
static int |
PRINT_VERBOSE |
static int |
PRINT_VERSION
Flag to print classfile version numbers.
|
Constructor and Description |
---|
ClassTypeWriter(ClassType ctype,
java.io.OutputStream stream,
int flags) |
ClassTypeWriter(ClassType ctype,
java.io.Writer stream,
int flags) |
Modifier and Type | Method and Description |
---|---|
void |
print() |
void |
print(ClassType ctype) |
static void |
print(ClassType ctype,
java.io.PrintStream stream,
int flags) |
static void |
print(ClassType ctype,
java.io.PrintWriter stream,
int flags) |
void |
printAttributes() |
void |
printAttributes(AttrContainer container) |
void |
printClassInfo() |
void |
printConstantPool() |
void |
printFields() |
void |
printMethod(Method method) |
void |
printMethods() |
void |
printOptionalIndex(CpoolEntry entry) |
void |
printOptionalIndex(int index) |
void |
printQuotedString(java.lang.String string) |
void |
printSignature(java.lang.String sig)
Print a signature string in Java source.
|
int |
printSignature(java.lang.String sig,
int pos)
Print in Java source form one type from a signature string.
|
void |
printSignature(Type type) |
void |
printSpaces(int count) |
void |
setClass(ClassType ctype) |
void |
setFlags(int flags) |
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, write
public static final int PRINT_CONSTANT_POOL
public static final int PRINT_CONSTANT_POOL_INDEXES
public static final int PRINT_VERSION
public static final int PRINT_EXTRAS
public static final int PRINT_VERBOSE
public ClassTypeWriter(ClassType ctype, java.io.Writer stream, int flags)
public ClassTypeWriter(ClassType ctype, java.io.OutputStream stream, int flags)
public void setFlags(int flags)
public static void print(ClassType ctype, java.io.PrintWriter stream, int flags)
public static void print(ClassType ctype, java.io.PrintStream stream, int flags)
public void print()
public void setClass(ClassType ctype)
public void print(ClassType ctype)
public void printAttributes()
public void printAttributes(AttrContainer container)
public void printClassInfo()
public void printFields()
public void printMethods()
public void printMethod(Method method)
public final void printQuotedString(java.lang.String string)
public void printConstantPool()
public final void printOptionalIndex(int index)
public final void printOptionalIndex(CpoolEntry entry)
public final int printSignature(java.lang.String sig, int pos)
sig
- the signature string to printpos
- the index in sig to start withpublic final void printSignature(java.lang.String sig)
sig
- the signature string to printpublic final void printSignature(Type type)
public void printSpaces(int count)