- java.lang.Object
-
- net.sf.jsqlparser.statement.ExplainStatement
-
public class ExplainStatement extends java.lang.Object implements Statement
AnEXPLAIN
statement- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExplainStatement.Option
static class
ExplainStatement.OptionType
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
keyword
private java.util.LinkedHashMap<ExplainStatement.OptionType,ExplainStatement.Option>
options
private Select
select
private Table
table
-
Constructor Summary
Constructors Constructor Description ExplainStatement()
ExplainStatement(java.lang.String keyword)
ExplainStatement(java.lang.String keyword, Table table)
ExplainStatement(java.lang.String keyword, Select select, java.util.List<ExplainStatement.Option> optionList)
ExplainStatement(Select select)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,S>
Taccept(StatementVisitor<T> statementVisitor, S context)
void
addOption(ExplainStatement.Option option)
java.lang.String
getKeyword()
ExplainStatement.Option
getOption(ExplainStatement.OptionType optionType)
Returns the first option that matches this optionTypejava.util.LinkedHashMap<ExplainStatement.OptionType,ExplainStatement.Option>
getOptions()
Select
getStatement()
Table
getTable()
ExplainStatement
setKeyword(java.lang.String keyword)
void
setStatement(Select select)
ExplainStatement
setTable(Table table)
java.lang.String
toString()
-
-
-
Field Detail
-
keyword
private java.lang.String keyword
-
select
private Select select
-
options
private java.util.LinkedHashMap<ExplainStatement.OptionType,ExplainStatement.Option> options
-
table
private Table table
-
-
Constructor Detail
-
ExplainStatement
public ExplainStatement(java.lang.String keyword)
-
ExplainStatement
public ExplainStatement()
-
ExplainStatement
public ExplainStatement(java.lang.String keyword, Table table)
-
ExplainStatement
public ExplainStatement(java.lang.String keyword, Select select, java.util.List<ExplainStatement.Option> optionList)
-
ExplainStatement
public ExplainStatement(Select select)
-
-
Method Detail
-
getTable
public Table getTable()
-
setTable
public ExplainStatement setTable(Table table)
-
getStatement
public Select getStatement()
-
setStatement
public void setStatement(Select select)
-
getOptions
public java.util.LinkedHashMap<ExplainStatement.OptionType,ExplainStatement.Option> getOptions()
-
addOption
public void addOption(ExplainStatement.Option option)
-
getOption
public ExplainStatement.Option getOption(ExplainStatement.OptionType optionType)
Returns the first option that matches this optionType- Parameters:
optionType
- the option type to retrieve an Option for- Returns:
- an option of that type, or null. In case of duplicate options, the first found option will be returned.
-
getKeyword
public java.lang.String getKeyword()
-
setKeyword
public ExplainStatement setKeyword(java.lang.String keyword)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
accept
public <T,S> T accept(StatementVisitor<T> statementVisitor, S context)
-
-