Package org.aspectj.weaver

Examples of org.aspectj.weaver.BCException


   * first sorts the mungers, then gens the initializers in the right order
   */
  private InstructionList genInitInstructions(List<ConcreteTypeMunger> list, boolean isStatic) {
    list = PartialOrder.sort(list);
    if (list == null) {
      throw new BCException("circularity in inter-types");
    }

    InstructionList ret = new InstructionList();

    for (ConcreteTypeMunger cmunger : list) {
View Full Code Here


    } catch (UnsupportedOperationException ex) {
      throw ex;
    } catch (Throwable t) {
      // FIXME asc remove this catch after more testing has confirmed the
      // above stuff is OK
      throw new BCException("Unexpectedly went bang when searching for annotations on " + rm, t);
    }
  }
View Full Code Here

    else if (onType instanceof ParameterizedTypeBinding) {
      ReferenceBinding rb = ((ParameterizedTypeBinding) onType).type;
      if (rb instanceof SourceTypeBinding)
        return (SourceTypeBinding) rb;
      else
        throw new BCException("In parameterized type " + onType + ", can't handle reference binding " + rb);
    } else if (onType instanceof ProblemReferenceBinding) {
      return null;
    } else if (onType instanceof TypeVariableBinding) {
      // Problem will have already been reported, cant ITD on a type variable.
      return null;
    }

    throw new BCException("can't handle: " + onType);
  }
View Full Code Here

    return il;
  }

  public void visit(Literal literal) {
    if (literal == Literal.FALSE) {
      throw new BCException("visiting a false expression");
    }
  }
View Full Code Here

      UnresolvedType annoType = btp.getAnnotationType();
      // TODO 2 need to sort out appropriate creation of the AnnotationAccessFieldVar - what happens for
      // reflective (ReflectionShadow) access to types?
      Var var = shadow.getKindedAnnotationVar(annoType);
      if (var == null) {
        throw new BCException("Unexpected problem locating annotation at join point '" + shadow + "'");
      }
      state.set(btp.getFormalIndex(), var.getAccessorForValue(formalType));
    } else if (annotationTypePattern instanceof BindingAnnotationTypePattern) {
      BindingAnnotationTypePattern btp = (BindingAnnotationTypePattern) annotationTypePattern;
      UnresolvedType annotationType = btp.getAnnotationType();
View Full Code Here

  // TODO these are currently unimplemented as I believe it resolves to a Binding form *always* and so they don't get
  // called

  @Override
  public FuzzyBoolean fastMatches(AnnotatedElement annotated) {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public UnresolvedType getAnnotationType() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public Map getAnnotationValues() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public ResolvedType getResolvedAnnotationType() {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public FuzzyBoolean matches(AnnotatedElement annotated, ResolvedType[] parameterAnnotations) {
    throw new BCException("unimplemented");
  }
View Full Code Here

TOP

Related Classes of org.aspectj.weaver.BCException

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.