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.LabeledSubqueryContainer.Evaluatable<T extends Command>LanguageObject.UtilTYPE_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 SubqueryContainerCommand on this statementpublic void setCommand(Command command)
SubqueryContainersetCommand in interface SubqueryContainercommand - the subquery Command objectpublic int getType()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObjectacceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic Object clone()
clone in interface LanguageObjectclone in class Statementpublic boolean equals(Object obj)
public int hashCode()
public boolean isReturnable()
public void setReturnable(boolean returnable)
Copyright © 2017 JBoss by Red Hat. All rights reserved.