Class AEscaper
- java.lang.Object
-
- com.g2forge.alexandria.java.text.escape.AEscaper
-
- All Implemented Interfaces:
IEscaper
- Direct Known Subclasses:
SequenceEscaper
,SingleCharacterEscaper
public abstract class AEscaper extends Object implements IEscaper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AEscaper.Change
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract AEscaper.Change
computeEscape(String string, int index)
void
computeEscape(String string, IConsumer1<? super TextUpdate<?>> consumer)
protected abstract Pattern
computeRequiresEscapePattern()
protected abstract AEscaper.Change
computeUnescape(String string, int index)
void
computeUnescape(String string, IConsumer1<? super TextUpdate<?>> consumer)
protected String
getPostfix()
protected String
getPrefix()
Pattern
getRequiresEscapePattern()
-
-
-
Method Detail
-
computeEscape
public void computeEscape(String string, IConsumer1<? super TextUpdate<?>> consumer)
- Specified by:
computeEscape
in interfaceIEscaper
-
computeEscape
protected abstract AEscaper.Change computeEscape(String string, int index)
-
computeRequiresEscapePattern
protected abstract Pattern computeRequiresEscapePattern()
-
computeUnescape
public void computeUnescape(String string, IConsumer1<? super TextUpdate<?>> consumer)
- Specified by:
computeUnescape
in interfaceIEscaper
-
computeUnescape
protected abstract AEscaper.Change computeUnescape(String string, int index)
-
getPrefix
protected String getPrefix()
-
getPostfix
protected String getPostfix()
-
getRequiresEscapePattern
public Pattern getRequiresEscapePattern()
- Specified by:
getRequiresEscapePattern
in interfaceIEscaper
-
-