Searched refs:enumBuilder (Results 1 – 3 of 3) sorted by relevance
351 TypeSpec roshambo = TypeSpec.enumBuilder("Roshambo") in enumWithSubclassing()410 TypeSpec roshambo = TypeSpec.enumBuilder("Tortilla") in enumsMayDefineAbstractMethods()440 TypeSpec.enumBuilder("Roshambo") in enumConstantsRequired()458 TypeSpec roshambo = TypeSpec.enumBuilder("Roshambo") in enumWithMembersButNoConstructorCall()486 TypeSpec roshambo = TypeSpec.enumBuilder("Roshambo") in enumWithAnnotatedValues()669 TypeSpec typeSpec = TypeSpec.enumBuilder("Food") in enumImplements()716 .addType(TypeSpec.enumBuilder(topping.simpleName()) in nestedClasses()726 .addType(TypeSpec.enumBuilder(sauce.simpleName()) in nestedClasses()1398 .addType(TypeSpec.enumBuilder("Topping") in defaultModifiersForMemberInterfacesAndEnums()2157 TypeSpec.enumBuilder("E").superclass(ClassName.get(Object.class)); in superClassOnlyValidForClasses()[all …]
143 public static Builder enumBuilder(String name) { in enumBuilder() method in TypeSpec147 public static Builder enumBuilder(ClassName className) { in enumBuilder() method in TypeSpec148 return enumBuilder(checkNotNull(className, "className == null").simpleName()); in enumBuilder()
657 Use `enumBuilder` to create the enum type, and `addEnumConstant()` for each value:660 TypeSpec helloWorld = TypeSpec.enumBuilder("Roshambo")684 TypeSpec helloWorld = TypeSpec.enumBuilder("Roshambo")