package io.vertx.codegen.type;

import io.vertx.codegen.ModuleInfo;

import java.util.Collections;
import java.util.List;

Author:Julien Viet
/** * @author <a href="mailto:julien@julienviet.com">Julien Viet</a> */
public class EnumTypeInfo extends ClassTypeInfo { final List<String> values; final boolean gen; public EnumTypeInfo(String fqcn, boolean gen, List<String> values, ModuleInfo module, boolean nullable) { super(ClassKind.ENUM, fqcn, module, nullable, Collections.emptyList(), null); this.gen = gen; this.values = values; }
Returns:true if the type is a generated type
/** * @return true if the type is a generated type */
public boolean isGen() { return gen; }
Returns:the enum possible values
/** * @return the enum possible values */
public List<String> getValues() { return values; } }