public class QLPatternNode extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
blame
取反,例如:+@,匹配不是+的所有字符
|
protected boolean |
isSkip
是否匹配成功,但在输出的时候忽略,用"~"表示
CONST$(,~$CONST)*
|
protected boolean |
isTreeRoot
是否根节点,例如:if^
|
protected int |
maxMatchNum
最大匹配次数
|
protected int |
minMatchNum
最小匹配次数,0..n
|
protected INodeType |
nodeType
匹配类型,例如 ID,if,SELECT
|
protected INodeType |
rootNodeType
需要转为的虚拟类型,例如:(ID$(,$ID)*)#COL_LIST
|
protected INodeType |
targetNodeType
匹配到的节点需要转换成的类型,例如 ID->CONST_STRING
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
QLPatternNode(INodeTypeManager aManager,
String aName,
String aOrgiContent) |
protected |
QLPatternNode(INodeTypeManager aManager,
String aName,
String aOrgiContent,
boolean aIsChildMode,
int aLevel) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<QLPatternNode> |
getChildren() |
INodeType |
getNodeType() |
boolean |
isAndMode() |
boolean |
isDetailMode() |
String |
joinStringList(List<QLPatternNode> list,
String splitChar) |
void |
splitChild() |
String |
toString() |
protected boolean isTreeRoot
protected int minMatchNum
protected int maxMatchNum
protected INodeType nodeType
protected INodeType targetNodeType
protected INodeType rootNodeType
protected boolean isSkip
protected boolean blame
protected QLPatternNode(INodeTypeManager aManager, String aName, String aOrgiContent) throws Exception
Exceptionprotected QLPatternNode(INodeTypeManager aManager, String aName, String aOrgiContent, boolean aIsChildMode, int aLevel) throws Exception
Exceptionpublic List<QLPatternNode> getChildren()
public INodeType getNodeType()
public boolean isDetailMode()
public boolean isAndMode()
public String joinStringList(List<QLPatternNode> list, String splitChar)
Copyright © 2012–2018 Alibaba Group. All rights reserved.