Class TreeItem

  • Direct Known Subclasses:
    MdFd, PkCl

    public class TreeItem
    extends java.lang.Object
    Item that forms a tree structure and can represent a package level, a class, or a method or field.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int access
      The Access.
      protected ClassTree classTree
      The Class tree.
      protected boolean isSynthetic
      The Is synthetic.
      protected TreeItem parent
      The Parent.
      protected java.lang.String sep
      The Sep.
    • Constructor Summary

      Constructors 
      Constructor Description
      TreeItem​(TreeItem parent, java.lang.String name)
      Ctor.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFullInName()
      Construct and return the full original name of the entry.
      java.lang.String getFullOutName()
      Construct and return the full obfuscated name of the entry.
      java.lang.String getInName()
      Return the original name of the entry.
      int getModifiers()
      Return the modifiers.
      java.lang.String getObfName()
      Return the obfuscated name of the entry.
      java.lang.String getOutName()
      Return the output name of the entry, obfuscated or original.
      TreeItem getParent()
      Get the parent in the tree.
      boolean isFixed()
      Has the entry been fixed already?
      boolean isFromScript()
      Is this constrained by a user script line?
      boolean isFromScriptMap()
      Is this constrained by a map script line?
      static boolean isMatch​(java.lang.String pattern, java.lang.String string)
      Do a wildcard String match.
      static boolean isNRMatch​(java.lang.String pattern, java.lang.String string)
      Do a non-package-recursive wildcard String match.
      boolean isSynthetic()
      Is a method or field Synthetic?
      void setFromScript()
      Signal that this constraint came from a user script line.
      void setFromScriptMap()
      Signal that this constraint came from a map script line.
      void setOutName​(java.lang.String outName)
      Set the output name of the entry.
      void setParent​(TreeItem parent)
      Set the parent in the tree -- used when stitching in a Cl to replace a PlaceholderCl.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • isSynthetic

        protected boolean isSynthetic
        The Is synthetic.
      • access

        protected int access
        The Access.
      • classTree

        protected ClassTree classTree
        The Class tree.
      • parent

        protected TreeItem parent
        The Parent.
      • sep

        protected java.lang.String sep
        The Sep.
    • Constructor Detail

      • TreeItem

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

      • isNRMatch

        public static boolean isNRMatch​(java.lang.String pattern,
                                        java.lang.String string)
        Do a non-package-recursive wildcard String match.
        Parameters:
        pattern - the pattern
        string - the string
        Returns:
        the boolean
      • isMatch

        public static boolean isMatch​(java.lang.String pattern,
                                      java.lang.String string)
        Do a wildcard String match.
        Parameters:
        pattern - the pattern
        string - the string
        Returns:
        the boolean
      • getModifiers

        public int getModifiers()
        Return the modifiers.
        Returns:
        the modifiers
      • getInName

        public java.lang.String getInName()
        Return the original name of the entry.
        Returns:
        the in name
      • setOutName

        public void setOutName​(java.lang.String outName)
        Set the output name of the entry.
        Parameters:
        outName - the out name
      • getOutName

        public java.lang.String getOutName()
        Return the output name of the entry, obfuscated or original.
        Returns:
        the out name
      • getObfName

        public java.lang.String getObfName()
        Return the obfuscated name of the entry.
        Returns:
        the obf name
      • setFromScript

        public void setFromScript()
        Signal that this constraint came from a user script line.
      • setFromScriptMap

        public void setFromScriptMap()
        Signal that this constraint came from a map script line.
      • isFixed

        public boolean isFixed()
        Has the entry been fixed already?
        Returns:
        the boolean
      • isFromScript

        public boolean isFromScript()
        Is this constrained by a user script line?
        Returns:
        the boolean
      • isFromScriptMap

        public boolean isFromScriptMap()
        Is this constrained by a map script line?
        Returns:
        the boolean
      • isSynthetic

        public boolean isSynthetic()
        Is a method or field Synthetic?
        Returns:
        the boolean
      • setParent

        public void setParent​(TreeItem parent)
        Set the parent in the tree -- used when stitching in a Cl to replace a PlaceholderCl.
        Parameters:
        parent - the parent
      • getParent

        public TreeItem getParent()
        Get the parent in the tree.
        Returns:
        the parent
      • getFullInName

        public java.lang.String getFullInName()
        Construct and return the full original name of the entry.
        Returns:
        the full in name
      • getFullOutName

        public java.lang.String getFullOutName()
        Construct and return the full obfuscated name of the entry.
        Returns:
        the full out name