Package org.aspectj.weaver

Examples of org.aspectj.weaver.ResolvedMemberImpl


    ret.setGenericSignatureInformationProvider(createGenericSignatureProvider(inWorld));
    return ret;
  }
 
  public static ResolvedMember createHandlerMember(Class exceptionType, Class inType,World inWorld) {
    return new ResolvedMemberImpl(
        org.aspectj.weaver.Member.HANDLER,
        toResolvedType(inType,(ReflectionWorld)inWorld),
        Modifier.STATIC,
        "<catch>",
        "(" + inWorld.resolve(exceptionType.getName()).getSignature() + ")V");
View Full Code Here


  {
    InstructionList body = enclosingMethod.getBody();
    UnresolvedType catchType = exceptionRange.getCatchType();
    UnresolvedType inType = enclosingMethod.getEnclosingClass().getType();
   
    ResolvedMemberImpl sig = MemberImpl.makeExceptionHandlerSignature(inType, catchType);         
    sig.parameterNames = new String[] {findHandlerParamName(startOfHandler)};
   
        BcelShadow s =
            new BcelShadow(
                world,
View Full Code Here

    return ret;
  }
 
  public void notePrivilegedTypeAccess(ReferenceBinding type, ASTNode location) {
    ResolvedMember key =
      new ResolvedMemberImpl(Member.STATIC_INITIALIZATION,
        inAspect.factory.fromEclipse(type), 0, ResolvedType.VOID, "", UnresolvedType.NONE);
   
    checkWeaveAccess(key.getDeclaringType(), location);
    accessors.put(key, key);
  }
View Full Code Here

    }
   
    // AMC these next two lines shouldn't be needed once we sort out generic types properly in the world map
    ResolvedType realDeclaringType = world.resolve(fromBinding(declaringType));
    if (realDeclaringType.isRawType()) realDeclaringType = realDeclaringType.getGenericType();
    ResolvedMemberImpl ret =  new ResolvedMemberImpl(
      memberKind,
      realDeclaringType,
      binding.modifiers,
      fromBinding(binding.returnType),
      new String(binding.selector),
      fromBindings(binding.parameters),
      fromBindings(binding.thrownExceptions)
      );
    if (binding.isVarargs()) {
      ret.setVarargsMethod();
    }
    if (ajTypeRefs!=null) {
      TypeVariable[] tVars = new TypeVariable[ajTypeRefs.length];
      for (int i=0;i<ajTypeRefs.length;i++) {
        tVars[i]=((TypeVariableReference)ajTypeRefs[i]).getTypeVariable();
      }
      ret.setTypeVariables(tVars);
    }
    typeVariablesForThisMember.clear();
    ret.resolve(world);
    return ret;
  }
View Full Code Here

 
  public ResolvedMember makeResolvedMember(FieldBinding binding, TypeBinding receiverType) {
    // AMC these next two lines shouldn't be needed once we sort out generic types properly in the world map
    ResolvedType realDeclaringType = world.resolve(fromBinding(receiverType));
    if (realDeclaringType.isRawType()) realDeclaringType = realDeclaringType.getGenericType();
    return new ResolvedMemberImpl(
      Member.FIELD,
      realDeclaringType,
      binding.modifiers,
      world.resolve(fromBinding(binding.type)),
      new String(binding.name),
View Full Code Here

  public boolean isXSerializableAspects() {
    return xSerializableAspects;
  }
 
  public ResolvedMember fromBinding(MethodBinding binding) {
    return new ResolvedMemberImpl(Member.METHOD,fromBinding(binding.declaringClass),binding.modifiers,
                   fromBinding(binding.returnType),CharOperation.charToString(binding.selector),fromBindings(binding.parameters));
  }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.ResolvedMemberImpl

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.