Packages

final class AliasProcessor extends LinePreProcessor

A LinePreProcessor for aliases.

If the first argument of an input line is the name of an alias, it replaces that argument with the alias's expansion.

Linear Supertypes
LinePreProcessor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AliasProcessor
  2. LinePreProcessor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(parsedLine: ImmutableSeq[String], lineParser: (String) ⇒ ImmutableSeq[String]): ImmutableSeq[String]

    Pre-processes a line before it is used by a Shell by taking a tokenized input line, and returning a (possibly) modified tokenized line.

    Pre-processes a line before it is used by a Shell by taking a tokenized input line, and returning a (possibly) modified tokenized line. (In this context, 'tokenized input line' just means a line which has already been broken up into arguments.)

    For example, this could be used to implement aliasing for commands, whereby the first tokenized string of the line may be replaced by one or more strings.

    lineParser can be used to tokenize replacement or additional text, if needed.

    parsedLine

    the input line which is already parsed into tokens

    lineParser

    a function to parse a string into tokens (if needed)

    returns

    a possibly modified line, as parsed tokens

    Definition Classes
    AliasProcessorLinePreProcessor
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from LinePreProcessor

Inherited from AnyRef

Inherited from Any

Ungrouped