public class TokenReplacement extends AbstractReplacement
from, to
Constructor and Description |
---|
TokenReplacement(String from,
String to) |
Modifier and Type | Method and Description |
---|---|
String |
apply(String in)
applies this replacement to the given string.
|
apply, create, create
public String apply(String in)
TokenReplacement
implementation first tokenizes the given
string and then checks each token whether it matches either the from
string or the from string + '#' + a fragment. If so, the the replacement
is applied. Everything else is passed in unchanged.apply
in class AbstractReplacement
Copyright © 2017 TextGrid. All rights reserved.