IHoverService¶
-
public interface
IHoverService
<P extends IParseUnit, A extends IAnalyzeUnit>¶ Interface for getting hover tooltip information.
Parameters: - <P> – Type of parse units.
- <A> – Type of analyze units.
Methods¶
available¶
-
boolean
available
(ILanguageImpl language)¶ Checks if hover tooltip information is available for given language implementation.
Parameters: - language – Language implementation to check.
Returns: True if hover tooltip information is available, false if not.
hover¶
-
Hover
hover
(int offset, P input)¶ Attempts to get hover tooltip information at
offset
in the source text, using given parsed input for resolving and tracing.Parameters: - offset – Offset in the source text.
- input – Parsed input to use for tracing.
Throws: - MetaborgException – When retrieving information fails unexpectedly.
Returns: Hover tooltip information if successful, or null if no information can be retrieved.
hover¶
-
Hover
hover
(int offset, A input)¶ Attempts to get hover tooltip information at
offset
in the source text, using given analyzed input for resolving and tracing.Parameters: - offset – Offset in the source text.
- input – Analyzed input to use for tracing.
Throws: - MetaborgException – When retrieving information fails unexpectedly.
Returns: Hover tooltip information if successful, or null if no information can be retrieved.