Class FieldRetrieval

java.lang.Object
org.eolang.opeo.ast.FieldRetrieval
All Implemented Interfaces:
AstNode, Typed, Xmir

public final class FieldRetrieval extends Object implements AstNode, Typed
Field retrieval.
Since:
0.2
  • Constructor Details

    • FieldRetrieval

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

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

      public FieldRetrieval(AstNode instance, Attributes attributes)
      Constructor.
      Parameters:
      instance - Object reference from which the field is accessed
      attributes - Field attributes
    • FieldRetrieval

      public FieldRetrieval(Field field)
      Constructor.
      Parameters:
      field - The field to access
  • Method Details

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