ResolvedType type = (ResolvedType) i.getType(); if (type instanceof ReferenceType) { ReferenceTypeDelegate delegate = ((ReferenceType) type).getDelegate(); if (delegate instanceof ReflectionBasedReferenceTypeDelegate) { try {
private boolean aspectIsBroken() { if (concreteAspect instanceof ReferenceType) { ReferenceTypeDelegate rtDelegate = ((ReferenceType) concreteAspect).getDelegate(); if (!(rtDelegate instanceof BcelObjectType)) { return true; } } return false; }
@Override public boolean hasAnnotations() { return getDelegate().hasAnnotations(); }
@Override public boolean isAspect() { return getDelegate().isAspect(); }
@Override public AnnotationTargetKind[] getAnnotationTargetKinds() { return getDelegate().getAnnotationTargetKinds(); }
@Override public boolean isExposedToWeaver() { return (getDelegate() == null) || delegate.isExposedToWeaver(); }
@Override public Collection<ResolvedMember> getPrivilegedAccesses() { return getDelegate().getPrivilegedAccesses(); }
private static String getSourceFileName(ResolvedType aspect) { String sourceFileName = null; if (aspect instanceof ReferenceType) { String s = ((ReferenceType) aspect).getDelegate().getSourcefilename(); int i = s.lastIndexOf('/'); if (i != -1) { sourceFileName = s.substring(i + 1); } else { sourceFileName = s; } } return sourceFileName; }
@Override public boolean isAnnotation() { return getDelegate().isAnnotation(); }
@Override public boolean isNested() { return getDelegate().isNested(); }
@Override public boolean isAnnotationWithRuntimeRetention() { return getDelegate().isAnnotationWithRuntimeRetention(); }
public String getGenericSignature() { String sig = getDelegate().getDeclaredGenericSignature(); return (sig == null) ? "" : sig; }
@Override public AnnotationAJ[] getAnnotations() { return getDelegate().getAnnotations(); }
@Override public Collection<ConcreteTypeMunger> getTypeMungers() { return getDelegate().getTypeMungers(); }
@Override public boolean isAnnotationStyleAspect() { return getDelegate().isAnnotationStyleAspect(); }
@Override public int getModifiers() { return getDelegate().getModifiers(); }
@Override public TypeVariable[] getTypeVariables() { if (typeVariables == null) { typeVariables = getDelegate().getTypeVariables(); for (int i = 0; i < this.typeVariables.length; i++) { typeVariables[i].resolve(world); } } return typeVariables; }
@Override public boolean isGenericType() { return !isParameterizedType() && !isRawType() && getDelegate().isGeneric(); }
@Override public ISourceLocation getSourceLocation() { ISourceContext isc = getDelegate().getSourceContext(); return isc.makeSourceLocation(new Position(startPos, endPos)); }
@Override public PerClause getPerClause() { PerClause pclause = getDelegate().getPerClause(); if (pclause != null && isParameterizedType()) { // could cache the // result here... Map<String, UnresolvedType> parameterizationMap = getAjMemberParameterizationMap(); pclause = (PerClause) pclause.parameterizeWith(parameterizationMap, world); } return pclause; }