Class ClassDescriptor

    • Field Detail

      • ASCENDING_COMPARATOR

        public static final java.util.Comparator<ClassDescriptor> ASCENDING_COMPARATOR
      • guid

        protected java.lang.String guid
        Unique identifier of this class.
    • Constructor Detail

      • ClassDescriptor

        protected ClassDescriptor​(java.lang.String name,
                                  java.lang.String title)
      • ClassDescriptor

        protected ClassDescriptor()
      • ClassDescriptor

        protected ClassDescriptor​(java.lang.Class<?> cls)
      • ClassDescriptor

        protected ClassDescriptor​(java.lang.Class<?> cls,
                                  ClassAnnotator annotator)
    • Method Detail

      • depSort

        public static java.util.List<ClassDescriptor> depSort​(ClassDescriptor[] cds)
        Sorts the supplied array of class descriptors so that all dependent classes precede the classes that depend on them. An attempt is made to keep the classes sorted in alphabetical order, as long as it does not contradict to quasi-ordering by dependency. This algorithm is deterministic. It will add missing dependencies to the output list.
        Parameters:
        cds - An array of classes to sort/augment.
        Returns:
        A sorted/augmented list.
      • createGuid

        public static java.lang.String createGuid()
      • getClassNameWithAssembly

        public static java.lang.String getClassNameWithAssembly​(java.lang.Class<?> cls)
      • getGuid

        public java.lang.String getGuid()
      • isDotNet

        public static boolean isDotNet​(java.lang.String className)
      • newInstanceNoX

        public java.lang.Object newInstanceNoX​(TypeLoader loader)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • visitDependencies

        public boolean visitDependencies​(deltix.util.collections.Visitor<ClassDescriptor> out)
      • extractGuids

        public static java.lang.String[] extractGuids​(ClassDescriptor[] cds)
      • writeReference

        public void writeReference​(java.io.DataOutputStream out)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(java.io.DataOutputStream out,
                            int serial)
                     throws java.io.IOException
        Overrides:
        writeTo in class NamedDescriptor
        Throws:
        java.io.IOException
      • readFields

        protected final void readFields​(java.io.DataInputStream in,
                                        int serial)
                                 throws java.io.IOException
        Overrides:
        readFields in class NamedDescriptor
        Throws:
        java.io.IOException
      • readFields

        protected void readFields​(java.io.DataInputStream in,
                                  ClassDescriptor.TypeResolver resolver,
                                  int serial)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • readFieldsWithoutGuid

        protected void readFieldsWithoutGuid​(java.io.DataInputStream in,
                                             ClassDescriptor.TypeResolver resolver,
                                             int serial)
                                      throws java.io.IOException
        Throws:
        java.io.IOException