KADABRA API

LARA API

LARA Common Language API

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

(.lara)
import lara.pass.Pass;

Pass

Constructor

Pass

new Pass()

Represents a Lara transformation pass.

Need to implement:
- _apply_impl($jp)


Instance Members

_apply_impl

_apply_impl($jp)

Apply tranformation to

Parameters

$jp: unknown

_new_default_result

_new_default_result()

apply

apply($jp)

Applies this pass starting at the given join point. If no join point is given, uses the root join point.

Parameters

$jp: $jp - The point in the code where the pass will be applied.

Returns

PassResult - Object containing information about the results of applying this pass to the given node

constructor

constructor(_name)

Parameters

_name: unknown

matchJoinpoint

matchJoinpoint($jp)

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

Parameters

$jp: joinpoint - Join point to match

Returns

boolean

name

name()

name

name(_name)

This function is deprecated. Automatically infered

Parameters

_name: unknown

transformJoinpoint

transformJoinpoint($jp)

Transformation to be applied to matching joinpoints

Parameters

$jp: joinpoint - Join point to transform

Returns

PassTransformationResult - The result of the transformation