Class HQLAnalyzer
java.lang.Object
org.hibernate.tool.reveng.ide.completion.HQLAnalyzer
The HQLAnalyzer can answer certain questions about a HQL String.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetEntityNamePrefix(char[] chars, int position) Returns reference name found from position and backwards in the array.protected SimpleHQLLexergetLexer(char[] chars) getSubQueries(char[] query, int position) getVisibleEntityNames(char[] chars, int position) getVisibleSubQueries(char[] chars, int position) booleanshouldShowEntityNames(char[] chars, int cursorPosition) booleanshouldShowEntityNames(String query, int cursorPosition) Returns true if the position is at a location where an entityname makes sense.
-
Constructor Details
-
HQLAnalyzer
public HQLAnalyzer()
-
-
Method Details
-
getLexer
-
shouldShowEntityNames
Returns true if the position is at a location where an entityname makes sense. e.g. "from Pr| where x" -
shouldShowEntityNames
public boolean shouldShowEntityNames(char[] chars, int cursorPosition) -
getVisibleSubQueries
-
getVisibleEntityNames
-
getSubQueries
-
getEntityNamePrefix
Returns reference name found from position and backwards in the array.
-