|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TokenOrientedView
An interface for the syntax-highlighting token oriented views for token-oriented methods. This way callers won't need to know what specific class a view is an instance of to access its tokens.
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).
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |