WordPattern
Leave feedback
On this page
Inheritance: java.lang.Object
public class WordPattern
Represents a word pattern to use in word wildcard search.
Learn more
| Constructor | Description |
|---|---|
| WordPattern() | Initializes a new instance of the WordPattern class. |
| Method | Description |
|---|---|
| appendString(String text) | Appends a string to the word pattern. |
| appendCharacter(char character) | Appends a character to the word pattern. |
| appendOneCharacterWildcard() | Appends one character wildcard to the word pattern. |
| appendZeroOrOneCharacterWildcard() | Appends zero or one character wildcard to the word pattern. |
| appendZeroOrMoreCharactersWildcard() | Appends zero or more characters wildcard to the word pattern. |
| appendOneOrMoreCharactersWildcard() | Appends one or more characters wildcard to the word pattern. |
| appendWildcard(int min, int max) | Appends a wildcard to the word pattern. |
| toString() | Returns a System.String that represents the current WordPattern . |
| getCore() |
public WordPattern()
Initializes a new instance of the WordPattern class.
public void appendString(String text)
Appends a string to the word pattern.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| text | java.lang.String | The string to append. |
public void appendCharacter(char character)
Appends a character to the word pattern.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| character | char | The character to append. |
public void appendOneCharacterWildcard()
Appends one character wildcard to the word pattern.
public void appendZeroOrOneCharacterWildcard()
Appends zero or one character wildcard to the word pattern.
public void appendZeroOrMoreCharactersWildcard()
Appends zero or more characters wildcard to the word pattern.
public void appendOneOrMoreCharactersWildcard()
Appends one or more characters wildcard to the word pattern.
public void appendWildcard(int min, int max)
Appends a wildcard to the word pattern.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| min | int | The minimum number of characters. |
| max | int | The maximum number of characters. |
public String toString()
Returns a System.String that represents the current WordPattern .
Returns: java.lang.String - A System.String that represents the current WordPattern .
public Object getCore()
Returns: java.lang.Object
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.