Package io.github.fupacat.ast
Class IfStatement
java.lang.Object
io.github.fupacat.ast.TSqlFragment
io.github.fupacat.ast.TSqlStatement
io.github.fupacat.ast.IfStatement
- All Implemented Interfaces:
Serializable
Represents the if statement.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe statement that will be executed if the predicate evaluates false.The expression that is the predicate for the if statement.The statement that will be executed if the predicate evaluates true.Fields inherited from class io.github.fupacat.ast.TSqlFragment
firstTokenIndex, lastTokenIndex, ScriptTokenStream, Value -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(TSqlFragmentVisitor visitor) voidacceptChildren(TSqlFragmentVisitor visitor) Methods inherited from class io.github.fupacat.ast.TSqlFragment
SetIdentifier, SetUnquotedIdentifier, UpdateTokenInfo, UpdateTokenInfo
-
Field Details
-
Predicate
The expression that is the predicate for the if statement. This should be a boolean expression. -
ThenStatement
The statement that will be executed if the predicate evaluates true. -
ElseStatement
The statement that will be executed if the predicate evaluates false. Optional, may be null.
-
-
Constructor Details
-
IfStatement
public IfStatement()
-
-
Method Details
-
accept
- Overrides:
acceptin classTSqlStatement
-
acceptChildren
- Overrides:
acceptChildrenin classTSqlStatement
-