Package org.aspectj.ajdt.internal.compiler.lookup

Examples of org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceLocation


    // See bug 62073. We should assert that the caller pass the correct primary source location.
    // But for AJ1.2 final we will simply do less processing of the locations if that is not the
    // case (By calling sink.handleMessage()) - this ensures we don't put out bogus source context info.
    if (sLoc instanceof EclipseSourceLocation) {
      EclipseSourceLocation esLoc = (EclipseSourceLocation) sLoc;
      if (currentlyWeaving != null && esLoc.getCompilationResult() != null) {
        if (!currentlyWeaving.equals(((EclipseSourceLocation) sLoc).getCompilationResult()))
          return sink.handleMessage(message);
        // throw new RuntimeException("Primary source location must match the file we are currently processing!");
      }
    }
View Full Code Here


  private File getSourceFile() {
    return new File(new String(result.fileName));
  }

  public ISourceLocation makeSourceLocation(IHasPosition position) {
    return new EclipseSourceLocation(result, position.getStart(), position.getEnd());
  }
View Full Code Here

    }

    // TODO [inner] use the interTypeScope.getRecoveryAliases
    // TODO [inner] should mark it in the aspect as unreachable - it is not to be considered part of the aspect
    newMemberClassTypeMunger = new NewMemberClassTypeMunger(declaringType, new String(this.name));
    newMemberClassTypeMunger.setSourceLocation(new EclipseSourceLocation(compilationResult, sourceStart, sourceEnd));
    ResolvedType aspectType = world.fromEclipse(classScope.referenceContext.binding);
    return new EclipseTypeMunger(world, newMemberClassTypeMunger, aspectType, null);
  }
View Full Code Here

    if (depthCounter!=0) return expression; // Don't mess with super calls down in nested local type declarations (pr90143)
    if (expression instanceof SuperReference) {
      SuperReference superRef = (SuperReference) expression;
      if (superType == null) {
        ISourceLocation location =
          new EclipseSourceLocation(scope.problemReporter().referenceContext.compilationResult(),
                    expression.sourceStart, expression.sourceEnd);
       
        world.showMessage(IMessage.ERROR, "multiple supertypes for this interface", location, null);
        dec.ignoreFurtherInvestigation = true;
      }
View Full Code Here

   */
  private void raiseNoFieldInitializersWarning() {
    if (suppressingNoExplicitConstructorCall())
      return;
    EclipseFactory world = EclipseFactory.fromScopeLookupEnvironment(scope);
    ISourceLocation location = new EclipseSourceLocation(scope.problemReporter().referenceContext.compilationResult(),
        sourceStart(), sourceEnd());
    world.getWorld().getLint().noExplicitConstructorCall.signal(null, location);
  }
View Full Code Here

   
    // See bug 62073.  We should assert that the caller pass the correct primary source location.
    // But for AJ1.2 final we will simply do less processing of the locations if that is not the
    // case (By calling sink.handleMessage()) - this ensures we don't put out bogus source context info.
    if (sLoc instanceof EclipseSourceLocation) {
      EclipseSourceLocation esLoc = (EclipseSourceLocation)sLoc;
      if (currentlyWeaving!=null && esLoc.getCompilationResult()!=null) {
        if (!currentlyWeaving.equals(((EclipseSourceLocation)sLoc).getCompilationResult()))
        return sink.handleMessage(message);
        //  throw new RuntimeException("Primary source location must match the file we are currently processing!");
      }
    }
View Full Code Here

  private File getSourceFile() {
    return new File(new String(result.fileName));
  }

  public ISourceLocation makeSourceLocation(IHasPosition position) {
    return new EclipseSourceLocation(result, position.getStart(), position.getEnd());
  }
View Full Code Here

    if (depthCounter!=0) return expression; // Don't mess with super calls down in nested local type declarations (pr90143)
    if (expression instanceof SuperReference) {
      SuperReference superRef = (SuperReference) expression;
      if (superType == null) {
        ISourceLocation location =
          new EclipseSourceLocation(scope.problemReporter().referenceContext.compilationResult(),
                    expression.sourceStart, expression.sourceEnd);
       
        world.showMessage(IMessage.ERROR, "multiple supertypes for this interface", location, null);
        dec.ignoreFurtherInvestigation = true;
      }
View Full Code Here

TOP

Related Classes of org.aspectj.ajdt.internal.compiler.lookup.EclipseSourceLocation

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.