Examples of addSyntheticMethod()


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

  } else if (this.receiver instanceof QualifiedSuperReference){ // qualified super

    // qualified super need emulation always
    SourceTypeBinding destinationType = (SourceTypeBinding)(((QualifiedSuperReference)this.receiver).currentCompatibleType);
    this.syntheticAccessor = destinationType.addSyntheticMethod(this.codegenBinding, isSuperAccess());
    currentScope.problemReporter().needToEmulateMethodAccess(this.codegenBinding, this);
    return;

  } else if (this.binding.isProtected()){
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

    if (((this.bits & ASTNode.DepthMASK) != 0)
        && this.codegenBinding.declaringClass.getPackage()
          != (enclosingSourceType = currentScope.invocationType()).getPackage()){// AspectJ extension - ask for the invocationType(), not the enclosingSourceType()

      SourceTypeBinding currentCompatibleType = (SourceTypeBinding)enclosingSourceType.enclosingTypeAt((this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT);
      this.syntheticAccessor = currentCompatibleType.addSyntheticMethod(this.codegenBinding, isSuperAccess());
      currentScope.problemReporter().needToEmulateMethodAccess(this.codegenBinding, this);
      return;
    }
  }
 
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

  } else if (this.receiver instanceof QualifiedSuperReference){ // qualified super

    // qualified super need emulation always
    SourceTypeBinding destinationType = (SourceTypeBinding)(((QualifiedSuperReference)this.receiver).currentCompatibleType);
    this.syntheticAccessor = destinationType.addSyntheticMethod(codegenBinding, isSuperAccess());
    currentScope.problemReporter().needToEmulateMethodAccess(codegenBinding, this);
    return;

  } else if (this.binding.isProtected()){
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

    if (((this.bits & ASTNode.DepthMASK) != 0)
        && codegenBinding.declaringClass.getPackage()
          != (enclosingSourceType = currentScope.enclosingSourceType()).getPackage()){

      SourceTypeBinding currentCompatibleType = (SourceTypeBinding)enclosingSourceType.enclosingTypeAt((this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT);
      this.syntheticAccessor = currentCompatibleType.addSyntheticMethod(codegenBinding, isSuperAccess());
      currentScope.problemReporter().needToEmulateMethodAccess(codegenBinding, this);
      return;
    }
  }
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

  } else if (this.receiver instanceof QualifiedSuperReference) { // qualified super
    // qualified super need emulation always
    SourceTypeBinding destinationType = (SourceTypeBinding) (((QualifiedSuperReference) this.receiver).currentCompatibleType);
    if (this.syntheticAccessors == null)
      this.syntheticAccessors = new MethodBinding[2];
    this.syntheticAccessors[isReadAccess ? FieldReference.READ : FieldReference.WRITE] = destinationType.addSyntheticMethod(codegenBinding, isReadAccess, isSuperAccess());
    currentScope.problemReporter().needToEmulateFieldAccess(codegenBinding, this, isReadAccess);
    return;

  } else if (this.binding.isProtected()) {
    SourceTypeBinding enclosingSourceType;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

      SourceTypeBinding currentCompatibleType =
        (SourceTypeBinding) enclosingSourceType.enclosingTypeAt(
          (this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT);
      if (this.syntheticAccessors == null)
        this.syntheticAccessors = new MethodBinding[2];
      this.syntheticAccessors[isReadAccess ? FieldReference.READ : FieldReference.WRITE] = currentCompatibleType.addSyntheticMethod(codegenBinding, isReadAccess, isSuperAccess());
      currentScope.problemReporter().needToEmulateFieldAccess(codegenBinding, this, isReadAccess);
      return;
    }
  }
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

  } else if (this.receiver instanceof QualifiedSuperReference) { // qualified super
    // qualified super need emulation always
    SourceTypeBinding destinationType = (SourceTypeBinding) (((QualifiedSuperReference) this.receiver).currentCompatibleType);
    if (this.syntheticAccessors == null)
      this.syntheticAccessors = new MethodBinding[2];
    this.syntheticAccessors[isReadAccess ? FieldReference.READ : FieldReference.WRITE] = destinationType.addSyntheticMethod(codegenBinding, isReadAccess, isSuperAccess());
    currentScope.problemReporter().needToEmulateFieldAccess(codegenBinding, this, isReadAccess);
    return;

  } else if (this.binding.isProtected()) {
    SourceTypeBinding enclosingSourceType;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

      SourceTypeBinding currentCompatibleType =
        (SourceTypeBinding) enclosingSourceType.enclosingTypeAt(
          (this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT);
      if (this.syntheticAccessors == null)
        this.syntheticAccessors = new MethodBinding[2];
      this.syntheticAccessors[isReadAccess ? FieldReference.READ : FieldReference.WRITE] = currentCompatibleType.addSyntheticMethod(codegenBinding, isReadAccess, isSuperAccess());
      currentScope.problemReporter().needToEmulateFieldAccess(codegenBinding, this, isReadAccess);
      return;
    }
  }
}
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

  } else if (this.receiver instanceof QualifiedSuperReference){ // qualified super

    // qualified super need emulation always
    SourceTypeBinding destinationType = (SourceTypeBinding)(((QualifiedSuperReference)this.receiver).currentCompatibleType);
    this.syntheticAccessor = destinationType.addSyntheticMethod(codegenBinding, isSuperAccess());
    currentScope.problemReporter().needToEmulateMethodAccess(codegenBinding, this);
    return;

  } else if (this.binding.isProtected()){
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.addSyntheticMethod()

    if (((this.bits & ASTNode.DepthMASK) != 0)
        && codegenBinding.declaringClass.getPackage()
          != (enclosingSourceType = currentScope.enclosingSourceType()).getPackage()){

      SourceTypeBinding currentCompatibleType = (SourceTypeBinding)enclosingSourceType.enclosingTypeAt((this.bits & ASTNode.DepthMASK) >> ASTNode.DepthSHIFT);
      this.syntheticAccessor = currentCompatibleType.addSyntheticMethod(codegenBinding, isSuperAccess());
      currentScope.problemReporter().needToEmulateMethodAccess(codegenBinding, this);
      return;
    }
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.