Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-dev] if-pointcuts and binding

 
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi again.

I am somewhat confused on what kind of expressions are allowed in an
if-pintcut and what are not wrt. binding: The online help states...

if(BooleanExpression)
Picks out each join point where the boolean expression evaluates to
true. The boolean expression used can only access static members,
variables exposed by teh enclosing pointcut or advice, and
thisJoinPoint forms. In particular, it cannot call non-static methods
on the aspect. 

By reading "the enclosing advice", I actually assumed that something
like this would be a legitimate statement:

after() returning(boolean b): call(* boolean *.foo()) && if(b) {
...
}

However, AspectJ tells me "b cannot be resolved". So what is meant by
a binding through an enclosing advice, if not this here?

Thanks in advance for clarification,

Eric

- --
Eric Bodden
Chair I2 for Programming Languages and Program Analysis
RWTH Aachen University 

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0.3

iQA/AwUBQW1SnswiFCm7RlWCEQImPQCgzQtRrGnDPaS2QL5nsqjoErhGoD8An2oT
WbDXrz/ynMmOHmkfr5+JyFCm
=xXwC
-----END PGP SIGNATURE-----




Back to the top