List of usage examples for org.aspectj.weaver.patterns IScope message
void message(IMessage.Kind kind, IHasPosition location, String message);
From source file:org.caesarj.compiler.aspectj.CaesarSuperPointcut.java
License:Open Source License
/** * Resolve the bindings. If we are in a caesar scope, we try to * resolve the pointcut in the super type. Otherwise, we just use * the regular resolving.//from ww w . j av a 2 s.c o m */ public void resolveBindings(IScope scope, Bindings bindings) { if (scope instanceof CaesarScope) { onType = ((CaesarScope) scope).getSuperRegisterType(); } try { super.resolveBindings(scope, bindings); } catch (Exception e) { onType = null; scope.message(IMessage.ERROR, this, "Can't find referenced pointcut"); return; } }