// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.tools.build.bazel.uiDesigner.compiler;

import org.jetbrains.org.objectweb.asm.Type;
import org.jetbrains.org.objectweb.asm.commons.GeneratorAdapter;

public final class EnumPropertyCodeGenerator extends PropertyCodeGenerator {
  @Override
  public void generatePushValue(final GeneratorAdapter generator, final Object value) {
    final Type enumType = Type.getType(value.getClass());
    generator.getStatic(enumType, value.toString(), enumType);
  }
}
