org.extendj.ast
class ConstantPool

General Info

Type Hierarchy:
java.lang.Object
  extended by org.extendj.ast.ConstantPool

Description

Source
Declared in /home/jesper/git/extendj/java4/backend/ConstantPool.jrag at line 38
Aspect
ConstantPool

Member Filters

API level:

Aspect:

Constructors

public ConstantPool(TypeDecl typeDecl)

Methods

public int numElements()
public java.lang.String toString()
public void emit(java.io.DataOutputStream out)
          throws java.io.IOException
public int newLabel()
public int addClass(java.lang.String name)
public int addFieldref(java.lang.String classname,
                       java.lang.String name,
                       java.lang.String type)
public int addMethodref(java.lang.String classname,
                        java.lang.String name,
                        java.lang.String desc)
public int addInterfaceMethodref(java.lang.String classname,
                                 java.lang.String name,
                                 java.lang.String desc)
public int addNameAndType(java.lang.String name,
                          java.lang.String type)
public int addUtf8(java.lang.String name)
public int addConstant(java.lang.String val)
Add value to constant pool.
Returns:
index of value in constant pool
public int addConstant(int val)
Add value to constant pool.
Returns:
index of value in constant pool
public int addConstant(float val)
Add value to constant pool.
Returns:
index of value in constant pool
public int addConstant(long val)
Add value to constant pool.
Returns:
index of value in constant pool
public int addConstant(double val)
Add value to constant pool.
Returns:
index of value in constant pool

Fields

public static final byte CONSTANT_Class
public static final byte CONSTANT_Fieldref
public static final byte CONSTANT_Methodref
public static final byte CONSTANT_InterfaceMethodref
public static final byte CONSTANT_String
public static final byte CONSTANT_Integer
public static final byte CONSTANT_Float
public static final byte CONSTANT_Long
public static final byte CONSTANT_Double
public static final byte CONSTANT_NameAndType
public static final byte CONSTANT_Utf8

Inherited Members

Methods inherited from class java.lang.Object

clone
equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait