Interface ReflectClass

    • Method Detail

      • getDeclaredField

        ReflectField getDeclaredField​(java.lang.String name)
      • getDelegate

        ReflectClass getDelegate()
        Returns the ReflectClass instance being delegated to. If there's no delegation it should return this.
        Returns:
        delegate or this
      • getName

        java.lang.String getName()
      • isAbstract

        boolean isAbstract()
      • isArray

        boolean isArray()
      • isAssignableFrom

        boolean isAssignableFrom​(ReflectClass type)
      • isCollection

        boolean isCollection()
      • isInstance

        boolean isInstance​(java.lang.Object obj)
      • isInterface

        boolean isInterface()
      • isPrimitive

        boolean isPrimitive()
      • newInstance

        java.lang.Object newInstance()
      • nullValue

        java.lang.Object nullValue()
      • ensureCanBeInstantiated

        boolean ensureCanBeInstantiated()
        Calling this method may change the internal state of the class, even if a usable constructor has been found on earlier invocations.
        Returns:
        true, if instances of this class can be created, false otherwise
      • isSimple

        boolean isSimple()
        We need this for replication, to find out if a class needs to be traversed or if it simply can be copied across. For now we will simply return the classes that are isPrimitive() and Platform4.isSimple(Class) We can think about letting users add an Immutable annotation.