Re: Add a new field to a class - urgent

Simplice Djoko <[email protected]>
Newsgroups gmane.comp.jakarta.bcel.user
Message-ID <[email protected]>
Dave Brosius wrote:

>
> ----- Original Message ----- From: "Simplice Djoko" 
> <[email protected]>
> To: <[email protected]>
> Sent: Monday, February 14, 2005 11:39 AM
> Subject: Add a new field to a class - urgent
>
>
>> Hi everybody,
>>  I want to add a new field to a class and i don't understand the 
>> meaning of the parameters
>> ||access_flags,| name_index,||signature_index,and ||Attribute 
>> <cid:[email protected]>[]. Somebody could help me 
>> please(meaning of the parameters + example)?
>> thank you.
>> |
>>
>> -- 
>
>
> access_flags is from Constants.java
>  public final static short ACC_PUBLIC       = 0x0001;
>  public final static short ACC_PRIVATE      = 0x0002;
>  public final static short ACC_PROTECTED    = 0x0004;
>  public final static short ACC_STATIC       = 0x0008;
>
>  public final static short ACC_FINAL        = 0x0010;
>  public final static short ACC_VOLATILE     = 0x0040;
>  public final static short ACC_TRANSIENT    = 0x0080;
>
> name_index and signature_index are the indexes into the Constant Pool 
> for the name and signature of the new field.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
Hi dave,
 thank for your answer, please could you tel me what is the difference 
between name_index
and signature_index and what can i do to give for a new field the values 
of name_index and
signature_index who are not in the constant pool

-- 
Simplice Djoko.	Equipe cadp. VERIMAG. Grenoble. France.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.