Package org.eolang.opeo.ast
Class Duplicate
- java.lang.Object
-
- org.eolang.opeo.ast.Duplicate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.opeo.ast.AstNode
AstNode.Empty
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AstNode
current()
Retrieve the current node.void
link(AstNode node)
Link the node.List<AstNode>
opcodes()
Bytecode instructions.Iterable<org.xembly.Directive>
toXmir()
Convert node to XMIR.org.objectweb.asm.Type
type()
Node type.
-
-
-
Constructor Detail
-
Duplicate
public Duplicate(AstNode original)
Constructor.- Parameters:
original
- The original node to duplicate.
-
-
Method Detail
-
opcodes
public List<AstNode> opcodes()
Description copied from interface:AstNode
Bytecode instructions.
-
toXmir
public Iterable<org.xembly.Directive> toXmir()
Description copied from interface:Xmir
Convert node to XMIR.
-
type
public org.objectweb.asm.Type type()
Description copied from interface:Typed
Node type.
-
link
public void link(AstNode node)
Link the node.- Parameters:
node
- The node to link.
-
current
public AstNode current()
Retrieve the current node.- Returns:
- The current node.
-
-