public class QLPatternNode
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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
|
| Modifier | Constructor and Description |
|---|---|
protected |
QLPatternNode(INodeTypeManager iNodeTypeManager,
java.lang.String name,
java.lang.String originalContent) |
protected |
QLPatternNode(INodeTypeManager iNodeTypeManager,
java.lang.String name,
java.lang.String originalContent,
boolean isChildMode,
int level) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canMergeDetail() |
java.util.List<QLPatternNode> |
getChildren() |
INodeType |
getNodeType() |
boolean |
isAndMode() |
boolean |
isDetailMode() |
java.lang.String |
joinStringList(java.util.List<QLPatternNode> list,
java.lang.String splitChar) |
void |
splitChild() |
java.lang.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 iNodeTypeManager, java.lang.String name, java.lang.String originalContent) throws java.lang.Exception
java.lang.Exceptionprotected QLPatternNode(INodeTypeManager iNodeTypeManager, java.lang.String name, java.lang.String originalContent, boolean isChildMode, int level) throws java.lang.Exception
java.lang.Exceptionpublic boolean canMergeDetail()
public void splitChild()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.List<QLPatternNode> getChildren()
public INodeType getNodeType()
public boolean isDetailMode()
public boolean isAndMode()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String joinStringList(java.util.List<QLPatternNode> list, java.lang.String splitChar)
Copyright © 2012-2024 Alibaba Group. All Rights Reserved.