ANTAREX API

Clava API

LARA API

LARA Common Language API

(.js)
laraImport("lara.pass.results.AggregatePassResult");

(.lara)
import lara.pass.results.AggregatePassResult;

AggregatePassResult

Constructor

AggregatePassResult

new AggregatePassResult()

Instance Members

appliedPass

appliedPass()

Returns

boolean - True if the pass was applied successfully at least once

casesApplied

casesApplied()

Returns

number - Number of cases where this pass was successfully applied

casesFailed

casesFailed()

Returns

number - Number of cases that resulted in an error

casesFound

casesFound()

Returns

number - Total number of cases where this pass applied, independently of its success

constructor

constructor(pass, $jp)

Parameters

pass: Pass - Pass which generated this result
$jp: JoinPoint - Join point related to this pass result

errors

errors()

Returns

PassTransformationError[] - List of errors registered during the pass

pushError

pushError(error)

Register a new error

Parameters

error: PassTransformationError

pushResult

pushResult(result)

Register a new partial result

Parameters

result: PassResult - PassResult from applying a predicate to a joinpoint

results

results()

Returns

PassResult[] - List of results registered during the pass

toString

toString()