- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 16 for unpackState (0.43 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/IsolatedImmutableManagedValue.java
} @Override public ValueSnapshot asSnapshot() { return new ImmutableManagedValueSnapshot(getValue().publicType().getName(), (String) getValue().unpackState()); } @Override public void appendToHasher(Hasher hasher) { asSnapshot().appendToHasher(hasher); } @Nullable @Override public <S> S coerce(Class<S> type) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 2K bytes - Viewed (0) -
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/test/groovy/org/gradle/api/internal/model/NamedObjectInstantiatorTest.groovy
expect: def n1 = factory.named(Named, "a") n1 instanceof Managed n1.publicType() == Named n1.isImmutable() def state = n1.unpackState() state == "a" def n2 = factory.fromState(Named, state) n2.is(n1) } def "creates instance of subtype of Named"() { expect:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 8.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/state/Managed.java
* * <p>Note that currently the state should reference only JVM and core Gradle types when {@link #isImmutable()} returns true.</p> */ @Nullable Object unpackState(); /** * Is this object graph immutable? Returns false if this object may be mutable, in which case the state should be unpacked and isolated. */ boolean isImmutable(); /**
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K 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/dependency-management-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/dm/AttributeContainerCodecs.kt
} private suspend fun WriteContext.writeManaged(value: Managed) { writeSmallInt(value.factoryId) writeClass(value.publicType()) write(value.unpackState()) } private suspend fun ReadContext.readManaged(managedFactories: ManagedFactoryRegistry): Any { val factoryId = readSmallInt() val type = readClass() val state = read()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 04 18:56:44 UTC 2024 - 4.3K 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/DefaultValueSnapshotter.java
} @Override public ValueSnapshot managedImmutableValue(Managed managed) { return new ImmutableManagedValueSnapshot(managed.publicType().getName(), (String) managed.unpackState()); } @Override public ValueSnapshot managedValue(Managed value, ValueSnapshot state) { return new ManagedValueSnapshot(value.publicType().getName(), state); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 6.5K 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/main/java/org/gradle/api/internal/provider/DefaultProperty.java
init(getDefaultValue()); } @Override protected ProviderInternal<? extends T> getDefaultValue() { return Providers.notDefined(); } @Override public Object unpackState() { return getProvider(); } @Override public Class<?> publicType() { return Property.class; } @Override public int getFactoryId() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 29 05:33:15 UTC 2024 - 6.1K bytes - Viewed (0)