Package org.eolang.opeo.ast
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
- To do:
- #329:90min Refactor and rename
Handleclass. I implemented this class as fast as possible to implementDynamicInvocationclass. It is not a good name for this class. It should be renamed to something more meaningful. Moreover, we need to add more tests for it.
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.objectweb.asm.HandletoAsm()Convert to ASM handle.Iterable<org.xembly.Directive>toXmir()Convert node to XMIR.
-
-
-
Constructor Detail
-
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?- Suppressed Checkstyle violations:
- ParameterNumberCheck (5 lines)
-
-