Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for checkcast (0.34 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/bytecode/AsmExtensions.kt

        visitFieldInsn(Opcodes.PUTFIELD, owner.value, name, desc)
    }
    
    
    internal
    fun MethodVisitor.CHECKCAST(type: KClass<*>) {
        CHECKCAST(type.internalName)
    }
    
    
    internal
    fun MethodVisitor.CHECKCAST(type: InternalName) {
        visitTypeInsn(Opcodes.CHECKCAST, type)
    }
    
    
    internal
    fun MethodVisitor.ACONST_NULL() {
        visitInsn(Opcodes.ACONST_NULL)
    }
    
    
    internal
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/GenerateVersionCatalogAccessors.kt

    ) {
        publicStaticMethod(signature) {
            ALOAD(0)
            CHECKCAST(receiverInternalTypeInternalName)
            LDC(extensionSpec.name)
            INVOKEVIRTUAL(receiverInternalTypeInternalName, internalMethodName, receiverVersionCatalogExtensionMethodDesc)
            CHECKCAST(extensionSpec.returnType.internalName)
            ARETURN()
        }
    }
    
    
    private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:28 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/testFixtures/kotlin/org/gradle/kotlin/dsl/fixtures/bytecode/AsmExtensions.kt

    internal
    fun MethodVisitor.PUTFIELD(owner: InternalName, name: String, desc: String) {
        visitFieldInsn(Opcodes.PUTFIELD, owner.value, name, desc)
    }
    
    
    internal
    fun MethodVisitor.CHECKCAST(type: InternalName) {
        visitTypeInsn(Opcodes.CHECKCAST, type)
    }
    
    
    internal
    fun MethodVisitor.ACONST_NULL() {
        visitInsn(Opcodes.ACONST_NULL)
    }
    
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorFragments.kt

    import org.gradle.kotlin.dsl.internal.sharedruntime.codegen.primitiveTypeStrings
    import org.gradle.kotlin.dsl.support.bytecode.ALOAD
    import org.gradle.kotlin.dsl.support.bytecode.ARETURN
    import org.gradle.kotlin.dsl.support.bytecode.CHECKCAST
    import org.gradle.kotlin.dsl.support.bytecode.INVOKEINTERFACE
    import org.gradle.kotlin.dsl.support.bytecode.INVOKESTATIC
    import org.gradle.kotlin.dsl.support.bytecode.InternalName
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  7. platforms/core-runtime/base-asm/src/main/java/org/gradle/model/internal/asm/MethodVisitorScope.java

        }
    
        public void _NEW(Type type) {
            super.visitTypeInsn(NEW, type.getInternalName());
        }
    
        public void _CHECKCAST(Type type) {
            _CHECKCAST(type.getInternalName());
        }
    
        private void _CHECKCAST(String internalName) {
            super.visitTypeInsn(CHECKCAST, internalName);
        }
    
        public void _INSTANCEOF(Type type) {
            super.visitTypeInsn(INSTANCEOF, type.getInternalName());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:29 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

    import static org.objectweb.asm.Opcodes.ALOAD;
    import static org.objectweb.asm.Opcodes.ARETURN;
    import static org.objectweb.asm.Opcodes.ASTORE;
    import static org.objectweb.asm.Opcodes.ATHROW;
    import static org.objectweb.asm.Opcodes.CHECKCAST;
    import static org.objectweb.asm.Opcodes.DCONST_0;
    import static org.objectweb.asm.Opcodes.DUP;
    import static org.objectweb.asm.Opcodes.FCONST_0;
    import static org.objectweb.asm.Opcodes.GETFIELD;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        if (!allowNulls) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        if (!allowNulls) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top