Class Literal

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class Literal
    extends Object
    implements AstNode, Typed
    Literal output.
    Since:
    0.1
    Suppressed Checkstyle violations:
    CyclomaticComplexityCheck (500 lines)
    • Constructor Detail

      • Literal

        public Literal()
        Constructor. Null literal.
      • Literal

        public Literal​(char value)
        Constructor.
        Parameters:
        value - Char literal value.
      • Literal

        public Literal​(boolean value)
        Constructor.
        Parameters:
        value - Boolean literal value.
      • Literal

        public Literal​(byte value)
        Constructor.
        Parameters:
        value - Byte literal value.
      • Literal

        public Literal​(short value)
        Constructor.
        Parameters:
        value - Short literal value.
      • Literal

        public Literal​(int value)
        Constructor.
        Parameters:
        value - Integer literal value.
      • Literal

        public Literal​(long value)
        Constructor.
        Parameters:
        value - Long literal value.
      • Literal

        public Literal​(float value)
        Constructor.
        Parameters:
        value - Float literal value.
      • Literal

        public Literal​(double value)
        Constructor.
        Parameters:
        value - Double literal value.
      • Literal

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

        public Literal​(Object value)
        Constructor.
        Parameters:
        value - Literal value.
      • Literal

        public Literal​(Object value,
                       org.objectweb.asm.Type type)
        Constructor.
        Parameters:
        value - Literal value.
        type - Literal type.
    • Method Detail

      • 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.
      • opcodes

        public List<AstNode> opcodes()
        Description copied from interface: AstNode
        Bytecode instructions.
        Specified by:
        opcodes in interface AstNode
        Returns:
        List of opcodes.
      • type

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

        public Object value()