Package org.eolang.opeo.ast
Class VariableAssignment
- java.lang.Object
-
- org.eolang.opeo.ast.VariableAssignment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
-
Constructor Summary
Constructors Constructor Description VariableAssignment(List<org.eolang.jeo.representation.xmir.XmlNode> children, Parser parser)
Constructor.VariableAssignment(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser)
Constructor.VariableAssignment(LocalVariable left, AstNode right)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AstNode>
opcodes()
Bytecode instructions.Iterable<org.xembly.Directive>
toXmir()
Convert node to XMIR.
-
-
-
Constructor Detail
-
VariableAssignment
public VariableAssignment(org.eolang.jeo.representation.xmir.XmlNode root, Parser parser)
Constructor.- Parameters:
root
- Xmir representation of a variable assignment.parser
- Parser that will be used to parse the child nodes of the variable assignment.
-
VariableAssignment
public VariableAssignment(List<org.eolang.jeo.representation.xmir.XmlNode> children, Parser parser)
Constructor.- Parameters:
children
- Child nodes that represent the variable and the expression.parser
- Parser that will be used to parse the child nodes of the variable assignment.
-
VariableAssignment
public VariableAssignment(LocalVariable left, AstNode right)
Constructor.- Parameters:
left
- Left variable.right
- Right expression.
-
-