Package net.sf.jsqlparser.expression
Class VariableAssignment
- java.lang.Object
-
- net.sf.jsqlparser.parser.ASTNodeAccessImpl
-
- net.sf.jsqlparser.expression.VariableAssignment
-
- All Implemented Interfaces:
java.io.Serializable
,Expression
,Model
,ASTNodeAccess
public class VariableAssignment extends ASTNodeAccessImpl implements Expression
Assignment to a user variable like in select @a = 5.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Expression
expression
private java.lang.String
operation
private UserVariable
variable
-
Constructor Summary
Constructors Constructor Description VariableAssignment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ExpressionVisitor expressionVisitor)
Expression
getExpression()
java.lang.String
getOperation()
UserVariable
getVariable()
void
setExpression(Expression expression)
void
setOperation(java.lang.String operation)
void
setVariable(UserVariable variable)
java.lang.String
toString()
-
Methods inherited from class net.sf.jsqlparser.parser.ASTNodeAccessImpl
appendTo, getASTNode, setASTNode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.sf.jsqlparser.parser.ASTNodeAccess
getASTNode, setASTNode
-
-
-
-
Field Detail
-
variable
private UserVariable variable
-
operation
private java.lang.String operation
-
expression
private Expression expression
-
-
Method Detail
-
getVariable
public UserVariable getVariable()
-
setVariable
public void setVariable(UserVariable variable)
-
getOperation
public java.lang.String getOperation()
-
setOperation
public void setOperation(java.lang.String operation)
-
getExpression
public Expression getExpression()
-
setExpression
public void setExpression(Expression expression)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
accept
public void accept(ExpressionVisitor expressionVisitor)
- Specified by:
accept
in interfaceExpression
-
-