Examples of TypeDeclaration


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

    }
    pendingTypesToWeave.clear();
  }

  private void addAdviceLikeDeclares(ClassScope s) {
    TypeDeclaration dec = s.referenceContext;

    if (dec instanceof AspectDeclaration) {
      ResolvedType typeX = factory.fromEclipse(dec.binding);
      factory.getWorld().getCrosscuttingMembersSet().addAdviceLikeDeclares(typeX);
    }
View Full Code Here

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

      addAdviceLikeDeclares(((SourceTypeBinding) memberTypes[i]).scope);
    }
  }

  private void addCrosscuttingStructures(ClassScope s) {
    TypeDeclaration dec = s.referenceContext;

    if (dec instanceof AspectDeclaration) {
      ResolvedType typeX = factory.fromEclipse(dec.binding);
      factory.getWorld().getCrosscuttingMembersSet().addOrReplaceAspect(typeX, false);
View Full Code Here

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

      addCrosscuttingStructures(((SourceTypeBinding) memberTypes[i]).scope);
    }
  }

  private void resolvePointcutDeclarations(ClassScope s) {
    TypeDeclaration dec = s.referenceContext;
    SourceTypeBinding sourceType = s.referenceContext.binding;
    boolean hasPointcuts = false;
    AbstractMethodDeclaration[] methods = dec.methods;
    boolean initializedMethods = false;
    if (methods != null) {
View Full Code Here

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

  /**
   * Applies any intertype member type declarations up front.
   */
  private void processInterTypeMemberTypes(ClassScope classScope) {
    TypeDeclaration dec = classScope.referenceContext;
    if (dec instanceof AspectDeclaration) {
      ((AspectDeclaration) dec).processIntertypeMemberTypes(classScope);
    }
    // if we are going to support nested aspects making itd member types, copy the logic from the end of
    // buildInterTypeAndPerClause() which walks members
View Full Code Here

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

    // if we are going to support nested aspects making itd member types, copy the logic from the end of
    // buildInterTypeAndPerClause() which walks members
  }

  private void buildInterTypeAndPerClause(ClassScope s) {
    TypeDeclaration dec = s.referenceContext;
    if (dec instanceof AspectDeclaration) {
      ((AspectDeclaration) dec).buildInterTypeAndPerClause(s);
    }

    SourceTypeBinding sourceType = s.referenceContext.binding;
View Full Code Here

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

        if (toAdd != null && toAdd.length > 0 && toAdd[0].resolvedType != null) {
          abits = toAdd[0].resolvedType.getAnnotationTagBits();
        }
      } else {
        abits = mbs[0].getAnnotationTagBits(); // ensure resolved
        TypeDeclaration typeDecl = ((SourceTypeBinding) declaringBinding).scope.referenceContext;
        methodDecl = typeDecl.declarationOf(mbs[0]);
        toAdd = methodDecl.annotations; // this is what to add
        toAdd[0] = createAnnotationCopy(toAdd[0]);
        if (toAdd[0].resolvedType != null) {
          abits = toAdd[0].resolvedType.getAnnotationTagBits();
          // }
View Full Code Here

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

        LocalDeclaration localDeclaration = (LocalDeclaration) updatedStatement;
        if(localDeclaration.declarationSourceEnd > lastEnd) {
          lastEnd = localDeclaration.declarationSourceEnd;
        }
      } else if (updatedStatement instanceof TypeDeclaration) {
        TypeDeclaration typeDeclaration = (TypeDeclaration) updatedStatement;
        if(typeDeclaration.declarationSourceEnd > lastEnd) {
          lastEnd = typeDeclaration.declarationSourceEnd;
        }
      } else {
        if (updatedStatement.sourceEnd > lastEnd) {
View Full Code Here

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

  public Shadow makeShadow(ReferenceContext context) {
    return EclipseShadow.makeShadow(this, (ASTNode) context, context);
  }

  public void addSourceTypeBinding(SourceTypeBinding binding, CompilationUnitDeclaration unit) {
    TypeDeclaration decl = binding.scope.referenceContext;

    // Deal with the raw/basic type to give us an entry in the world type map
    UnresolvedType simpleTx = null;
    if (binding.isGenericType()) {
      simpleTx = UnresolvedType.forRawTypeName(getName(binding));
View Full Code Here

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

    classFile.addDefaultAbstractMethods();
  }
  // propagate generation of (problem) member types
  if (typeDeclaration.memberTypes != null) {
    for (int i = 0, max = typeDeclaration.memberTypes.length; i < max; i++) {
      TypeDeclaration memberType = typeDeclaration.memberTypes[i];
      if (memberType.binding != null) {
        ClassFile.createProblemType(memberType, unitResult);
      }
    }
  }
View Full Code Here

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

      return argumentNames;
    }
    if (realBinding instanceof FieldBinding) {
      argumentNames = NO_ARGS;
    } else {
      TypeDeclaration typeDecl = getTypeDeclaration();
      AbstractMethodDeclaration methodDecl = (typeDecl == null ? null : typeDecl.declarationOf((MethodBinding) realBinding));
      Argument[] args = (methodDecl == null ? null : methodDecl.arguments); // dont
      // like
      // this
      // -
      // why
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.