org.crsh.lang.impl.groovy
Class GroovyLineEscaper

java.lang.Object
  extended by org.crsh.cli.impl.line.LineParser.Visitor
      extended by org.crsh.lang.impl.groovy.GroovyLineEscaper

 class GroovyLineEscaper
extends LineParser.Visitor

Escape CRLF to '\\' + 'n' inside quotes.

Author:
Julien Viet

Field Summary
(package private)  StringBuilder buffer
          .
 
Constructor Summary
GroovyLineEscaper()
           
 
Method Summary
 void closeStrongQuote(int index)
           
 void closeWeakQuote(int index)
           
 void onChar(int index, Quoting quoting, boolean backslash, char c)
           
 void openStrongQuote(int index)
           
 void openWeakQuote(int index)
           
 
Methods inherited from class org.crsh.cli.impl.line.LineParser.Visitor
reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

final StringBuilder buffer
.

Constructor Detail

GroovyLineEscaper

GroovyLineEscaper()
Method Detail

onChar

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

openStrongQuote

public void openStrongQuote(int index)
Overrides:
openStrongQuote in class LineParser.Visitor

closeStrongQuote

public void closeStrongQuote(int index)
Overrides:
closeStrongQuote in class LineParser.Visitor

openWeakQuote

public void openWeakQuote(int index)
Overrides:
openWeakQuote in class LineParser.Visitor

closeWeakQuote

public void closeWeakQuote(int index)
Overrides:
closeWeakQuote in class LineParser.Visitor


Copyright © 2015 eXo Platform SAS. All Rights Reserved.