Class CheckCast

  • All Implemented Interfaces:
    AstNode, Typed, Xmir

    public final class CheckCast
    extends Object
    implements AstNode, Typed
    Check if the value is of the given type.
    Since:
    0.5
    • Constructor Detail

      • CheckCast

        public CheckCast​(org.eolang.jeo.representation.xmir.XmlNode node,
                         Parser parser)
        Constructor.
        Parameters:
        node - XMIR node to parse.
        parser - Parser to use.
      • CheckCast

        public CheckCast​(org.objectweb.asm.Type type,
                         AstNode value)
        Constructor.
        Parameters:
        type - Type to check.
        value - Value to cast.
    • 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.