|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.metamatrix.query.sql.proc.Statement
com.metamatrix.query.sql.proc.WhileStatement
public class WhileStatement
This class represents a while statement in the storedprocedure language.
It extends the Statement
that could part of a block. This statement has
a block and a criteria that
determines when to exit the while loop.
Field Summary |
---|
Fields inherited from class com.metamatrix.query.sql.proc.Statement |
---|
TYPE_ASSIGNMENT, TYPE_BREAK, TYPE_COMMAND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LOOP, TYPE_UNKNOWN, TYPE_WHILE |
Constructor Summary | |
---|---|
WhileStatement(Criteria criteria,
Block block)
Constructor for IfStatement. |
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 WhileStatements for equality. |
Block |
getBlock()
|
Criteria |
getCondition()
Get the condition that determines which block needs to be executed. |
int |
getType()
Return the type for this statement, this is one of the types defined on the statement object. |
int |
hashCode()
Get hashcode for WhileStatement. |
void |
setBlock(Block block)
|
void |
setCondition(Criteria criteria)
Set the condition that determines which block needs to be executed. |
java.lang.String |
toString()
Returns a string representation of an instance of this class. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public WhileStatement(Criteria criteria, Block block)
criteria
- The criteria determining which bleck should be executedifBlock
- The IF Block
object.ifBlock
- The ELSE Block
object.Method Detail |
---|
public Criteria getCondition()
Criteria
to determine block executionpublic void setCondition(Criteria criteria)
criteria
- The Criteria
to determine block executionpublic Block getBlock()
public void setBlock(Block block)
block
- public int getType()
getType
in class Statement
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic java.lang.Object clone()
clone
in interface LanguageObject
clone
in class Statement
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Other object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |