Home
last modified time | relevance | path

Searched refs:addEnumConstant (Results 1 – 17 of 17) sorted by relevance

/external/kotlinpoet/kotlinpoet/src/test/java/com/squareup/kotlinpoet/
DTypeSpecTest.kt532 .addEnumConstant( in enumWithSubclassing()
538 .addEnumConstant( in enumWithSubclassing()
551 .addEnumConstant( in enumWithSubclassing()
605 .addEnumConstant( in enumsMayDefineAbstractFunctions()
814 .addEnumConstant("ROCK") in onlyEnumsMayHaveEnumConstants()
839 .addEnumConstant( in enumWithMembersButNoConstructorCall()
872 .addEnumConstant( in enumWithAnnotatedValues()
878 .addEnumConstant("PAPER") in enumWithAnnotatedValues()
879 .addEnumConstant("SCISSORS") in enumWithAnnotatedValues()
1122 .addEnumConstant("LEAN_GROUND_BEEF") in enumImplements()
[all …]
DValueTypeSpecTest.kt225 .addEnumConstant( in inlineEnumClass()
231 .addEnumConstant( in inlineEnumClass()
DKotlinPoetTest.kt1198 .addEnumConstant("with.dots") // dots are illegal, so this should fail in noIllegalCharacterInIdentifier()
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java353 .addEnumConstant("ROCK", TypeSpec.anonymousClassBuilder("") in enumWithSubclassing()
356 .addEnumConstant("PAPER", TypeSpec.anonymousClassBuilder("$S", "flat") in enumWithSubclassing()
364 .addEnumConstant("SCISSORS", TypeSpec.anonymousClassBuilder("$S", "peace sign") in enumWithSubclassing()
412 .addEnumConstant("CORN", TypeSpec.anonymousClassBuilder("") in enumsMayDefineAbstractMethods()
450 .addEnumConstant("ROCK") in onlyEnumsMayHaveEnumConstants()
459 .addEnumConstant("SPOCK", TypeSpec.anonymousClassBuilder("") in enumWithMembersButNoConstructorCall()
488 .addEnumConstant("ROCK", TypeSpec.anonymousClassBuilder("") in enumWithAnnotatedValues()
491 .addEnumConstant("PAPER") in enumWithAnnotatedValues()
492 .addEnumConstant("SCISSORS") in enumWithAnnotatedValues()
672 .addEnumConstant("LEAN_GROUND_BEEF") in enumImplements()
[all …]
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DPropertyGenerator.java112 …EnumConstantDeclaration enumConstantDeclaration = observablePropertyEnum.addEnumConstant(constantN… in generateObservableProperty()
142 observablePropertyEnum.addEnumConstant("RANGE"); in after()
143 observablePropertyEnum.addEnumConstant("COMMENTED_NODE"); in after()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/builders/
DEnumDeclarationBuildersTest.java50 testEnum.addEnumConstant("MY_ENUM_CONSTANT"); in testAddEnumConstant()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DEnumDeclaration.java107 public EnumConstantDeclaration addEnumConstant(String name) { in addEnumConstant() method in EnumDeclaration
/external/javapoet/
DREADME.md657 Use `enumBuilder` to create the enum type, and `addEnumConstant()` for each value:
662 .addEnumConstant("ROCK")
663 .addEnumConstant("SCISSORS")
664 .addEnumConstant("PAPER")
686 .addEnumConstant("ROCK", TypeSpec.anonymousClassBuilder("$S", "fist")
694 .addEnumConstant("SCISSORS", TypeSpec.anonymousClassBuilder("$S", "peace")
696 .addEnumConstant("PAPER", TypeSpec.anonymousClassBuilder("$S", "flat")
/external/javapoet/src/main/java/com/squareup/javapoet/
DTypeSpec.java580 public Builder addEnumConstant(String name) { in addEnumConstant() method in TypeSpec.Builder
581 return addEnumConstant(name, anonymousClassBuilder("").build()); in addEnumConstant()
584 public Builder addEnumConstant(String name, TypeSpec typeSpec) { in addEnumConstant() method in TypeSpec.Builder
/external/kotlinpoet/docs/
Dindex.md1119 Use `enumBuilder` to create the enum type, and `addEnumConstant()` for each value:
1123 .addEnumConstant("ROCK")
1124 .addEnumConstant("SCISSORS")
1125 .addEnumConstant("PAPER")
1151 .addEnumConstant(
1163 .addEnumConstant(
1168 .addEnumConstant(
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DEnumDeclaration.java146 public EnumConstantDeclaration addEnumConstant(String name) { in addEnumConstant() method in EnumDeclaration
/external/doclava/src/com/google/doclava/apicheck/
DApiFile.java452 cl.addEnumConstant(field); in parseField()
/external/kotlinpoet/interop/kotlinx-metadata/src/main/kotlin/com/squareup/kotlinpoet/metadata/specs/
DKotlinPoetMetadataSpecs.kt312 builder.addEnumConstant(entryName, typeSpec) in KmClass()
/external/kotlinpoet/kotlinpoet/src/main/java/com/squareup/kotlinpoet/
DTypeSpec.kt662 @JvmOverloads public fun addEnumConstant( in <lambda>() method
/external/doclava/src/com/google/doclava/
DInfoBuilder.java1235 containingClass.addEnumConstant(buildEnumConstant(tmp, containingClass)); in buildEnumBody()
DClassInfo.java2079 public void addEnumConstant(FieldInfo field) { in addEnumConstant() method in ClassInfo
/external/kotlinpoet/kotlinpoet/api/
Dkotlinpoet.api954 public final fun addEnumConstant (Ljava/lang/String;)Lcom/squareup/kotlinpoet/TypeSpec$Builder;
955 …public final fun addEnumConstant (Ljava/lang/String;Lcom/squareup/kotlinpoet/TypeSpec;)Lcom/square…
956 …public static synthetic fun addEnumConstant$default (Lcom/squareup/kotlinpoet/TypeSpec$Builder;Lja…