| 限定符和类型 | 类和说明 |
|---|---|
class |
AnchorEndNode
This node supports '$' and '\Z'
|
class |
AnchorStartNode
This node support '^' and '\A'
|
class |
BeginNode
Normal beginning node, should be the first node of all node-chain.
|
class |
BoundNode
This Node supports '\b' and '\B'.
|
class |
BranchNode
This node supports '|' branches.
|
class |
CharAnyNode
This CharNode supports '
|
class |
CharNode
This node is the base class for char matching
|
class |
CharRangeNode
This node support single char like [a-z]
|
class |
CharRefNode
This node support backreference, like '(\d)(\w)\2' could match '1aa', the '\2' could refer to '\w'.
|
class |
CharSetNode
This node supports [abcde], only supports Latin-1 char.
|
class |
CharSingleNode
This node supports one single char, like 'A'
|
class |
CharSliceNode
This node support the original char slice, like string.
|
class |
CharTypeNode
This node supports escape char, like '\d' '\w'
|
class |
CharUnionNode
This node supports multiple CharNode's union
|
class |
CharWhitespaceNode
This node supports whitespace char like '\V', '\v', '\H', '\h'.
|
class |
CurlyNode
This node support repeat rules that isn't complex, like \d+.
|
class |
EndNode
This node supports regular expressions's end, all node-chain should have it at the last.
|
class |
GroupNode
GroupHead represents the group's head
|
class |
GroupNode.Tail |
class |
LoopNode
This node supports all loop match, like '+', '++', '{1,10}' etc.
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Node |
Node.next |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
BranchNode.add(Node node) |
boolean |
GroupNode.alike(Node node) |
boolean |
GroupNode.Tail.alike(Node node) |
boolean |
CharRangeNode.alike(Node node) |
boolean |
BranchNode.alike(Node node) |
boolean |
EndNode.alike(Node node) |
boolean |
CurlyNode.alike(Node node) |
boolean |
CharTypeNode.alike(Node node) |
boolean |
BoundNode.alike(Node node) |
boolean |
CharWhitespaceNode.alike(Node node) |
boolean |
CharSetNode.alike(Node node) |
boolean |
CharSliceNode.alike(Node node) |
boolean |
AnchorEndNode.alike(Node node) |
boolean |
CharRefNode.alike(Node node) |
boolean |
CharAnyNode.alike(Node node) |
boolean |
AnchorStartNode.alike(Node node) |
boolean |
CharUnionNode.alike(Node node) |
boolean |
CharSingleNode.alike(Node node) |
abstract boolean |
Node.alike(Node node) |
boolean |
BeginNode.alike(Node node) |
boolean |
LoopNode.alike(Node node) |
| 构造器和说明 |
|---|
BeginNode(Node next) |
BranchNode(Node next,
Node first,
Node second) |
CurlyNode(int type,
int minTimes,
int maxTimes,
Node body,
Node next) |
LoopNode(Node head,
Node tail,
int cmin,
int cmax,
int type,
int localOffset) |
| 构造器和说明 |
|---|
BranchNode(List<Node> branches) |
Copyright © 2019. All rights reserved.