Class EnumInitializer

java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.EnumInitializer

public class EnumInitializer extends SourceElement
An expression to initialize an enum value
  • Field Details

    • name

      public final String name
      The name of the enum value
    • initializers

      public final Expression[] initializers
      The expressions to initialize the enum value fields
  • Constructor Details

    • EnumInitializer

      public EnumInitializer(String name, Expression[] initializers)
      Create a new EnumInitializer
      Parameters:
      name - The name of the enum value
      initializers - The expressions to initialize the enum value fields
    • EnumInitializer

      public EnumInitializer(String name, Expression[] initializers, String filename, int lineNumber)
      Create a new EnumInitializer
      Parameters:
      name - The name of the enum value
      initializers - The expressions to initialize the enum value fields
      filename - The source file where this initializer occurs
      lineNumber - The line number in the source file where this initializer occurs