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
public static class BslQueryWizardUtils.QueryTextInfo extends Object
Class contains information about query text openning in query editor and query wizard
-
-
Constructor Summary
Constructors Constructor Description QueryTextInfo(String text, int offset, int endOffset)ConstructorQueryTextInfo(String text, int offset, int endOffset, Collection<String> comments)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getComments()Gets collection of strings contains text of the comment betweenStringLiterallinesintgetEndOffset()Gets end offset of theStringLiteralcorrespongint to the query textintgetOffset()Gets offset of theStringLiteralcorrespongint to the query textStringgetText()Gets text of the query openning in query editor or in query wizard
-
-
-
Constructor Detail
-
QueryTextInfo
public QueryTextInfo(String text, int offset, int endOffset)
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
public QueryTextInfo(String text, int offset, int endOffset, Collection<String> comments)
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 Detail
-
getText
public String getText()
Gets text of the query openning in query editor or in query wizard- Returns:
- text of the query, never
null
-
getComments
public Collection<String> 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
-
-