Bug 419031 - Support static imports of pointcuts
Summary: Support static imports of pointcuts
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.7.4   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-09 09:44 EDT by Matthew Adams CLA
Modified: 2013-10-09 09:44 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Adams CLA 2013-10-09 09:44:21 EDT
Support the ability to statically import a pointcut.

package app.util;

public final aspect Bool {
  public static final pointcut true_(): within(*);
  public static final pointcut false_(): !true_();
}

=====
package app.scratch;

import static app.util.Bool.true_;

public aspect Test {
  public pointcut warn(): true_();
}