Class ClassNameExtractor

  • All Implemented Interfaces:
    ContextExtractor

    public class ClassNameExtractor
    extends java.lang.Object
    implements ContextExtractor
    Context extractor to be used in the FROM clause of a query. If last character is not a space gets back up to the first space.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getPrefix​(ITextViewer source, int currentPosition)
      If the last character is a space it returns an empty String If not it returns the last substring up to a space
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassNameExtractor

        public ClassNameExtractor()
    • Method Detail

      • getPrefix

        public java.lang.String getPrefix​(ITextViewer source,
                                          int currentPosition)
        If the last character is a space it returns an empty String If not it returns the last substring up to a space
        Specified by:
        getPrefix in interface ContextExtractor
        Returns:
        what has been typed before the current position and should be used to filter the content assistance.