com.atlassian.plugin.webresource.transformer
Class SearchAndReplacer

java.lang.Object
  extended by com.atlassian.plugin.webresource.transformer.SearchAndReplacer

public class SearchAndReplacer
extends Object

Performs a search and replace function on a given input.

Since:
2.9.0

Method Summary
static SearchAndReplacer create(Pattern pattern, com.google.common.base.Function<Matcher,CharSequence> replacer)
           
 CharSequence replaceAll(CharSequence input)
          Replace all occurrences of the pattern in the input, using the given function
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static SearchAndReplacer create(Pattern pattern,
                                       com.google.common.base.Function<Matcher,CharSequence> replacer)

replaceAll

public CharSequence replaceAll(CharSequence input)
Replace all occurrences of the pattern in the input, using the given function



Copyright © 2013 Atlassian. All Rights Reserved.