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.
- Alphabetic
- By Inheritance
- AliasProcessor
- LinePreProcessor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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
- AliasProcessor → LinePreProcessor
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )