scala.tools.nsc.interpreter

CompletionAware

trait CompletionAware extends AnyRef

An interface for objects which are aware of tab completion and will supply their own candidates and resolve their own paths.

Source
CompletionAware.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. CompletionAware
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def completions (verbosity: Int): List[String]

    The complete list of unqualified Strings to which this object will complete.

    The complete list of unqualified Strings to which this object will complete.

    Attributes
    abstract

Concrete Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def alternativesFor (id: String): List[String]

    A list of useful information regarding a specific uniquely identified completion.

    A list of useful information regarding a specific uniquely identified completion. This is specifically written for the following situation, but should be useful elsewhere too:

    x.y.z.methodName<tab>

    If "methodName" is among z's completions, and verbosity > 0 indicating tab has been pressed twice consecutively, then we call alternativesFor and show a list of overloaded method signatures.

  7. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  8. def clone (): AnyRef

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  9. def completionsFor (parsed: Parsed): List[String]

    Given string 'buf', return a list of all the strings to which it can complete.

    Given string 'buf', return a list of all the strings to which it can complete. This may involve delegating to other CompletionAware objects.

  10. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  11. def equals (arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def execute (id: String): Option[Any]

    What to return if this completion is given as a command.

    What to return if this completion is given as a command. It returns None by default, which means to allow the repl to interpret the line normally. Returning Some(_) means the line will never reach the scala interpreter.

  13. def executionFor (parsed: Parsed): Option[Any]

    TODO - unify this and completionsFor under a common traverser.

  14. def filterNotFunction (s: String): Boolean

    Default filter to apply to completions.

  15. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def follow (id: String): Option[CompletionAware]

    The next completor in the chain.

  17. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  18. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  19. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  20. def mapFunction (s: String): String

    Default map.

  21. def ne (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  24. def sortFunction (s1: String, s2: String): Boolean

    Default sort.

  25. def synchronized [T0] (arg0: ⇒ T0): T0

    Attributes
    final
    Definition Classes
    AnyRef
  26. def toString (): String

    Definition Classes
    AnyRef → Any
  27. def wait (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. def wait (arg0: Long, arg1: Int): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. def wait (arg0: Long): Unit

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any