Class LocalVariableInfo

java.lang.Object
org.ek9lang.compiler.backend.jvm.support.LocalVariableInfo

public final class LocalVariableInfo extends Object
Metadata for a local variable needed for LocalVariableTable generation.

Tracks the variable name, type descriptor, scope, and JVM slot for generating debug information that enables jdb's 'locals' command.

  • Constructor Details

    • LocalVariableInfo

      public LocalVariableInfo(String name, String typeDescriptor, String scopeId)
      Create local variable info.
      Parameters:
      name - Variable name
      typeDescriptor - JVM type descriptor
      scopeId - Scope identifier (may be null for method parameters)
  • Method Details

    • getName

      public String getName()
    • getTypeDescriptor

      public String getTypeDescriptor()
    • getScopeId

      public String getScopeId()
    • getSlot

      public int getSlot()
    • setSlot

      public void setSlot(int slot)