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 Details

    • QueryTextInfo

      public QueryTextInfo(String text, int offset, int endOffset)
      Constructor
      Parameters:
      text - actual query text, cannot be null
      offset - of StringLiteral corresponding to the query text offset in the bsl module
      endOffset - end offset of StringLiteral 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 be null
      offset - of StringLiteral corresponding to the query text offset in the bsl module
      endOffset - end offset of StringLiteral corresponding to the query text offset in the bsl module
      comments - collection of the string contains text of the comment between StringLiteral lines, cannot be null
  • Method Details

    • 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 between StringLiteral lines
      Returns:
      collection of strings contains text of the comment between StringLiteral lines, never null
    • getOffset

      public int getOffset()
      Gets offset of the StringLiteral correspongint to the query text
      Returns:
      offset of the StringLiteral correspongint to the query text
    • getEndOffset

      public int getEndOffset()
      Gets end offset of the StringLiteral correspongint to the query text
      Returns:
      end offset of the StringLiteral correspongint to the query text