public class CaptureTreeNode extends Object
CaptureTree.CaptureTree,
Matcher.captureTree()| Constructor and Description |
|---|
CaptureTreeNode() |
| Modifier and Type | Method and Description |
|---|---|
Capture |
getCapture()
Returns a
Capture object that contains the start and end index of
the region of the input sequence captured |
List<CaptureTreeNode> |
getChildren()
Returns the children of this node
|
String |
getGroupName()
Returns the group name of the
named-capturing group that was
captured
|
int |
getGroupNumber()
Returns the group number of the capturing
group that was captured
|
CaptureTreeNode |
getParent()
Returns the parent of this node
|
boolean |
isRecursion()
Returns whether this capture is from a
recursive group call
|
String |
toString() |
public int getGroupNumber()
public String getGroupName()
public Capture getCapture()
Capture object that contains the start and end index of
the region of the input sequence capturedCapture object that contains the start and end index of
the region of the input sequence capturedpublic List<CaptureTreeNode> getChildren()
public CaptureTreeNode getParent()
public boolean isRecursion()
Copyright © 2019. All rights reserved.