If my method call is:

```
obj.getLevelOne().getLevelTwo().getValue();

```

And I want to pass this method as a parameter below:

```
boolean checkValue( obj, method , value) 
{
   return obj.method() == value;
}

```

I want to call the checkValue method like this:

```
checkValue(obj, "getLevelOne().getLevelTwo().getValue", value);

```

Is there any way I can accomplish this? Please help.