Class ClassField

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

public final class ClassField extends Object implements AstNode, Typed
Access to a static field.
Since:
0.1
  • Constructor Details

    • ClassField

      public ClassField(String owner, String name, String descriptor)
      Constructor.
      Parameters:
      owner - Owner class name
      name - Field name
      descriptor - Field descriptor
    • ClassField

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

      public ClassField(Attributes attributes)
      Constructor.
      Parameters:
      attributes - Attributes.
  • 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.