Package org.eclipse.jdt.core.dom

Examples of org.eclipse.jdt.core.dom.ThisExpression


          + "Property Upper: " + property.getUpper() + " - "
          + "Property Lower: " + property.getLower());

      // Left expression
      SimpleName simpleName = ast.newSimpleName(property.getName());
      ThisExpression thisExpression = ast.newThisExpression();
      FieldAccess fieldAccess = ast.newFieldAccess();
      fieldAccess.setName(simpleName);
      fieldAccess.setExpression(thisExpression);

      // Right expression
View Full Code Here


      MethodInvocation methInv = ast.newMethodInvocation();
      methInv.setName(methodName);
      if (parameter != null)
        methInv.arguments().add(parameter);
      if (qualifier.equals("this__0")) {
        ThisExpression thisExpression = ast.newThisExpression();
        // radom
        // o this pode ser qualificado ou nao
        // Random generator = new Random();
        // int value = generator.nextInt(2);
        // if (value == 1)
        // thisExpression.setQualifier(ast.newSimpleName(classId));
        methInv.setExpression(thisExpression);
      }
      if (qualifier.equals("qthis__0")) {
        ThisExpression thisExpression = ast.newThisExpression();
        thisExpression.setQualifier(ast.newSimpleName(classId));
        methInv.setExpression(thisExpression);
      }
      result = methInv;
    }
View Full Code Here

      result = superFieldAcc;
    } else {
      if (qualifier.equals("this__0")) {
        FieldAccess fieldAcc = ast.newFieldAccess();     
        fieldAcc.setName(fieldName);
        ThisExpression thisExpression = ast.newThisExpression();       
        fieldAcc.setExpression(thisExpression);
        result = fieldAcc;
      }
      else if (qualifier.equals("qthis__0")) {
        FieldAccess fieldAcc = ast.newFieldAccess();     
        fieldAcc.setName(fieldName);
        ThisExpression thisExpression = ast.newThisExpression();
        thisExpression.setQualifier(ast.newSimpleName(classId));
        fieldAcc.setExpression(thisExpression);
        result = fieldAcc;
      }
    }
    return result;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.core.dom.ThisExpression

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.