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 Details

    • MethodName

      public MethodName(String name)
      Constructor.
      Parameters:
      name - The method name (in either bytecode or EO format)
  • Method Details

    • bytecode

      public String bytecode()
      Convert method name to bytecode format.
      Returns:
      The method name in bytecode format
    • xmir

      public String xmir()
      Convert method name to XMIR/EO format.
      Returns:
      The method name in XMIR/EO format