-
-
Constructor Summary
Constructors
Cast(org.eolang.jeo.representation.xmir.XmlNode node,
Function<org.eolang.jeo.representation.xmir.XmlNode,AstNode> target)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Cast
public Cast(org.eolang.jeo.representation.xmir.XmlNode node,
Function<org.eolang.jeo.representation.xmir.XmlNode,AstNode> target)
Constructor.
- Parameters:
node
- XML node
target
- Function to determine the origin node.
-
Cast
public Cast(org.objectweb.asm.Type target,
AstNode origin)
Constructor.
- Parameters:
target
- Target type
origin
- Node to cast
-
Method Details
-
toXmir
public Iterable<org.xembly.Directive> toXmir()
Description copied from interface: Xmir
Convert node to XMIR.
- Specified by:
toXmir
in interface Xmir
- Returns:
- XMIR XML.
-
opcodes
Description copied from interface: AstNode
Bytecode instructions.
- Specified by:
opcodes
in interface AstNode
- Returns:
- List of opcodes.
-
type
public org.objectweb.asm.Type type()
Description copied from interface: Typed
Node type.
- Specified by:
type
in interface Typed
- Returns:
- Type.