org.jboss.classfilewriter.constpool
Class ConstPool
java.lang.Object
org.jboss.classfilewriter.constpool.ConstPool
- All Implemented Interfaces:
- WritableEntry
public class ConstPool
- extends Object
- implements WritableEntry
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstPool
public ConstPool()
addUtf8Entry
public short addUtf8Entry(String entry)
addClassEntry
public short addClassEntry(String className)
- Adds a CONSTANT_Class_info to the const pool. This must be in internal form
addStringEntry
public short addStringEntry(String string)
- Adds a CONSTANT_String_info to the const pool.
addIntegerEntry
public short addIntegerEntry(int entry)
addFloatEntry
public short addFloatEntry(float entry)
addLongEntry
public short addLongEntry(long entry)
addDoubleEntry
public short addDoubleEntry(double entry)
addNameAndTypeEntry
public short addNameAndTypeEntry(String name,
String type)
addFieldEntry
public short addFieldEntry(String className,
String fieldName,
String fieldType)
addMethodEntry
public short addMethodEntry(String className,
String methodName,
String descriptor)
addInterfaceMethodEntry
public short addInterfaceMethodEntry(String className,
String methodName,
String descriptor)
write
public void write(ByteArrayDataOutputStream stream)
throws IOException
- Specified by:
write
in interface WritableEntry
- Throws:
IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.