public class MatchResult
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
Path |
getMatch()
Returns the path which was matched by the
Pattern . |
int |
getMatchLength()
Returns the number of elements which where matched by the
Pattern . |
int |
getMatchPos()
Returns the position of the match
|
Path |
getRemainder()
Returns the remaining path after the matching part.
|
boolean |
isFullMatch()
|
boolean |
isMatch()
Returns true if the
Pattern matched anything or false otherwise. |
public Path getRemainder()
getMatch()
followed by getRemainder()
is the original path or
null
if isFullMatch()
is true
.public Path getMatch()
Pattern
.getMatch()
followed by getRemainder()
is the original path or
null
if getMatchLength()
is 0
.public int getMatchPos()
public int getMatchLength()
Pattern
.public boolean isMatch()
Pattern
matched anything or false otherwise.public boolean isFullMatch()
Copyright © 2010 - 2020 Adobe. All Rights Reserved