Class PkCl

  • Direct Known Subclasses:
    Cl, Pk

    public abstract class PkCl
    extends TreeItem
    Base to package and class tree item.
    • Field Detail

      • cls

        protected java.util.Hashtable cls
        Owns a list of classes.
    • Constructor Detail

      • PkCl

        public PkCl​(TreeItem parent,
                    java.lang.String name)
        Ctor.
        Parameters:
        parent - the parent
        name - the name
    • Method Detail

      • getClass

        public Cl getClass​(java.lang.String name)
        Get a class by name.
        Parameters:
        name - the name
        Returns:
        the class
      • getClassEnum

        public java.util.Enumeration getClassEnum()
        Get an Enumeration of classes directly beneath this PkCl.
        Returns:
        the class enum
      • getAllClassEnum

        public java.util.Enumeration getAllClassEnum()
        Get an Enumeration of all classes (outer and inner) in the tree beneath this PkCl.
        Returns:
        the all class enum
      • addAllClasses

        protected void addAllClasses​(java.util.Vector allClasses)
        List classes and recursively compose a list of all inner classes.
        Parameters:
        allClasses - the all classes
      • getClassCount

        public int getClassCount()
        Return number of classes.
        Returns:
        the class count
      • addClass

        public abstract Cl addClass​(java.lang.Object[] classInfo)
        Add a class to the list of owned classes.
        Parameters:
        classInfo - the class info
        Returns:
        the cl
      • addClass

        public Cl addClass​(boolean isInnerClass,
                           java.lang.Object[] classInfo)
        Add a class to the list of owned classes.
        Parameters:
        isInnerClass - the is inner class
        classInfo - the class info
        Returns:
        the cl
      • addPlaceholderClass

        public abstract Cl addPlaceholderClass​(java.lang.String name)
        Add a placeholder class to our list of owned classes, to be replaced later by the full class.
        Parameters:
        name - the name
        Returns:
        the cl
      • addPlaceholderClass

        public Cl addPlaceholderClass​(boolean isInnerClass,
                                      java.lang.String name)
        Add a placeholder class to our list of owned classes, to be replaced later by the full class.
        Parameters:
        isInnerClass - the is inner class
        name - the name
        Returns:
        the cl
      • generateNames

        public void generateNames()
        Generate unique obfuscated names for this namespace.
      • generateNames

        protected void generateNames​(java.util.Hashtable hash)
        Generate unique obfuscated names for a given namespace.
        Parameters:
        hash - the hash