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.
Modifier and Type | Class and Description |
---|---|
static class |
BranchingStatement.BranchingMode |
Statement.Labeled
LanguageObject.Util
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 and Description |
---|
BranchingStatement() |
BranchingStatement(BranchingStatement.BranchingMode mode) |
Modifier and Type | Method and 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) |
public BranchingStatement()
public BranchingStatement(BranchingStatement.BranchingMode mode)
public String getLabel()
public void setLabel(String label)
public void setMode(BranchingStatement.BranchingMode mode)
public BranchingStatement.BranchingMode getMode()
public int getType()
public void acceptVisitor(LanguageVisitor visitor)
LanguageObject
visitor
- Visitor being usedpublic BranchingStatement clone()
clone
in interface LanguageObject
clone
in class Statement
public boolean equals(Object obj)
Copyright © 2018 JBoss by Red Hat. All rights reserved.