Class NormalClassDeclaration

    • Field Detail

      • extendedType

        private Type extendedType
      • implementedList

        private java.util.List<Type> implementedList
    • Constructor Detail

      • NormalClassDeclaration

        public NormalClassDeclaration​(Scanner s,
                                      int offs,
                                      java.lang.String className)
    • Method Detail

      • addImplemented

        public void addImplemented​(Type implemented)
        Adds an implemented type to this class declaration.
        Parameters:
        implemented - The implemented type.
      • getExtendedType

        public Type getExtendedType()
      • getImplementedCount

        public int getImplementedCount()
      • getImplementedIterator

        public java.util.Iterator<Type> getImplementedIterator()
      • getMethodContainingOffset

        public Method getMethodContainingOffset​(int offs)
        Gets the method in this class that contains a given offset.
        Parameters:
        offs - The offset.
        Returns:
        The method containing the offset, or null if no method in this class contains the offset.
      • getTypeParameters

        public java.util.List<TypeParameter> getTypeParameters()
      • getTypeString

        public java.lang.String getTypeString()
        Description copied from interface: TypeDeclaration
        Returns the type of this type declaration, as a string.
        Returns:
        The type.
      • isTypeCompatible

        private boolean isTypeCompatible​(Type type,
                                         java.lang.String typeName)
        Returns whether a Type and a type name are type compatible. This method currently is a sham!
        Parameters:
        type - The type to check against.
        typeName - The type name to also check.
        Returns:
        Whether they are type-compatible.
      • setExtendedType

        public void setExtendedType​(Type type)
      • setTypeParameters

        public void setTypeParameters​(java.util.List<TypeParameter> typeParams)