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

public final Class AddStyle

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

An action that applies an additional style to text.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public
AddStyle(Style
the style to add (to already existing styles)
style
,
Pattern
the regex used to search the text
pattern
,
StyledText
the text to search
text
)

Constructs an action that applies an additional style to 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
styleback to summary
private final Style style
textback to summary
private final StyledText text

Constructor Detail

AddStyleback to summary
public AddStyle(Style style, Pattern pattern, StyledText text)

Constructs an action that applies an additional style to regex finds in text.

Parameters
style:Style

the style to add (to already existing styles)

pattern:Pattern

the regex used to search the text

text:StyledText

the text to search

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