Package com._1c.g5.v8.dt.bsl.qw.utils
Class BslQueryWizardUtils.QueryTextInfo
java.lang.Object
com._1c.g5.v8.dt.bsl.qw.utils.BslQueryWizardUtils.QueryTextInfo
- Enclosing class:
- BslQueryWizardUtils
Class contains information about query text openning in query editor and query wizard
-
Constructor Summary
ConstructorsConstructorDescriptionQueryTextInfo(String text, int offset, int endOffset) ConstructorQueryTextInfo(String text, int offset, int endOffset, Collection<String> comments) Constructor -
Method Summary
Modifier and TypeMethodDescriptionGets collection of strings contains text of the comment betweenStringLiterallinesintGets end offset of theStringLiteralcorrespongint to the query textintGets offset of theStringLiteralcorrespongint to the query textgetText()Gets text of the query openning in query editor or in query wizard
-
Constructor Details
-
QueryTextInfo
Constructor- Parameters:
text- actual query text, cannot benulloffset- ofStringLiteralcorresponding to the query text offset in the bsl moduleendOffset- end offset ofStringLiteralcorresponding to the query text offset in the bsl module
-
QueryTextInfo
Constructor- Parameters:
text- actual query text, cannot benulloffset- ofStringLiteralcorresponding to the query text offset in the bsl moduleendOffset- end offset ofStringLiteralcorresponding to the query text offset in the bsl modulecomments- collection of the string contains text of the comment betweenStringLiterallines, cannot benull
-
-
Method Details
-
getText
Gets text of the query openning in query editor or in query wizard- Returns:
- text of the query, never
null
-
getComments
Gets collection of strings contains text of the comment betweenStringLiterallines- Returns:
- collection of strings contains text of the comment between
StringLiterallines, nevernull
-
getOffset
public int getOffset()Gets offset of theStringLiteralcorrespongint to the query text- Returns:
- offset of the
StringLiteralcorrespongint to the query text
-
getEndOffset
public int getEndOffset()Gets end offset of theStringLiteralcorrespongint to the query text- Returns:
- end offset of the
StringLiteralcorrespongint to the query text
-