mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Added javadocs for TextRangeConsumer
This commit is contained in:
@@ -15,7 +15,18 @@ public interface PyStringLiteralExpression extends PyLiteralExpression, StringLi
|
||||
|
||||
void iterateCharacterRanges(TextRangeConsumer consumer);
|
||||
|
||||
/**
|
||||
* Iterator over decoded string characters.
|
||||
*/
|
||||
interface TextRangeConsumer {
|
||||
/**
|
||||
* Process a decoded character.
|
||||
*
|
||||
* @param startOffset start offset in the un-decoded string
|
||||
* @param endOffset end offset in the un-decoded string
|
||||
* @param value decoded character value
|
||||
* @return false in order to stop iteration
|
||||
*/
|
||||
boolean process(int startOffset, int endOffset, String value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user