public class StandardStatementRanges extends Object implements StatementRanges, Serializable
StatementRanges
.Constructor and Description |
---|
StandardStatementRanges(List<Integer> starts,
List<Integer> ends) |
Modifier and Type | Method and Description |
---|---|
static StatementRanges |
combine(List<StatementRanges> statementRangesList)
Combines multiple StatementRanges into a single StatementRanges by assuming
that the offsets inside each subsequent StatementRanges instance begin
after the ending offset of the previous instance.
|
int |
end(int i)
The end of the ith statement.
|
int |
numStatements()
The number of statements in the associated JavaScript.
|
int |
start(int i)
The start of the ith statement.
|
public static StatementRanges combine(List<StatementRanges> statementRangesList)
public int end(int i)
StatementRanges
end
in interface StatementRanges
public int numStatements()
StatementRanges
numStatements
in interface StatementRanges
public int start(int i)
StatementRanges
start
in interface StatementRanges
Copyright © 2016. All rights reserved.