check
Boolean
String
The check method checks the pattern against the
input string. If the verification is successful, the method
returns true, false otherwise.
match
String
String|InputStream
The match method attempts to match an input string
or an input stream. If the matching occurs, the matching string
is returned. If the input is a string, the end of string is used
as an end condition. If the input stream is used, the end of
stream is used as an end condition.
set-tag
none
Integer
The set-tag method sets the pattern tag. The tag
can be further used inside a scanner.
get-tag
Integer
none
The get-tag method returns the pattern tag.
set-name
none
String
The set-name method sets the pattern name. The name
is symbol identifier for that pattern.
get-name
String
none
The get-name method returns the pattern name.
set-regex
none
String|Regex
The set-regex method sets the pattern regex either
with a string or with a regex object. If the method is
successfully completed, the pattern type is switched to the REGEX type.
set-escape
none
Character
The set-escape method sets the pattern escape
character. The escape character is used only in balanced mode.
get-escape
Character
none
The get-escape method returns the escape character.
set-balanced
none
String| String String
The set-balanced method sets the pattern balanced
string. With one argument, the same balanced string is used for
starting and ending. With two arguments, the first argument is
the starting string and the second is the ending string.