org.crsh.cli.impl.tokenizer
Class Automaton

java.lang.Object
  extended by org.crsh.cli.impl.line.LineParser.Visitor
      extended by org.crsh.cli.impl.tokenizer.Automaton

 class Automaton
extends LineParser.Visitor

Author:
Julien Viet

Nested Class Summary
(package private) static class Automaton.Status
           
 
Field Summary
private  StringBuilder buffer
          .
private  int from
          .
private  int lastWhitespace
          .
private  CharSequence s
          .
private  Automaton.Status status
          .
(package private)  LinkedList<Token> tokens
          .
 
Constructor Summary
Automaton(CharSequence s)
           
 
Method Summary
(package private)  void close()
           
private  void next(int current)
           
 void onChar(int index, Quoting quoting, boolean backslash, char c)
           
 
Methods inherited from class org.crsh.cli.impl.line.LineParser.Visitor
closeStrongQuote, closeWeakQuote, openStrongQuote, openWeakQuote, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

status

private Automaton.Status status
.


buffer

private final StringBuilder buffer
.


tokens

final LinkedList<Token> tokens
.


from

private int from
.


lastWhitespace

private int lastWhitespace
.


s

private final CharSequence s
.

Constructor Detail

Automaton

Automaton(CharSequence s)
Method Detail

close

void close()

next

private void next(int current)

onChar

public void onChar(int index,
                   Quoting quoting,
                   boolean backslash,
                   char c)
Overrides:
onChar in class LineParser.Visitor


Copyright © 2015 eXo Platform SAS. All Rights Reserved.