ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.pass.SimplePass");

(.lara)
import lara.pass.SimplePass;

SimplePass

Constructor

SimplePass

new SimplePass()

Instance Members

_apply_impl

_apply_impl($jp)

Apply tranformation to

Parameters

$jp: JoinPoint - Joint point on which the pass will be applied

Returns

AggregatePassResult - Results of applying this pass to the given joint point

_selectedJps

_selectedJps($jp)

Selects the join points and its descendants, if needed, according to the traversalType

Parameters

$jp: JoinPoint - The point in the code from which to select

Returns

JoinPoint[] - Array of join points selected

constructor

constructor(includeDescendants)

Parameters

includeDescendants: boolean - Apply pass to the join point's descendents

matchJoinpoint

matchJoinpoint($jp)

Predicate that informs the pass whether a certain joinpoint should be transformed

Parameters

$jp: JoinPoint - Join point to match

Returns

boolean - Returns true if the joint point matches the predicate for this pass

transformJoinpoint

transformJoinpoint($jp)

Transformation to be applied to matching joinpoints

Parameters

$jp: JoinPoint - Join point to transform

Returns

PassTransformationResult - The result of the transformation

traversalType

traversalType()

Order in which the join point's descendants should be visited