Examples of MethodDeclaration


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

      ClassScope classScope,
      int from,
      int to,
      char[][] discouragedNames,
      UnresolvedReferenceNameRequestor nameRequestor) {
    MethodDeclaration fakeMethod =
      this.findAfter(startWith, scope, from, to, MAX_LINE_COUNT / 2, true, discouragedNames, nameRequestor);
    if (fakeMethod != null) fakeMethod.traverse(this, classScope);
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

      end = maxEnd < to ? maxEnd : to;
    }
   
    this.parser.startRecordingIdentifiers(from, end);
   
    MethodDeclaration fakeMethod = this.parser.parseSomeStatements(
        from,
        end,
        outsideEnclosingBlock ? FAKE_BLOCKS_COUNT : 0,
        s.compilationUnitScope().referenceContext);
   
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

      int from,
      int recordTo,
      int parseTo,
      char[][] discouragedNames,
      UnresolvedReferenceNameRequestor nameRequestor) {
    MethodDeclaration fakeMethod =
      this.findBefore(startWith, scope, from, recordTo, parseTo, MAX_LINE_COUNT / 2, discouragedNames, nameRequestor);
    if (fakeMethod != null) fakeMethod.traverse(this, classScope);
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

      fakeBlocksCount = FAKE_BLOCKS_COUNT;
    }
   
    this.parser.startRecordingIdentifiers(start, recordTo);
   
    MethodDeclaration fakeMethod = this.parser.parseSomeStatements(
        start,
        parseTo,
        fakeBlocksCount,
        s.compilationUnitScope().referenceContext);
   
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

    if (methodDeclarations != null) {
      TypeDeclaration currentDeclaration = this.referenceBinding.scope.referenceContext;
      int typeDeclarationSourceStart = currentDeclaration.sourceStart();
      int typeDeclarationSourceEnd = currentDeclaration.sourceEnd();
      for (int i = 0, max = methodDeclarations.length; i < max; i++) {
        MethodDeclaration methodDeclaration = methodDeclarations[i];
        MethodBinding methodBinding = methodDeclaration.binding;
         String readableName = new String(methodBinding.readableName());
         CategorizedProblem[] problems = compilationResult.problems;
         int problemsCount = compilationResult.problemCount;
        for (int j = 0; j < problemsCount; j++) {
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

  }
  // End AspectJ extension
 
  protected void consumeEmptyPointcutDeclaration() {
    // AspectJ extension - set up some positions, required by AST support
    MethodDeclaration pcutDecl = (MethodDeclaration)astStack[astPtr];
    pcutDecl.bodyEnd = endStatementPosition;
    // End Aspectj Extension
    //??? set pcd to non-null
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

  }
 
  protected void consumePointcutHeader() {
    //PointcutDeclaration ::= Modifiersopt 'pointcut'  JavaIdentifier '('
   
    MethodDeclaration ret = declarationFactory.createPointcutDeclaration(compilationUnit.compilationResult);
   
    //the name
    long pos = identifierPositionStack[identifierPtr];
//    int sourceEnd = (int) pos;
    ret.sourceStart = (int) (pos >>> 32);
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

  }

  protected void consumeAroundHeaderName() {
    // AroundHeaderName ::= Modifiersopt Type  'around' '('
   
    MethodDeclaration adviceDecl = declarationFactory.createAroundAdviceDeclaration(compilationUnit.compilationResult);
   
    // skip the name of the advice
    long pos = eatIdentifier();
    adviceDecl.sourceStart = (int) (pos >>> 32);
       
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

    pushOnAstStack(adviceDecl);
  }
 
  protected void consumePointcutDesignatorOnAdvice() {
    ASTNode des = popPointcutDesignator("{");
    MethodDeclaration adviceDecl = (MethodDeclaration)astStack[astPtr];
    declarationFactory.setPointcutDesignatorOnAdvice(adviceDecl,des);
    adviceDecl.sourceEnd =   des.sourceEnd;
    adviceDecl.bodyStart = des.sourceEnd+1;
  }
View Full Code Here

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

    adviceDecl.bodyStart = des.sourceEnd+1;
  }
 
  protected void consumePointcutDesignatorOnDeclaration() {
    ASTNode des = popPointcutDesignator(";");
    MethodDeclaration pcutDecl = (MethodDeclaration)astStack[astPtr];
    declarationFactory.setPointcutDesignatorOnPointcut(pcutDecl,des);
    pcutDecl.sourceEnd =   des.sourceEnd;
    pcutDecl.bodyStart = des.sourceEnd+1;
    pcutDecl.bodyEnd = endPosition;
    pcutDecl.declarationSourceEnd = flushCommentsDefinedPriorTo(endStatementPosition);
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.