resetForClinit(int constantPoolIndex, int constantPoolOffset) This method is used to clean the receiver in case of a clinit header is generated, but the
clinit has no code.
This method returns the index into the constantPool corresponding to the double
value. If the double is not already present into the pool, it is added. The
double cache is updated and it returns the right index.
Parameters: key - doubleint
This method returns the index into the constantPool corresponding to the float
value. If the float is not already present into the pool, it is added. The
int cache is updated and it returns the right index.
Parameters: key - floatint
This method returns the index into the constantPool corresponding to the int
value. If the int is not already present into the pool, it is added. The
int cache is updated and it returns the right index.
Parameters: key - intint
This method returns the index into the constantPool corresponding to the long
value. If the long is not already present into the pool, it is added. The
long cache is updated and it returns the right index.
Parameters: key - longint
literalIndex
public int literalIndex(String stringConstant)(Code)
This method returns the index into the constantPool corresponding to the type descriptor.
Parameters: stringConstant - java.lang.String int
literalIndexForField
public int literalIndexForField(char[] declaringClass, char[] name, char[] signature)(Code)
literalIndexForLdc
public int literalIndexForLdc(char[] stringCharArray)(Code)
This method returns the index into the constantPool corresponding to the type descriptor.
Parameters: stringCharArray - char[] int
literalIndexForMethod
public int literalIndexForMethod(char[] declaringClass, char[] selector, char[] signature, boolean isInterface)(Code)
literalIndexForMethod
public int literalIndexForMethod(TypeBinding binding, char[] selector, char[] signature, boolean isInterface)(Code)
literalIndexForNameAndType
public int literalIndexForNameAndType(char[] name, char[] signature)(Code)
literalIndexForType
public int literalIndexForType(char[] constantPoolName)(Code)
public void resetForClinit(int constantPoolIndex, int constantPoolOffset)(Code)
This method is used to clean the receiver in case of a clinit header is generated, but the
clinit has no code.
This implementation assumes that the clinit is the first method to be generated.
See Also:org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.addClinit