Class Handle

java.lang.Object
org.eolang.opeo.ast.Handle
All Implemented Interfaces:
Xmir

public final class Handle extends Object implements Xmir
Method or field reference.
Since:
0.5
  • Constructor Summary

    Constructors
    Constructor
    Description
    Handle(int tag, String name, String owner, String desc, boolean itf)
    Constructor.
    Handle(org.eolang.jeo.representation.xmir.XmlNode root)
    Constructor.
    Handle(org.eolang.jeo.representation.xmir.XmlNode root, List<org.eolang.jeo.representation.xmir.XmlNode> children)
    Constructor.
    Handle(org.objectweb.asm.Handle handle)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.Handle
    Convert to ASM handle.
    Iterable<org.xembly.Directive>
    Convert node to XMIR.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Handle

      public Handle(org.eolang.jeo.representation.xmir.XmlNode root)
      Constructor.
      Parameters:
      root - XMIR node to parse.
    • Handle

      public Handle(org.eolang.jeo.representation.xmir.XmlNode root, List<org.eolang.jeo.representation.xmir.XmlNode> children)
      Constructor.
      Parameters:
      root - XMIR node to parse.
      children - XMIR root node children to parse.
    • Handle

      public Handle(org.objectweb.asm.Handle handle)
      Constructor.
      Parameters:
      handle - ASM handle.
    • Handle

      public Handle(int tag, String name, String owner, String desc, boolean itf)
      Constructor.
      Parameters:
      tag - Reference type.
      name - Name of the method or field.
      owner - Owner of the method or field.
      desc - Descriptor of the method or field.
      itf - Is it an interface method?
  • 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.
    • toAsm

      public org.objectweb.asm.Handle toAsm()
      Convert to ASM handle.
      Returns:
      ASM handle.