Modifier and Type | Method and Description |
---|---|
TextRange |
InputFile.newRange(int startLine,
int startLineOffset,
int endLine,
int endLineOffset)
Returns a
TextRange in the given file. |
TextRange |
InputFile.newRange(TextPointer start,
TextPointer end)
Returns a
TextRange in the given file. |
TextRange |
InputFile.selectLine(int line)
Returns a
TextRange in the given file that select the full line. |
Modifier and Type | Method and Description |
---|---|
boolean |
TextRange.overlap(TextRange another)
Test if the current range has some common area with another range.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultTextRange |
Modifier and Type | Method and Description |
---|---|
TextRange |
DefaultInputFile.newRange(int startOffset,
int endOffset)
Create Range from global offsets.
|
TextRange |
DefaultInputFile.newRange(int startLine,
int startLineOffset,
int endLine,
int endLineOffset) |
TextRange |
DefaultInputFile.newRange(TextPointer start,
TextPointer end) |
TextRange |
DefaultInputFile.selectLine(int line) |
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultTextRange.overlap(TextRange another) |
void |
DefaultInputFile.validate(TextRange range) |
Modifier and Type | Method and Description |
---|---|
NewCpdTokens |
NewCpdTokens.addToken(TextRange range,
String image)
Call this method to register a token in a range.
|
Modifier and Type | Method and Description |
---|---|
DefaultCpdTokens |
DefaultCpdTokens.addToken(TextRange range,
String image) |
Modifier and Type | Method and Description |
---|---|
NewHighlighting |
NewHighlighting.highlight(TextRange range,
TypeOfText typeOfText)
Call this method to indicate the type of text in a range.
|
Modifier and Type | Method and Description |
---|---|
TextRange |
SyntaxHighlightingRule.range() |
Modifier and Type | Method and Description |
---|---|
static SyntaxHighlightingRule |
SyntaxHighlightingRule.create(TextRange range,
TypeOfText textType) |
DefaultHighlighting |
DefaultHighlighting.highlight(TextRange range,
TypeOfText typeOfText) |
Modifier and Type | Method and Description |
---|---|
Collection<TextRange> |
SensorContextTester.referencesForSymbolAt(String componentKey,
int line,
int lineOffset)
Return list of symbol references ranges for the symbol at a given position in a file.
|
Modifier and Type | Method and Description |
---|---|
TextRange |
IssueLocation.textRange()
Range of the issue.
|
Modifier and Type | Method and Description |
---|---|
NewIssueLocation |
NewIssueLocation.at(TextRange location)
Position in the file.
|
Modifier and Type | Method and Description |
---|---|
TextRange |
DefaultIssueLocation.textRange() |
Modifier and Type | Method and Description |
---|---|
DefaultIssueLocation |
DefaultIssueLocation.at(TextRange location) |
Modifier and Type | Method and Description |
---|---|
NewSymbol |
NewSymbol.newReference(TextRange range)
Register a new symbol.
|
NewSymbol |
NewSymbolTable.newSymbol(TextRange range)
Register a new symbol declaration.
|
Modifier and Type | Method and Description |
---|---|
Map<TextRange,Set<TextRange>> |
DefaultSymbolTable.getReferencesBySymbol() |
Map<TextRange,Set<TextRange>> |
DefaultSymbolTable.getReferencesBySymbol() |
Modifier and Type | Method and Description |
---|---|
NewSymbol |
DefaultSymbolTable.newSymbol(TextRange range) |
Copyright © 2009–2016 SonarSource. All rights reserved.