ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.util.JpFilter");

(.lara)
import lara.util.JpFilter;

JpFilter

Constructor

JpFilter

new JpFilter(rules)

Filters join points according to the given rules.

Parameters

rules: any - Object where each key represents the name of a join point attribute, and the value the pattern that we will use to match against the attribute. The pattern can be a string (exact match), a regex or a function that receives the attribute and returns a boolean.

Instance Members

filter

filter($jps)

Filters an array of join points.

Parameters

$jps: any

Returns

any - an array of the join points that pass the filter