Package org.teiid.query.sql.proc
Class BranchingStatement
- java.lang.Object
-
- org.teiid.query.sql.proc.Statement
-
- org.teiid.query.sql.proc.BranchingStatement
-
- All Implemented Interfaces:
Cloneable
,LanguageObject
public class BranchingStatement extends Statement
This class represents a break statement in the storedprocedure language. It extends the
Statement
that could part of a block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BranchingStatement.BranchingMode
-
Nested classes/interfaces inherited from class org.teiid.query.sql.proc.Statement
Statement.Labeled
-
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_COMPOUND, TYPE_CONTINUE, TYPE_DECLARE, TYPE_ERROR, TYPE_IF, TYPE_LEAVE, TYPE_LOOP, TYPE_RETURN, TYPE_UNKNOWN, TYPE_UPDATE, TYPE_WHILE
-
-
Constructor Summary
Constructors Constructor Description BranchingStatement()
BranchingStatement(BranchingStatement.BranchingMode mode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acceptVisitor(LanguageVisitor visitor)
Method for accepting a visitor.BranchingStatement
clone()
Deep clone statement to produce a new identical statement.boolean
equals(Object obj)
Compare two BreakStatements for equality.String
getLabel()
BranchingStatement.BranchingMode
getMode()
int
getType()
Return the type for this statement, this is one of the types defined on the statement object.int
hashCode()
void
setLabel(String label)
void
setMode(BranchingStatement.BranchingMode mode)
-
-
-
Constructor Detail
-
BranchingStatement
public BranchingStatement()
-
BranchingStatement
public BranchingStatement(BranchingStatement.BranchingMode mode)
-
-
Method Detail
-
getLabel
public String getLabel()
-
setLabel
public void setLabel(String label)
-
setMode
public void setMode(BranchingStatement.BranchingMode mode)
-
getMode
public BranchingStatement.BranchingMode getMode()
-
getType
public int getType()
Return the type for this statement, this is one of the types defined on the statement object.
-
acceptVisitor
public void acceptVisitor(LanguageVisitor visitor)
Description copied from interface:LanguageObject
Method for accepting a visitor. It is the responsibility of the language object to call back on the visitor.- Parameters:
visitor
- Visitor being used
-
clone
public BranchingStatement clone()
Deep clone statement to produce a new identical statement.- Specified by:
clone
in interfaceLanguageObject
- Specified by:
clone
in classStatement
- Returns:
- Deep clone
-
equals
public boolean equals(Object obj)
Compare two BreakStatements for equality.
-
-