APIdia Launch Partner
Top Fields Constructors Methods
sun.jvm.hotspot.tools.jcore

public Class ClassWriter

extends Object
implements ClassConstants
Class Inheritance
All Implemented Interfaces
sun.jvm.hotspot.runtime.ClassConstants
Imports
java.io.*, java.util.*, sun.jvm.hotspot.oops.*, sun.jvm.hotspot.runtime.*, sun.jvm.hotspot.utilities.*

Field Summary

Modifier and TypeField and Description
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected short
protected Map<String, Short>
protected ConstantPool
public static final boolean
protected DataOutputStream
protected InstanceKlass
protected Map<String, Short>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
protected static int
protected static int
protected boolean
hasSyntheticAttribute(short accessFlags)

protected boolean
isSynthetic(short accessFlags)

protected void
rewriteByteCode(Method m, byte[] code)

public void
protected void
writeAnnotationAttribute(String annotationName, U1Array annotation)

protected void
protected void
protected void
protected void
protected void
protected void
writeIndex(int index)

protected void
protected void
protected void
protected void
protected void
protected void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_bootstrapMethodsIndexback to summary
protected short _bootstrapMethodsIndex
_codeIndexback to summary
protected short _codeIndex
_constantValueIndexback to summary
protected short _constantValueIndex
_deprecatedIndexback to summary
protected short _deprecatedIndex
_exceptionsIndexback to summary
protected short _exceptionsIndex
_innerClassesIndexback to summary
protected short _innerClassesIndex
_lineNumberTableIndexback to summary
protected short _lineNumberTableIndex
_localVariableTableIndexback to summary
protected short _localVariableTableIndex
_nestHostIndexback to summary
protected short _nestHostIndex
_nestMembersIndexback to summary
protected short _nestMembersIndex
_signatureIndexback to summary
protected short _signatureIndex
_sourceFileIndexback to summary
protected short _sourceFileIndex
_stackMapTableIndexback to summary
protected short _stackMapTableIndex
_syntheticIndexback to summary
protected short _syntheticIndex
classToIndexback to summary
protected Map<String, Short> classToIndex
cpoolback to summary
protected ConstantPool cpool
DEBUGback to summary
public static final boolean DEBUG
dosback to summary
protected DataOutputStream dos
klassback to summary
protected InstanceKlass klass
utf8ToIndexback to summary
protected Map<String, Short> utf8ToIndex

Constructor Detail

ClassWriterback to summary
public ClassWriter(InstanceKlass kls, OutputStream os)

Method Detail

debugMessageback to summary
protected void debugMessage(String message)
extractHighShortFromIntback to summary
protected static int extractHighShortFromInt(int val)
extractLowShortFromIntback to summary
protected static int extractLowShortFromInt(int val)
hasSyntheticAttributeback to summary
protected boolean hasSyntheticAttribute(short accessFlags)
isSyntheticback to summary
protected boolean isSynthetic(short accessFlags)
rewriteByteCodeback to summary
protected void rewriteByteCode(Method m, byte[] code)
writeback to summary
public void write() throws IOException
writeAnnotationAttributeback to summary
protected void writeAnnotationAttribute(String annotationName, U1Array annotation) throws IOException
writeClassAccessFlagsback to summary
protected void writeClassAccessFlags() throws IOException
writeClassAttributesback to summary
protected void writeClassAttributes() throws IOException
writeConstantPoolback to summary
protected void writeConstantPool() throws IOException
writeFieldsback to summary
protected void writeFields() throws IOException
writeGenericSignatureback to summary
protected void writeGenericSignature(String signature) throws IOException
writeIndexback to summary
protected void writeIndex(int index) throws IOException
writeInterfacesback to summary
protected void writeInterfaces() throws IOException
writeMethodback to summary
protected void writeMethod(Method m) throws IOException
writeMethodsback to summary
protected void writeMethods() throws IOException
writeSuperClassback to summary
protected void writeSuperClass() throws IOException
writeSyntheticback to summary
protected void writeSynthetic() throws IOException
writeThisClassback to summary
protected void writeThisClass() throws IOException
writeVersionback to summary
protected void writeVersion() throws IOException