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 AstNodecurrent()Retrieve the current node.voidlink(AstNode node)Link the node.List<AstNode>opcodes()Bytecode instructions.Iterable<org.xembly.Directive>toXmir()Convert node to XMIR.org.objectweb.asm.Typetype()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:AstNodeBytecode instructions.
-
toXmir
public Iterable<org.xembly.Directive> toXmir()
Description copied from interface:XmirConvert node to XMIR.
-
type
public org.objectweb.asm.Type type()
Description copied from interface:TypedNode 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.
-
-