public static final class SqllrSnapshot.Statement extends Object
| Modifier and Type | Method and Description |
|---|---|
SqllrSnapshot.Anchor |
getAnchor() |
int |
getEntries()
How many times the analysis entered the statement (
analyzeCustomSqlStmt), nested statements and
statements of dynamic SQL included; 0 for a statement it only reached (a parse parent, a query's SELECT). |
String |
getFailureClass()
For an analysed statement whose analysis failed, the exception's class name, else null.
|
String |
getFailureMessage() |
long |
getHandle() |
long |
getParent()
The parse tree's parent statement, or 0.
|
long |
getStackParent()
The statement the analysis was working in when it entered this one (the entry below it on the analysis's
statement stack), or 0 for a statement analysed at the top.
|
String |
getStatementClass() |
String |
getStatementType()
The statement type (
ESqlStatementType name). |
int |
getUnit()
For an analysed statement, the input unit it was parsed from, or -1.
|
boolean |
isAnalysed()
Whether the analysis analysed the statement as a top-level statement of its own.
|
boolean |
isFinished()
For an analysed statement, whether its analysis ended.
|
boolean |
isPrimary()
For an analysed statement, whether it is one of its unit's parsed top-level statements.
|
void |
write(StringBuilder out) |
public long getHandle()
public String getStatementClass()
public String getStatementType()
ESqlStatementType name).public long getStackParent()
public long getParent()
public SqllrSnapshot.Anchor getAnchor()
public int getEntries()
analyzeCustomSqlStmt), nested statements and
statements of dynamic SQL included; 0 for a statement it only reached (a parse parent, a query's SELECT).public boolean isAnalysed()
public int getUnit()
public boolean isPrimary()
public boolean isFinished()
public String getFailureClass()
public String getFailureMessage()
public void write(StringBuilder out)