Top Inners Fields Constructors Methods
com.mchange.v2.util

public final Class PatternReplacementMap

extends Object
Class Inheritance
Imports
java.util.*, java.util.regex.*, com.mchange.v1.util.WrapperIterator

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
pack-priv List<E>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
addMapping(Pattern pattern, String replacement)

public synchronized String

Returns:

null if there was no match, designated replacement otherwise.
attemptReplace
(String testString)

public synchronized Iterator<E>
public synchronized void
public synchronized int
size()

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

mappingsback to summary
pack-priv List<E> mappings

Constructor Detail

PatternReplacementMapback to summary
public PatternReplacementMap()

Method Detail

addMappingback to summary
public synchronized void addMapping(Pattern pattern, String replacement)
attemptReplaceback to summary
public synchronized String attemptReplace(String testString)
Returns:String

null if there was no match, designated replacement otherwise.

patternsback to summary
public synchronized Iterator<E> patterns()
removeMappingback to summary
public synchronized void removeMapping(Pattern pattern)
sizeback to summary
public synchronized int size()
com.mchange.v2.util back to summary

private final Class PatternReplacementMap.Mapping

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
pack-priv Pattern
pack-priv String

Constructor Summary

AccessConstructor and Description
public
Mapping(Pattern pattern, String replacement)

Method Summary

Modifier and TypeMethod and Description
public Pattern
public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

patternback to summary
pack-priv Pattern pattern
replacementback to summary
pack-priv String replacement

Constructor Detail

Mappingback to summary
public Mapping(Pattern pattern, String replacement)

Method Detail

getPatternback to summary
public Pattern getPattern()
getReplacementback to summary
public String getReplacement()