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 betweenStringLiteral
linesint
Gets end offset of theStringLiteral
correspongint to the query textint
Gets offset of theStringLiteral
correspongint 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 benull
offset
- ofStringLiteral
corresponding to the query text offset in the bsl moduleendOffset
- end offset ofStringLiteral
corresponding to the query text offset in the bsl module
-
QueryTextInfo
Constructor- Parameters:
text
- actual query text, cannot benull
offset
- ofStringLiteral
corresponding to the query text offset in the bsl moduleendOffset
- end offset ofStringLiteral
corresponding to the query text offset in the bsl modulecomments
- collection of the string contains text of the comment betweenStringLiteral
lines, 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 betweenStringLiteral
lines- Returns:
- collection of strings contains text of the comment between
StringLiteral
lines, nevernull
-
getOffset
public int getOffset()Gets offset of theStringLiteral
correspongint to the query text- Returns:
- offset of the
StringLiteral
correspongint to the query text
-
getEndOffset
public int getEndOffset()Gets end offset of theStringLiteral
correspongint to the query text- Returns:
- end offset of the
StringLiteral
correspongint to the query text
-