Class ASTParameter

java.lang.Object
io.github.protasm.jvmud.compiler.parser.ast.ASTNode
io.github.protasm.jvmud.compiler.parser.ast.ASTParameter

public final class ASTParameter extends ASTNode
  • Constructor Details

    • ASTParameter

      public ASTParameter(int line, Symbol symbol)
    • ASTParameter

      public ASTParameter(int line, Symbol symbol, boolean varargs)
      Creates a parsed LPC parameter.

      The varargs flag records LDMud-style parameter-local optional/rest spelling such as varargs mixed *data. JVMud currently preserves that source shape for compatibility analysis; call dispatch still uses the declared parameter type and arity.

      Parameters:
      line - source line
      symbol - declared parameter symbol
      varargs - whether the parameter was prefixed with varargs
  • Method Details

    • symbol

      public Symbol symbol()
    • isVarargs

      public boolean isVarargs()
    • descriptor

      public String descriptor()