[SOLVED][Q] field in inner method

Search This thread

Massi-X

Senior Member
Nov 28, 2013
287
371
Hi all,first thanks to @GermainZ for help.

But now I have another problem:
I have this code:
Code:
public class ClassA {

public int MethodA(Param 1){
....
Boolean B1 = false;
String S1 = "...";
.....}}

I have to have access the field in this method.How can I do this?
Thanks in advance.
 
Last edited:

GermainZ

Inactive Recognized Developer / Retired Forum Mod
Aug 3, 2012
6,170
8,805
You can't directly, but you can recreate the process to get it again.
 
  • Like
Reactions: Massi-X

rovo89

Senior Recognized Developer
Jan 4, 2012
2,585
81,434
In the title, you mention an "inner class", but in your example the fields are inside a method. Which one do you mean? Fields in a method can indeed not be accessed.
 
  • Like
Reactions: Massi-X

Massi-X

Senior Member
Nov 28, 2013
287
371
Sorry I have correct the title.
In what way I can recreate all that method with the one hooked?
EDIT:may I have understand... I will try
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    You can't directly, but you can recreate the process to get it again.
    1
    In the title, you mention an "inner class", but in your example the fields are inside a method. Which one do you mean? Fields in a method can indeed not be accessed.