public interface TokenOrientedView
Currently, this interface is only useful for obtaining token lists for "physical lines" (i.e., a word-wrapped view's logical lines may be represented as several physical lines, thus getting the "physical line" above a given position may prove complicated).
限定符和类型 | 方法和说明 |
---|---|
Token |
getTokenListForPhysicalLineAbove(int offset)
Returns a token list for the physical line above the physical
line containing the specified offset into the document.
|
Token |
getTokenListForPhysicalLineBelow(int offset)
Returns a token list for the physical line below the physical
line containing the specified offset into the document.
|
Token getTokenListForPhysicalLineAbove(int offset)
offset
, since lines
are not wrapped. For a wrapped view, this may or may not be tokens from
the same line.offset
- The offset in question.offset
, null
is returned.Token getTokenListForPhysicalLineBelow(int offset)
offset
, since lines
are not wrapped. For a wrapped view, this may or may not be tokens from
the same line.offset
- The offset in question.offset
, null
is returned.