Class 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 Detail

      • MethodName

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

      • 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