Class ClassName

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class ClassName
    extends Object
    implements AstNode, Typed
    Class constant.
    Since:
    0.2
    To do:
    #229:30min Do we need ClassName node? It seems that we don't need this node, because it is used only in the single place in XmirParser. Most likely we can remove this node and use something already existing in the project. If we decide to keep this node, we need to add a test for it.
    • Constructor Detail

      • ClassName

        public ClassName​(org.eolang.jeo.representation.xmir.XmlNode node)
        Constructor.
        Parameters:
        node - XML node
      • ClassName

        public ClassName​(String name)
        Constructor.
        Parameters:
        name - Class name
    • Method Detail

      • opcodes

        public List<AstNode> opcodes()
        Description copied from interface: AstNode
        Bytecode instructions.
        Specified by:
        opcodes in interface AstNode
        Returns:
        List of opcodes.
      • 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.
      • type

        public org.objectweb.asm.Type type()
        Description copied from interface: Typed
        Node type.
        Specified by:
        type in interface Typed
        Returns:
        Type.