Class AbstractClassUnit

  • All Implemented Interfaces:
    CodeElement

    public class AbstractClassUnit
    extends ClassUnit
    A compilation unit of the program to analyze. A compilation unit is a Unit that also defines instance members, that can be inherited by subunits.
    • Constructor Detail

      • AbstractClassUnit

        public AbstractClassUnit​(CodeLocation location,
                                 Program program,
                                 java.lang.String name,
                                 boolean sealed)
        Builds a concrete compilation unit, defined at the given program point.
        Parameters:
        location - the location where the unit is define within the source file
        program - the program where this unit is defined
        name - the name of the unit
        sealed - whether or not this unit is sealed, meaning that it cannot be used as super unit of other compilation units
    • Method Detail

      • canBeInstantiated

        public boolean canBeInstantiated()
        Description copied from class: Unit
        Yields true if this unit can be instantiated, false otherwise (e.g., interfaces, abstract classes).
        Overrides:
        canBeInstantiated in class ClassUnit
        Returns:
        true if this unit can be instantiated, false otherwise