Class TypeData

    • Constructor Detail

      • TypeData

        protected TypeData()
    • Method Detail

      • make

        public static TypeData[] make​(int size)
      • setType

        private static void setType​(TypeData td,
                                    java.lang.String className,
                                    ClassPool cp)
                             throws BadBytecode
        Sets the type name of this object type. If the given type name is a subclass of the current type name, then the given name becomes the name of this object type.
        Parameters:
        className - dot-separated name unless the type is an array type.
        Throws:
        BadBytecode
      • getTypeTag

        public abstract int getTypeTag()
      • getTypeData

        public abstract int getTypeData​(ConstPool cp)
      • isBasicType

        public abstract TypeData.BasicType isBasicType()
        If the type is a basic type, this method normalizes the type and returns a BasicType object. Otherwise, it returns null.
      • is2WordType

        public abstract boolean is2WordType()
      • isNullType

        public boolean isNullType()
        Returns false if getName() returns a valid type name.
      • isUninit

        public boolean isUninit()
      • eq

        public abstract boolean eq​(TypeData d)
      • getName

        public abstract java.lang.String getName()
      • dfs

        public int dfs​(java.util.ArrayList order,
                       int index,
                       ClassPool cp)
                throws NotFoundException
        Depth-first search by Tarjan's algorithm
        Parameters:
        order - a node stack in the order in which nodes are visited.
        index - the index used by the algorithm.
        Throws:
        NotFoundException
      • toTypeVar

        protected TypeData.TypeVar toTypeVar​(int dim)
        Returns this if it is a TypeVar or a TypeVar that this type depends on. Otherwise, this method returns null. It is used by dfs().
        Parameters:
        dim - dimension
      • constructorCalled

        public void constructorCalled​(int offset)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString2

        abstract java.lang.String toString2​(java.util.HashSet set)