Hi,
“Qualifier” her qualifies the “ThisExpression” and it is not the name of local variable. For example:
public class test1 {
private int
value = 1;
public
void printValue() {
System.out.println("this.value=" +
this.value);
System.out.println("Qualified This.this.value=" + test1.this.value);
}
}
Here in “test1.this” “test1” is the class name and is the qualifier for “this”.
I hope it is clear.
Thanks & Regards,
Sarika
From: jdt-dev <jdt-dev-bounces@xxxxxxxxxxx> on behalf of Aruforce <xm952060690@xxxxxxxxx>
Reply to: "Eclipse JDT general developers list." <jdt-dev@xxxxxxxxxxx>
Date: Monday, 17 January 2022 at 3:00 PM
To: "jdt-dev@xxxxxxxxxxx" <jdt-dev@xxxxxxxxxxx>
Subject: [EXTERNAL] [jdt-dev] bug in NaiveASTFlattener
method :
public boolean visit(ThisExpression node)
buffer should append 'this' and dot at first
ThisExpression thisExpression = ast.newThisExpression();
thisExpression.setQualifier(ast.newName("name"));
System.out.println(thisExpression.toString());
output is 'name.this' , expected is 'this.name'