/external/flatbuffers/android/app/src/main/cpp/generated/ |
D | animal_generated.h | 13 struct Animal; 16 struct Animal FLATBUFFERS_FINAL_CLASS : private flatbuffers::Table { 44 typedef Animal Table; 48 fbb_.AddOffset(Animal::VT_NAME, name); in add_name() 51 fbb_.AddOffset(Animal::VT_SOUND, sound); in add_sound() 54 fbb_.AddElement<uint16_t>(Animal::VT_WEIGHT, weight, 0); in add_weight() 60 flatbuffers::Offset<Animal> Finish() { in Finish() 62 auto o = flatbuffers::Offset<Animal>(end); in Finish() 67 inline flatbuffers::Offset<Animal> CreateAnimal( 79 inline flatbuffers::Offset<Animal> CreateAnimalDirect( [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ |
D | TestTypedDeserialization.java | 27 static abstract class Animal { class in TestTypedDeserialization 30 protected Animal(String n) { name = n; } in Animal() method in TestTypedDeserialization.Animal 34 static class Dog extends Animal 47 static class Cat extends Animal 62 static class Fish extends Animal 73 static class NullAnimal extends Animal 95 public Animal animal; 142 Animal a = m.readValue(asJSONObjectValueString("@classy", Cat.class.getName(), in testSimpleClassAsProperty() 143 "furColor", "tabby", "name", "Garfield"), Animal.class); in testSimpleClassAsProperty() 155 m.addMixIn(Animal.class, TypeWithWrapper.class); in testTypeAsWrapper() [all …]
|
D | TestTypedContainerSerialization.java | 26 static abstract class Animal { class in TestTypedContainerSerialization 29 protected Animal(String n) { in Animal() method in TestTypedContainerSerialization.Animal 35 static class Dog extends Animal { 53 static class Cat extends Animal { 72 Animal animal; 74 public Animal getAnimal() { in getAnimal() 78 public void setAnimal(Animal animal) { in setAnimal() 83 static class Container2<T extends Animal> { 118 Container2<Animal> c2 = new Container2<Animal>(); in testPolymorphicWithContainer() 127 ArrayList<Animal> animals = new ArrayList<Animal>(); in testIssue329() [all …]
|
D | TestTypeNames.java | 22 static class AnimalMap extends LinkedHashMap<String,Animal> { } 69 MAPPER.writeValueAsString(new Animal[] { new Dog("Spot", 3) })); in testSerialization() 71 MAPPER.writeValueAsString(new Animal[] { new MaineCoon("Belzebub", true)})); in testSerialization() 76 Animal[] input = new Animal[] { in testRoundTrip() 83 List<Animal> output = MAPPER.readValue(json, in testRoundTrip() 84 … TypeFactory.defaultInstance().constructCollectionType(ArrayList.class, Animal.class)); in testRoundTrip() 105 Animal in = input.get(name); in testRoundTripMap() 106 Animal out = output.get(name); in testRoundTripMap() 125 class Animal class 135 return name.equals(((Animal) o).name); in equals() [all …]
|
D | TestTypedSerialization.java | 25 static abstract class Animal { class in TestTypedSerialization 28 protected Animal(String n) { name = n; } in Animal() method in TestTypedSerialization.Animal 32 static class Dog extends Animal 44 static class Cat extends Animal 56 public Animal animal; 58 public AnimalWrapper(Animal a) { animal = a; } in AnimalWrapper() 105 m.addMixIn(Animal.class, TypeWithWrapper.class); in testTypeAsWrapper() 123 m.addMixIn(Animal.class, TypeWithArray.class); in testTypeAsArray() 156 Animal[] animals = new Animal[] { new Cat("Miuku", "white"), new Dog("Murre", 9) }; in testInArray()
|
D | TestWithGenerics.java | 20 static abstract class Animal { class in TestWithGenerics 24 static class Dog extends Animal { 34 static class ContainerWithGetter<T extends Animal> { 42 static class ContainerWithField<T extends Animal> { 121 …static class ContainerWithTwoAnimals<U extends Animal,V extends Animal> extends ContainerWithField… 141 String json = MAPPER.writeValueAsString(new ContainerWithGetter<Animal>(dog)); in testWrapperWithGetter() 150 String json = MAPPER.writeValueAsString(new ContainerWithField<Animal>(dog)); in testWrapperWithField() 159 ContainerWithGetter<Animal> c2 = new ContainerWithGetter<Animal>(dog); in testWrapperWithExplicitType() 161 Animal.class)).writeValueAsString(c2); in testWrapperWithExplicitType()
|
D | ExistingPropertyTest.java | 73 static abstract class Animal { class in ExistingPropertyTest 76 protected Animal(String n) { name = n; } in Animal() method in ExistingPropertyTest.Animal 82 static class Dog extends Animal 99 static class Cat extends Animal 116 public Animal animal; 118 public AnimalWrapper(Animal a) { animal = a; } in AnimalWrapper() 213 private static final List<Animal> animalList = Arrays.asList(beelzebub, rover); 333 Animal beelzebubDeserialized = MAPPER.readValue(beelzebubJson, Animal.class); in testSimpleClassAsExistingPropertyDeserializationAnimals() 341 Animal beelzebubExtracted = beelzebubWrapperDeserialized.animal; in testSimpleClassAsExistingPropertyDeserializationAnimals() 349 List<Animal> animalListDeserialized = MAPPER.readValue(animalListJson, List.class); in testSimpleClassAsExistingPropertyDeserializationAnimals() [all …]
|
/external/python/pybind11/tests/ |
D | test_tagbased_polymorphic.cpp | 13 struct Animal struct 18 virtual ~Animal() = default; 33 Animal(const std::string& _name, Kind _kind) in Animal() argument 38 struct Dog : Animal 40 Dog(const std::string& _name, Kind _kind = Kind::Dog) : Animal(_name, _kind) {} in Dog() 58 struct Cat : Animal 60 Cat(const std::string& _name, Kind _kind = Kind::Cat) : Animal(_name, _kind) {} in Cat() 70 std::vector<std::unique_ptr<Animal>> create_zoo() in create_zoo() 72 std::vector<std::unique_ptr<Animal>> ret; in create_zoo() 86 const std::type_info* Animal::type_of_kind(Kind kind) in type_of_kind() [all …]
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/creators/ |
D | TestPolymorphicCreators.java | 14 static class Animal class in TestPolymorphicCreators 19 protected Animal() { } in Animal() method in TestPolymorphicCreators.Animal 26 public static Animal create(@JsonProperty("type") String type) in create() 38 static class Dog extends Animal 45 static class Cat extends Animal 102 …Animal animal = MAPPER.readValue("{ \"type\":\"dog\", \"name\":\"Fido\", \"barkVolume\" : 95.0 }",… in testManualPolymorphicDog() 111 …Animal animal = MAPPER.readValue("{ \"name\" : \"Macavity\", \"type\":\"cat\", \"lives\":18, \"lik… in testManualPolymorphicCatBasic() 123 …Animal animal = MAPPER.readValue("{ \"likesCream\":true, \"name\" : \"Venla\", \"type\":\"cat\" }"… in testManualPolymorphicCatWithReorder()
|
D | TestCreatorWithPolymorphic113.java | 15 public static abstract class Animal { class in TestCreatorWithPolymorphic113 21 public Animal(@JsonProperty(ID) String id) { in Animal() method in TestCreatorWithPolymorphic113.Animal 32 public static class Dog extends Animal { 41 private Animal animal; 44 public AnimalWrapper(@JsonProperty("animal") Animal animal) { in AnimalWrapper() 48 public Animal getAnimal() { in getAnimal()
|
/external/auto/value/userguide/ |
D | generated-builder-example.md | 11 final class AutoValue_Animal extends Animal { 34 return "Animal{" 45 if (o instanceof Animal) { 46 Animal that = (Animal) o; 63 static final class Builder extends Animal.Builder { 71 Animal.Builder setName(String name) { 80 Animal.Builder setNumberOfLegs(int numberOfLegs) { 86 Animal build() {
|
D | builders.md | 20 ### In `Animal.java` <a name="example_java"></a> 26 abstract class Animal { 38 abstract Animal build(); 51 Animal dog = Animal.builder().setName("dog").setNumberOfLegs(4).build(); 57 Animal.builder().setName("dog").setNumberOfLegs(4).build().equals(dog)); 59 Animal.builder().setName("cat").setNumberOfLegs(4).build().equals(dog)); 61 Animal.builder().setName("dog").setNumberOfLegs(2).build().equals(dog)); 63 assertEquals("Animal{name=dog, numberOfLegs=4}", dog.toString()); 69 For the `Animal` example shown above, here is [typical code AutoValue might 75 `Animal`) and not the nested abstract `Builder` class. That ensures that the [all …]
|
D | builders-howto.md | 49 Here is the `Animal` example using `get` prefixes but not `set` prefixes: 53 abstract class Animal { 65 abstract Animal build(); 96 Here is the `Animal` example with the default number of legs being 4: 100 abstract class Animal { 113 abstract Animal build(); 147 public abstract class Animal { 157 public final Animal withName(String name) { 165 public abstract Animal build(); 189 public abstract class Animal { [all …]
|
D | generated-example.md | 11 final class AutoValue_Animal extends Animal { 35 return "Animal{" 45 if (o instanceof Animal) { 46 Animal that = (Animal) o;
|
/external/flatbuffers/android/app/src/main/java/com/flatbuffers/app/ |
D | MainActivity.kt | 7 import com.fbs.app.Animal 19 val tiger = Animal.getRootAsAnimal(ByteBuffer.wrap(createAnimalFromJNI())) in onCreate() 30 private fun createAnimalFromKotlin():Animal { in createAnimalFromJNI() 32 val cowOffset = Animal.createAnimal( in createAnimalFromJNI() 39 return Animal.getRootAsAnimal(fb.dataBuffer()) in createAnimalFromJNI() 42 private fun animalInfo(animal: Animal): String = in animalInfo()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/deser/builder/ |
D | BuilderWithUnwrappedTest.java | 97 @JsonDeserialize(builder = Animal.Builder.class) 98 final static class Animal { class in BuilderWithUnwrappedTest 104 private Animal(Builder builder) { in Animal() method in BuilderWithUnwrappedTest.Animal 152 Animal build() { in build() 153 return new Animal(this); in build() 260 Animal animal = mapper.readValue(json, Animal.class); in testWithUnwrappedAndCreatorMultipleParametersAtBeginning() 273 Animal animal = mapper.readValue(json, Animal.class); in testWithUnwrappedAndCreatorMultipleParametersInMiddle() 286 Animal animal = mapper.readValue(json, Animal.class); in testWithUnwrappedAndCreatorMultipleParametersAtEnd()
|
/external/flatbuffers/android/app/src/main/java/generated/com/fbs/app/ |
D | Animal.kt | 10 class Animal : Table() { class 15 fun __assign(_i: Int, _bb: ByteBuffer) : Animal { in __assign() 40 fun getRootAsAnimal(_bb: ByteBuffer): Animal = getRootAsAnimal(_bb, Animal()) in validateVersion() 41 fun getRootAsAnimal(_bb: ByteBuffer, obj: Animal): Animal { in validateVersion()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/ext/ |
D | ExternalTypeId2588Test.java | 13 interface Animal { } interface in ExternalTypeId2588Test 15 static class Cat implements Animal { } 17 public static class Dog implements Animal { } 27 private final Animal animal; 31 @JsonProperty("animal") Animal animal) { in Pet()
|
D | ExternalTypeIdWithEnum1328Test.java | 15 public interface Animal { } interface in ExternalTypeIdWithEnum1328Test 17 public static class Dog implements Animal { 32 private Animal animal; 38 public AnimalAndType(final AnimalType type, final Animal animal) { in AnimalAndType()
|
/external/guice/extensions/assistedinject/test/com/google/inject/assistedinject/ |
D | ExtensionSpiTest.java | 146 Animal createASimpleCatAsAnimal(String owner); in createASimpleCatAsAnimal() 148 Animal createAStrangeCatAsAnimal(String owner); in createAStrangeCatAsAnimal() 157 interface Animal {} interface in ExtensionSpiTest 159 private static class Cat implements Animal { 164 private static class SimpleCat implements Animal { 169 private static class StrangeCat implements Animal { 177 private static class ExplodingCat implements Animal { 202 .implement(Animal.class, StrangeCat.class) in configure() 203 .implement(Animal.class, named("SimpleCat"), SimpleCat.class) in configure()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/immutable/ |
D | HouseBean.java | 20 private Animal animal; 30 public Animal getAnimal() { in getAnimal() 34 public void setAnimal(Animal animal) { in setAnimal()
|
/external/rust/crates/serde_json/tests/ |
D | test.rs | 68 enum Animal { enum 484 (Animal::Dog, "\"Dog\""), in test_write_enum() 486 Animal::Frog("Henry".to_string(), vec![]), in test_write_enum() 490 Animal::Frog("Henry".to_string(), vec![349]), in test_write_enum() 494 Animal::Frog("Henry".to_string(), vec![349, 102]), in test_write_enum() 498 Animal::Cat { in test_write_enum() 505 Animal::AntHive(vec!["Bob".to_string(), "Stuart".to_string()]), in test_write_enum() 511 (Animal::Dog, "\"Dog\""), in test_write_enum() 513 Animal::Frog("Henry".to_string(), vec![]), in test_write_enum() 522 Animal::Frog("Henry".to_string(), vec![349]), in test_write_enum() [all …]
|
/external/python/pybind11/docs/advanced/ |
D | classes.rst | 13 to override from within Python (we'll focus on the class ``Animal``; ``Dog`` is 19 class Animal { 21 virtual ~Animal() { } 25 class Dog : public Animal { 36 function ``go()`` on an arbitrary ``Animal`` instance. 40 std::string call_go(Animal *animal) { 49 py::class_<Animal>(m, "Animal") 50 .def("go", &Animal::go); 52 py::class_<Dog, Animal>(m, "Dog") 58 However, these bindings are impossible to extend: ``Animal`` is not [all …]
|
/external/clang/test/CodeGenCXX/ |
D | devirtualize-virtual-function-calls.cpp | 88 struct Animal { struct 91 struct Fish : Animal {
|
/external/apache-velocity-engine/velocity-engine-core/src/test/java/org/apache/velocity/test/ |
D | StrictEscapeTestCase.java | 41 context.put("animal", new Animal()); in setUp() 127 public static class Animal class in StrictEscapeTestCase
|