public class CommandStatement extends Statement implements SubqueryContainer
This class represents a variable assignment statement in the storedprocedure language.
It extends the Statement
that could part of a block. This statement has
a command that should be executed as part of the procedure.
Statement.Labeled
SubqueryContainer.Evaluatable<T extends Command>
LanguageObject.Util
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_COMPOUND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LEAVE, TYPE_LOOP, TYPE_RETURN, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE
Constructor and Description |
---|
CommandStatement()
Constructor for CommandStatement.
|
CommandStatement(Command value)
Constructor for CommandStatement.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.
|
Object |
clone()
Deep clone statement to produce a new identical statement.
|
boolean |
equals(Object obj)
Compare two CommandStatements for equality.
|
Command |
getCommand()
Get the command on this statement.
|
int |
getType()
Return the type for this statement, this is one of the types
defined on the statement object.
|
int |
hashCode()
Get hashcode for CommandStatement.
|
boolean |
isReturnable() |
void |
setCommand(Command command)
Sets the subquery Command object
|
void |
setReturnable(boolean returnable) |
public CommandStatement()
public CommandStatement(Command value)
value
- The Command
on this statementpublic Command getCommand()
getCommand
in interface SubqueryContainer
Command
on this statementpublic void setCommand(Command command)
SubqueryContainer
setCommand
in interface SubqueryContainer
command
- the subquery Command objectpublic int getType()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor
in interface LanguageObject
visitor
- Visitor being usedpublic Object clone()
clone
in interface LanguageObject
clone
in class Statement
public boolean equals(Object obj)
public int hashCode()
public boolean isReturnable()
public void setReturnable(boolean returnable)
Copyright © 2017 JBoss by Red Hat. All rights reserved.