|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.query.sql.proc.Block
public class Block
This class represents a group of Statement objects. The
statements are stored on this object in the order in which they are added.
| Constructor Summary | |
|---|---|
Block()
Constructor for Block. |
|
Block(Statement statement)
Constructor for Block with a single Statement. |
|
| Method Summary | |
|---|---|
void |
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor. |
void |
addStatement(Statement statement)
Add a Statement to this block. |
java.lang.Object |
clone()
Deep clone statement to produce a new identical block. |
boolean |
equals(java.lang.Object obj)
Compare two queries for equality. |
java.util.List |
getStatements()
Get all the statements contained on this block. |
int |
hashCode()
Get hashcode for block. |
void |
setStatements(java.util.List statements)
Set the statements contained on this block. |
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 Block()
public Block(Statement statement)
Statement.
statement - The Statement to be added to the block| Method Detail |
|---|
public java.util.List getStatements()
Statements contained in this blockpublic void setStatements(java.util.List statements)
statements - A list of Statements contained in this blockpublic void addStatement(Statement statement)
Statement to this block.
statement - The Statement to be added to the blockpublic void acceptVisitor(LanguageVisitor visitor)
LanguageObject
acceptVisitor in interface LanguageObjectvisitor - Visitor being usedpublic java.lang.Object clone()
clone in interface LanguageObjectclone in class java.lang.Objectpublic 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.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||