Class InstanceField

  • All Implemented Interfaces:
    AstNode

    public final class InstanceField
    extends Object
    implements AstNode
    Access to a field.
    Since:
    0.1
    • Constructor Detail

      • InstanceField

        public InstanceField​(AstNode source,
                             String name)
        Constructor.
        Parameters:
        source - Object reference from which the field is accessed
        name - Field name
      • InstanceField

        public InstanceField​(AstNode source,
                             String name,
                             String descriptor)
        Constructor.
        Parameters:
        source - Object reference from which the field is accessed
        name - Field name
        descriptor - Field descriptor
      • InstanceField

        public InstanceField​(AstNode source,
                             Attributes attributes)
        Constructor.
        Parameters:
        source - Object reference from which the field is accessed
        attributes - Field attributes
    • Method Detail

      • print

        public String print()
        Description copied from interface: AstNode
        Print ast node and all it's children.
        Specified by:
        print in interface AstNode
        Returns:
        String output.
      • toXmir

        public Iterable<org.xembly.Directive> toXmir()
        Description copied from interface: AstNode
        Convert node to XMIR.
        Specified by:
        toXmir in interface AstNode
        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.