Package org.aspectj.org.eclipse.jdt.internal.compiler.ast

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


      Initializer initializer,
      ClassScope scope,
      int from,
      char[][] discouragedNames,
      UnresolvedReferenceNameRequestor nameRequestor) {
    MethodDeclaration fakeMethod =
      this.findAfter(startWith, scope, from, initializer.bodyEnd, MAX_LINE_COUNT, false, discouragedNames, nameRequestor);
    if (fakeMethod != null) fakeMethod.traverse(this, scope);
  }
View Full Code Here


      char[] startWith,
      AbstractMethodDeclaration methodDeclaration,
      int from,
      char[][] discouragedNames,
      UnresolvedReferenceNameRequestor nameRequestor) {
    MethodDeclaration fakeMethod =
      this.findAfter(startWith, methodDeclaration.scope, from, methodDeclaration.bodyEnd, MAX_LINE_COUNT, false, discouragedNames, nameRequestor);
    if (fakeMethod != null) fakeMethod.traverse(this, methodDeclaration.scope.classScope());
  }
View Full Code Here

      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

      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

      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

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

    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

  }
  // 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

  }
 
  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

  }

  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

TOP

Related Classes of org.aspectj.org.eclipse.jdt.internal.compiler.ast.MethodDeclaration

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.