|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.teiid.query.sql.proc.Statement
org.teiid.query.sql.proc.AssignmentStatement
public class AssignmentStatement
This class represents an assignment statement in the storedprocedure language.
It extends the Statement that could part of a Block. This
statement holds references to the variable and it's value which could be an
Expression or a Command.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.teiid.query.sql.LanguageObject |
|---|
LanguageObject.Util |
| Field Summary |
|---|
| Fields inherited from class org.teiid.query.sql.proc.Statement |
|---|
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LOOP, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE |
| Constructor Summary | |
|---|---|
AssignmentStatement()
Constructor for AssignmentStatement. |
|
AssignmentStatement(ElementSymbol variable,
Command value)
Deprecated. |
|
AssignmentStatement(ElementSymbol variable,
Expression value)
|
|
AssignmentStatement(ElementSymbol variable,
QueryCommand value)
|
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
java.lang.Object |
clone()
Deep clone statement to produce a new identical statement. |
boolean |
equals(java.lang.Object obj)
Compare two AssignmentStatements for equality. |
Command |
getCommand()
Deprecated. |
java.lang.Class<?> |
getExpectedType()
|
Expression |
getExpression()
|
int |
getType()
Return the type for this statement, this is one of the types defined on the statement object. |
Expression |
getValue()
Deprecated. |
ElementSymbol |
getVariable()
Get the expression giving the value that is assigned to the variable. |
int |
hashCode()
Get hashcode for AssignmentStatement. |
void |
setCommand(Command command)
|
void |
setExpression(Expression expression)
|
void |
setValue(Expression value)
Deprecated. |
void |
setVariable(ElementSymbol variable)
Set the variable that is assigned to the value |
| Methods inherited from class org.teiid.query.sql.proc.Statement |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AssignmentStatement()
public AssignmentStatement(ElementSymbol variable,
QueryCommand value)
@Deprecated
public AssignmentStatement(ElementSymbol variable,
Command value)
public AssignmentStatement(ElementSymbol variable,
Expression value)
| Method Detail |
|---|
@Deprecated public Command getCommand()
public void setCommand(Command command)
@Deprecated public Expression getValue()
getExpression()@Deprecated public void setValue(Expression value)
setExpression(Expression)public Expression getExpression()
getExpression in interface ExpressionStatementpublic void setExpression(Expression expression)
setExpression in interface ExpressionStatementpublic ElementSymbol getVariable()
Expression with the valuepublic void setVariable(ElementSymbol variable)
public int getType()
getType in class Statementpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic java.lang.Object clone()
clone in interface LanguageObjectclone in class Statementpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.Class<?> getExpectedType()
getExpectedType in interface ExpressionStatement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||