public class QueryTreeAnalyzer
extends java.lang.Object
Constructor and Description |
---|
QueryTreeAnalyzer(QueryTree queryTree) |
Modifier and Type | Method and Description |
---|---|
protected <T> java.util.stream.Stream<T> |
generateChildrenByClass(org.antlr.runtime.tree.CommonTree commonTree,
java.lang.Class<T> clazz) |
java.util.List<SimpleConditionNode> |
getConditions() |
java.util.Set<java.lang.String> |
getEntityNames() |
java.lang.String |
getMainEntityName(IdentificationVariableNode identificationVariable) |
java.lang.String |
getMainEntityVariable(IdentificationVariableNode identificationVariable) |
IdentificationVariableNode |
getMainIdentificationVariableNode() |
java.lang.String |
getMainSelectedEntityName(PathNode pathNode) |
java.lang.String |
getMainSelectedEntityVariable(PathNode pathNode) |
PathNode |
getMainSelectedPathNode() |
java.util.Set<java.lang.String> |
getParamNames() |
boolean |
isConditionForEntityProperty(SimpleConditionNode condition,
java.lang.String variableName,
java.lang.String property) |
boolean |
isConditionForParameter(SimpleConditionNode condition,
java.lang.String parameterName) |
boolean |
isConditionIN(SimpleConditionNode condition) |
boolean |
isConditionISNOTNULL(SimpleConditionNode condition) |
boolean |
isConditionISNULL(SimpleConditionNode condition) |
boolean |
isQueryWithJoins() |
boolean |
isVariablePathNode(PathNode pathNode) |
protected QueryTree queryTree
public QueryTreeAnalyzer(QueryTree queryTree)
public java.lang.String getMainEntityName(IdentificationVariableNode identificationVariable)
public java.lang.String getMainEntityVariable(IdentificationVariableNode identificationVariable)
@Nullable public IdentificationVariableNode getMainIdentificationVariableNode()
public java.lang.String getMainSelectedEntityName(PathNode pathNode)
public java.lang.String getMainSelectedEntityVariable(PathNode pathNode)
@Nullable public PathNode getMainSelectedPathNode()
public java.util.Set<java.lang.String> getParamNames()
public java.util.Set<java.lang.String> getEntityNames()
public java.util.List<SimpleConditionNode> getConditions()
public boolean isQueryWithJoins()
public boolean isConditionForEntityProperty(SimpleConditionNode condition, java.lang.String variableName, java.lang.String property)
public boolean isConditionForParameter(SimpleConditionNode condition, java.lang.String parameterName)
public boolean isConditionIN(SimpleConditionNode condition)
public boolean isConditionISNULL(SimpleConditionNode condition)
public boolean isConditionISNOTNULL(SimpleConditionNode condition)
public boolean isVariablePathNode(PathNode pathNode)
protected <T> java.util.stream.Stream<T> generateChildrenByClass(org.antlr.runtime.tree.CommonTree commonTree, java.lang.Class<T> clazz)