Top Fields Constructors Methods
org.jparsec.pattern

pack-priv Class ManyPattern

extends Pattern
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Pattern
Inherited from org.jparsec.pattern.Pattern:
MISMATCH

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public int
match(CharSequence
the source string.
src
,
int
the beginning index in the sequence.
begin
,
int
the end index of the source string (exclusive).

Note

the range is [begin, end).

end
)

Implements abstract org.jparsec.pattern.Pattern.match.

Matches character range against the pattern.

pack-priv static int
matchMany(Pattern pattern, CharSequence src, int len, int from, int acc)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from org.jparsec.pattern.Pattern:
atLeastatMostifelsemanymanymany1nextnotoptionalorpeekrepeatsomesometimestimestoScanner

Field Detail

patternback to summary
private final Pattern pattern

Constructor Detail

ManyPatternback to summary
pack-priv ManyPattern(Pattern pattern)

Method Detail

matchback to summary
public int match(CharSequence src, int begin, int end)

Implements abstract org.jparsec.pattern.Pattern.match.

Doc from org.jparsec.pattern.Pattern.match.

Matches character range against the pattern. The length of the range is end - begin.

Parameters
src:CharSequence

the source string.

begin:int

the beginning index in the sequence.

end:int

the end index of the source string (exclusive).

Note

the range is [begin, end).

Returns:int

the number of characters matched. MISMATCH otherwise.

Annotations
@Override
matchManyback to summary
pack-priv static int matchMany(Pattern pattern, CharSequence src, int len, int from, int acc)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override