APIdia Launch Partner
Top Description Fields Constructors Methods
jdk.javadoc.internal.doclets.formats.html.taglets.snippet

public final Class Replace

extends Object
implements Action
Class Inheritance
All Implemented Interfaces
jdk.javadoc.internal.doclets.formats.html.taglets.snippet.Action
Imports
java.util.ArrayList, .Set, java.util.regex.Matcher, .Pattern

An action that replaces characters in text.

Field Summary

Modifier and TypeField and Description
private final Pattern
private final String
private final StyledText

Constructor Summary

AccessConstructor and Description
public
Replace(String
the replacement string
replacement
,
Pattern
the regex used to search the text
pattern
,
StyledText
the text
text
)

Constructs an action that replaces regex finds in text.

Method Summary

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

Field Detail

patternback to summary
private final Pattern pattern
replacementback to summary
private final String replacement
textback to summary
private final StyledText text

Constructor Detail

Replaceback to summary
public Replace(String replacement, Pattern pattern, StyledText text)

Constructs an action that replaces regex finds in text.

Parameters
replacement:String

the replacement string

pattern:Pattern

the regex used to search the text

text:StyledText

the text

Method Detail

performback to summary
public void perform()

Implements jdk.javadoc.internal.doclets.formats.html.taglets.snippet.Action.perform.

Doc from jdk.javadoc.internal.doclets.formats.html.taglets.snippet.Action.perform.

Performs this action.

Annotations
@Override