DelegateFilter

ammonite.terminal.DelegateFilter
abstract class DelegateFilter(implicit val enclosing: Enclosing) extends Filter

A filter as an abstract class, letting you provide a filter instead of an op, automatically providing a good .toString for debugging, and providing a reasonable "place" inside the inheriting class/object to put state or helpers or other logic associated with the filter.

Attributes

Graph
Supertypes
trait Filter
class Object
trait Matchable
class Any
Known subtypes

Members list

Concise view

Value members

Abstract methods

Concrete methods

def identifier: String

the .toString of this object, except by making it separate we force the implementer to provide something and stop them from accidentally leaving it as the meaningless default.

the .toString of this object, except by making it separate we force the implementer to provide something and stop them from accidentally leaving it as the meaningless default.

Attributes

def op(ti: TermInfo): Option[TermAction]

Inherited methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Filter -> Any
Inherited from:
Filter

Implicits

Implicits

implicit val enclosing: Enclosing