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 betweenStringLiteral
linesint
getEndOffset()
Gets end offset of theStringLiteral
correspongint to the query textint
getOffset()
Gets offset of theStringLiteral
correspongint to the query textString
getText()
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 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
public QueryTextInfo(String text, int offset, int endOffset, Collection<String> comments)
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 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 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
-
-