Package com.mckoi.database
Class Assignment
java.lang.Object
com.mckoi.database.Assignment
- All Implemented Interfaces:
StatementTreeObject,Serializable,Cloneable
public final class Assignment
extends Object
implements StatementTreeObject, Serializable, Cloneable
An assignment from a variable to an expression. For example;
value_of = value_of * 1.10
name = concat("CS-", name)
description = concat("LEGACY: ", upper(number));
- Author:
- Tobias Downer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAssignment(Variable variable, Expression expression) Constructs the assignment. -
Method Summary
Modifier and TypeMethodDescriptionclone()Performs a DEEP clone of this object if it is mutable, or a deep clone of its mutable members.Returns the Expression for this assignment.Returns the variable for this assignment.voidprepareExpressions(ExpressionPreparer preparer) Prepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.
-
Constructor Details
-
Assignment
Constructs the assignment.
-
-
Method Details
-
getVariable
Returns the variable for this assignment. -
getExpression
Returns the Expression for this assignment. -
prepareExpressions
Description copied from interface:StatementTreeObjectPrepares all expressions in this statement tree object by passing the ExpressionPreparer object to the 'prepare' method of the expression.- Specified by:
prepareExpressionsin interfaceStatementTreeObject- Throws:
DatabaseException
-
clone
Description copied from interface:StatementTreeObjectPerforms a DEEP clone of this object if it is mutable, or a deep clone of its mutable members. If the object is immutable then it may return 'this'.- Specified by:
clonein interfaceStatementTreeObject- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-