sealed
trait
Completion extends AnyRef
Abstract Value Members
-
abstract
def
append: String
-
abstract
def
display: String
-
abstract
def
isEmpty: Boolean
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
final
def
equals(o: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): java.lang.Class[_]
-
final
lazy val
hashCode: Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
Inherited from AnyRef
Inherited from Any
Represents a completion. The abstract members
display
andappend
are best explained with an example.Assuming space-delimited tokens, processing this: am is are w<TAB> could produce these Completions: Completion { display = "was"; append = "as" } Completion { display = "were"; append = "ere" } to suggest the tokens "was" and "were".
In this way, two pieces of information are preserved: 1) what needs to be appended to the current input if a completion is selected 2) the full token being completed, which is useful for presenting a user with choices to select