WordPattern

Inheritance: java.lang.Object

public class WordPattern

Represents a word pattern to use in word wildcard search.

Learn more

Constructors

Constructor Description
WordPattern() Initializes a new instance of the WordPattern class.

Methods

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()

WordPattern()

public WordPattern()

Initializes a new instance of the WordPattern class.

appendString(String text)

public void appendString(String text)

Appends a string to the word pattern.

Parameters:

Parameter Type Description
text java.lang.String The string to append.

appendCharacter(char character)

public void appendCharacter(char character)

Appends a character to the word pattern.

Parameters:

Parameter Type Description
character char The character to append.

appendOneCharacterWildcard()

public void appendOneCharacterWildcard()

Appends one character wildcard to the word pattern.

appendZeroOrOneCharacterWildcard()

public void appendZeroOrOneCharacterWildcard()

Appends zero or one character wildcard to the word pattern.

appendZeroOrMoreCharactersWildcard()

public void appendZeroOrMoreCharactersWildcard()

Appends zero or more characters wildcard to the word pattern.

appendOneOrMoreCharactersWildcard()

public void appendOneOrMoreCharactersWildcard()

Appends one or more characters wildcard to the word pattern.

appendWildcard(int min, int max)

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.

toString()

public String toString()

Returns a System.String that represents the current WordPattern .

Returns: java.lang.String - A System.String that represents the current WordPattern .

getCore()

public Object getCore()

Returns: java.lang.Object