Package org.eolang.jeo.representation
Class MethodName
- java.lang.Object
-
- org.eolang.jeo.representation.MethodName
-
public final class MethodName extends Object
Method name converter between Java bytecode and EO representations.This class handles the conversion of Java method names, particularly special cases like constructors and static initializers. Constructor names are represented as '<init>' in bytecode which isn't allowed in EO, so they need to be converted to valid EO names and back.
- Since:
- 0.6.0
-
-
Constructor Summary
Constructors Constructor Description MethodName(String name)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
bytecode()
Convert method name to bytecode format.String
xmir()
Convert method name to XMIR/EO format.
-
-
-
Constructor Detail
-
MethodName
public MethodName(String name)
Constructor.- Parameters:
name
- The method name (in either bytecode or EO format)
-
-