public abstract class Statement extends Object implements LanguageObject
This class represents the a statement in the stored procedure language.
The subclasses of this class represent specific statements like an
IfStatement
, AssignmentStatement
etc.
Modifier and Type | Class and Description |
---|---|
static interface |
Statement.Labeled |
LanguageObject.Util
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_ASSIGNMENT
Represents a ASSIGNMENT statement
|
static int |
TYPE_BREAK
Represents a BREAK statement
|
static int |
TYPE_COMMAND
Represents a SQL COMMAND statement
|
static int |
TYPE_COMPOUND |
static int |
TYPE_CONTINUE
Represents a CONTINUE statement
|
static int |
TYPE_DECLARE
Represents a DECLARE statement
|
static int |
TYPE_ERROR
Represents a ERROR statement
|
static int |
TYPE_IF
Represents a IF statement
|
static int |
TYPE_LEAVE |
static int |
TYPE_LOOP
Represents a LOOP statement
|
static int |
TYPE_RETURN |
static int |
TYPE_UNKNOWN
Represents an unknown type of statement
|
static int |
TYPE_UPDATE |
static int |
TYPE_WHILE
Represents a WHILE statement
|
Constructor and Description |
---|
Statement() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
clone()
Deep clone statement to produce a new identical statement.
|
abstract int |
getType()
Return type of statement to make it easier to build switch statements by statement type.
|
String |
toString() |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
acceptVisitor
public static final int TYPE_UNKNOWN
public static final int TYPE_IF
public static final int TYPE_COMMAND
public static final int TYPE_DECLARE
public static final int TYPE_ERROR
public static final int TYPE_ASSIGNMENT
public static final int TYPE_LOOP
public static final int TYPE_WHILE
public static final int TYPE_CONTINUE
public static final int TYPE_BREAK
public static final int TYPE_UPDATE
public static final int TYPE_COMPOUND
public static final int TYPE_LEAVE
public static final int TYPE_RETURN
public abstract int getType()
public abstract Object clone()
clone
in interface LanguageObject
clone
in class Object
Copyright © 2020. All rights reserved.