- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for unpackState (0.2 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy
!bean.isImmutable() def state = bean.unpackState() state.length == 1 state[0] == null def copy = managedFactoryRegistry.lookup(bean.getFactoryId()).fromState(BeanWithAbstractProperty, state) !copy.is(bean) copy.name == null bean.setName("name") copy.name == null def state2 = bean.unpackState() state2.length == 1 state2[0] == "name"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 16.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/model/NamedObjectInstantiator.java
_GETFIELD(generatedTypeName, NAME_FIELD, STRING); _ARETURN(); }}); // // Add `Object unpackState() { return name }` // publicMethod("unpackState", RETURN_OBJECT, methodVisitor -> new MethodVisitorScope(methodVisitor) {{ _ALOAD(0); _GETFIELD(generatedTypeName, NAME_FIELD, STRING);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 11.8K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/DefaultFilePropertyFactory.java
return true; } @Override public Class<?> publicType() { return Directory.class; } @Override public Object unpackState() { return getAsFile(); } @Override public int getFactoryId() { return ManagedFactories.DirectoryManagedFactory.FACTORY_ID; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:53:33 UTC 2024 - 15.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractValueProcessor.java
if (managed.isImmutable()) { return visitor.managedImmutableValue(managed); } else { // May (or may not) be mutable - unpack the state T state = processValue(managed.unpackState(), visitor); return visitor.managedValue(managed, state); } } private <T> T processMap(Map<?, ?> map, ValueVisitor<T> visitor) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 05 19:08:37 UTC 2024 - 10K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/ProviderSpec.groovy
given: def provider = providerWithNoValue() expect: provider instanceof Managed provider.isImmutable() == noValueProviderImmutable def state = provider.unpackState() def copy = managedFactory().fromState(provider.publicType(), state) !copy.is(provider) || noValueProviderImmutable !copy.present copy.getOrNull() == null }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 26 06:53:07 UTC 2023 - 19.2K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java
encoder.writeInt(value.getValue().getFactoryId()); encoder.writeString(value.getValue().publicType().getName()); writeState(encoder, value.getValue().unpackState()); } @Override protected IsolatedImmutableManagedValue deserialize(Decoder decoder) throws Exception { int factoryId = decoder.readInt();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 26.9K bytes - Viewed (0) -
platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollection.java
return false; } @Override public Class<?> publicType() { return ConfigurableFileCollection.class; } @Override public Object unpackState() { return getFiles(); } @Override public void finalizeValue() { if (valueState.shouldFinalize(this::displayNameForThisCollection, null)) { finalizeNow();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 16:06:55 UTC 2024 - 30.2K bytes - Viewed (0)