Package org.aspectj.weaver

Examples of org.aspectj.weaver.BCException


    throw new BCException("unimplemented");
  }

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


    throw new BCException("unimplemented");
  }

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

    throw new BCException("unimplemented");
  }

  @Override
  public AnnotationTypePattern parameterizeWith(Map typeVariableMap, World w) {
    throw new BCException("unimplemented");
  }
View Full Code Here

    throw new BCException("unimplemented");
  }

  @Override
  public void resolve(World world) {
    throw new BCException("unimplemented");
  }
View Full Code Here

    case ELLIPSIS_KEY:
      return ELLIPSIS;
    case ANY_KEY:
      return ANY;
    }
    throw new BCException("unknown TypePattern kind: " + key);
  }
View Full Code Here

  public static AnnotationTypePattern read(VersionedDataInputStream s, ISourceContext context) throws IOException {
    WildAnnotationTypePattern ret;
    byte version = s.readByte();
    if (version > VERSION) {
      throw new BCException("ExactAnnotationTypePattern was written by a newer version of AspectJ");
    }
    TypePattern t = TypePattern.read(s, context);
    ret = new WildAnnotationTypePattern(t);
    ret.readLocation(context, s);
    if (s.getMajorVersion() >= WeaverVersionInfo.WEAVER_VERSION_MAJOR_AJ160) {
View Full Code Here

        return gen;
      }
    }

    if (!allowMissing) {
      throw new BCException("Class " + this.getName() + " does not have a method " + name + " with signature " + signature);
    }

    return null;
  }
View Full Code Here

        try {
          ClassFileReader reader = new ClassFileReader(thisTime.getBytes(), null);
          this.resolvedTypeStructuresFromLastBuild.put(thisTime.getClassName(), new CompactTypeStructureRepresentation(
              reader));
        } catch (ClassFormatException cfe) {
          throw new BCException("Unexpected problem processing class", cfe);
        }
      }
      return;
    }

    CompactTypeStructureRepresentation existingStructure = this.resolvedTypeStructuresFromLastBuild
        .get(thisTime.getClassName());
    ResolvedType newResolvedType = world.resolve(thisTime.getClassName());
    if (!newResolvedType.isMissing()) {
      try {
        ClassFileReader reader = new ClassFileReader(thisTime.getBytes(), null);
        this.resolvedTypeStructuresFromLastBuild.put(thisTime.getClassName(),
            new CompactTypeStructureRepresentation(reader));
      } catch (ClassFormatException cfe) {
        throw new BCException("Unexpected problem processing class", cfe);
      }
    }

    if (lastTime == null) {
      recordTypeChanged(thisTime.getClassName());
View Full Code Here

        }
        WildcardBinding wb = lookupEnvironment.createWildcard(baseTypeForParameterizedType,
            indexOfTypeParameterBeingConverted, bound, otherBounds, boundkind);
        return wb;
      } else {
        throw new BCException("This type " + typeX + " (class " + typeX.getClass().getName()
            + ") should not be claiming to be a wildcard!");
      }
    } else {
      return lookupBinding(typeX.getName());
    }
View Full Code Here

          // is bindings for the arguments
          residueSource.findResidue(shadow, myState);

          UnresolvedType[] pTypes = (testMethod == null ? null : testMethod.getParameterTypes());
          if (pTypes != null && baseArgsCount > pTypes.length) { // pr155347
            throw new BCException("Unexpected problem with testMethod " + testMethod + ": expecting " + baseArgsCount
                + " arguments");
          }
          // pr118149
          // It is possible for vars in myState (which would normally be set
          // in the call to residueSource.findResidue) to not be set (be null)
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.