Package org.aspectj.weaver

Examples of org.aspectj.weaver.ResolvedType$Missing


 
  public static Shadow makeFieldGetShadow(World inWorld, Field forField, java.lang.reflect.Member inMember, MatchingContext withContext) {
    Shadow enclosingShadow = makeExecutionShadow(inWorld,inMember,withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(inMember, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.FieldGet;
    return new ReflectionShadow(inWorld,kind,signature,enclosingShadow,enclosingType,enclosingMember,withContext);
  }
View Full Code Here


  public static Shadow makeFieldSetShadow(World inWorld, Field forField, Class callerType, MatchingContext withContext) {
    Shadow enclosingShadow = makeStaticInitializationShadow(inWorld, callerType, withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createStaticInitMember(callerType, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.FieldSet;
    return new ReflectionShadow(inWorld,kind,signature,enclosingShadow,enclosingType,enclosingMember,withContext);
  }
View Full Code Here

  public static Shadow makeFieldSetShadow(World inWorld, Field forField, java.lang.reflect.Member inMember, MatchingContext withContext) {
    Shadow enclosingShadow = makeExecutionShadow(inWorld,inMember,withContext);
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedField(forField, inWorld);
    ResolvedMember enclosingMember = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(inMember, inWorld);
    ResolvedType enclosingType = enclosingMember.getDeclaringType().resolve(inWorld);
    Kind kind = Shadow.FieldSet;
    return new ReflectionShadow(inWorld,kind,signature,enclosingShadow,enclosingType,enclosingMember,withContext);
  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.aspectj.weaver.Shadow#getKindedAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getKindedAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (annotationVar.get(annType) == null) {
      Var v = ReflectionVar.createAtAnnotationVar(annType,this.annotationFinder);
      annotationVar.put(annType,v);
    }
    return (Var) annotationVar.get(annType);
View Full Code Here

  /* (non-Javadoc)
   * @see org.aspectj.weaver.Shadow#getWithinAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getWithinAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (withinAnnotationVar.get(annType) == null) {
      Var v = ReflectionVar.createWithinAnnotationVar(annType,this.annotationFinder);
      withinAnnotationVar.put(annType,v);
    }
    return (Var) withinAnnotationVar.get(annType);
View Full Code Here

  /* (non-Javadoc)
   * @see org.aspectj.weaver.Shadow#getWithinCodeAnnotationVar(org.aspectj.weaver.UnresolvedType)
   */
  public Var getWithinCodeAnnotationVar(UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (withinCodeAnnotationVar.get(annType) == null) {
      Var v = ReflectionVar.createWithinCodeAnnotationVar(annType,this.annotationFinder);
      withinCodeAnnotationVar.put(annType,v);
    }
    return (Var) withinCodeAnnotationVar.get(annType);
View Full Code Here

  /* (non-Javadoc)
   * @see org.aspectj.weaver.Shadow#getArgAnnotationVar(int, org.aspectj.weaver.UnresolvedType)
   */
  public Var getArgAnnotationVar(int i, UnresolvedType forAnnotationType) {
    ResolvedType annType = forAnnotationType.resolve(world);
    if (atArgsVars.get(annType) == null) {
      Var[] vars = new Var[getArgCount()];
      atArgsVars.put(annType,vars);
    }
    Var[] vars = (Var[]) atArgsVars.get(annType);
View Full Code Here

  }

  @Override
  public boolean hasAnnotation(UnresolvedType ofType) {
    ResolvedType[] myAnns = getAnnotationTypes();
    ResolvedType toLookFor = ofType.resolve(getWorld());
    for (int i = 0; i < myAnns.length; i++) {
      if (myAnns[i] == toLookFor) {
        return true;
      }
    }
View Full Code Here

  /**
   * Returns the generic type, regardless of the resolvedType we 'know about'
   */
  public ResolvedType getGenericResolvedType() {
    ResolvedType rt = getResolvedTypeX();
    if (rt.isParameterizedType() || rt.isRawType()) {
      return rt.getGenericType();
    }
    return rt;
  }
View Full Code Here

  private AnnotationFinder annotationFinder;

  public static Shadow makeExecutionShadow(World inWorld, java.lang.reflect.Member forMethod, MatchingContext withContext) {
    Kind kind = (forMethod instanceof Method) ? Shadow.MethodExecution : Shadow.ConstructorExecution;
    Member signature = ReflectionBasedReferenceTypeDelegateFactory.createResolvedMember(forMethod, inWorld);
    ResolvedType enclosingType = signature.getDeclaringType().resolve(inWorld);
    return new StandardShadow(inWorld, kind, signature, null, enclosingType, null, withContext);
  }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.ResolvedType$Missing

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.