public class WordPattern extends Object
Learn more
| Modifier | Constructor and Description |
|---|---|
|
WordPattern()
Initializes a new instance of the
WordPattern class. |
protected |
WordPattern(Object state)
Initializes a new instance of the
WordPattern class. |
| Modifier and Type | Method and Description |
|---|---|
void |
appendCharacter(char character)
Appends a character to the word pattern.
|
void |
appendOneCharacterWildcard()
Appends one character wildcard to the word pattern.
|
void |
appendOneOrMoreCharactersWildcard()
Appends one or more characters wildcard to the word pattern.
|
void |
appendString(String text)
Appends a string to the word pattern.
|
void |
appendWildcard(int min,
int max)
Appends a wildcard to the word pattern.
|
void |
appendZeroOrMoreCharactersWildcard()
Appends zero or more characters wildcard to the word pattern.
|
void |
appendZeroOrOneCharacterWildcard()
Appends zero or one character wildcard to the word pattern.
|
Object |
getCore() |
String |
toString()
Returns a
System.String that represents the current WordPattern. |
public WordPattern()
WordPattern class.protected WordPattern(Object state)
WordPattern class.state - The state.public void appendCharacter(char character)
character - The character to append.public void appendOneCharacterWildcard()
public void appendOneOrMoreCharactersWildcard()
public void appendString(String text)
text - The string to append.public void appendWildcard(int min,
int max)
min - The minimum number of characters.max - The maximum number of characters.public void appendZeroOrMoreCharactersWildcard()
public void appendZeroOrOneCharacterWildcard()
public Object getCore()
Copyright © 2026. All rights reserved.