Class ModulePackageAccess

    • Field Detail

      • name

        protected Name name
        The package name; lazily initialized; defaults to a unspecified, legal Java identifier.
      • modules

        protected org.eclipse.jdt.core.dom.ASTNode.NodeList modules
        The target modules (element type: Name). Defaults to an empty list. (see constructor)
    • Method Detail

      • getNameProperty

        public final ChildPropertyDescriptor getNameProperty()
        Returns structural property descriptor for the "name" property of this node (child type: Name).
        Returns:
        the property descriptor
      • getName

        public Name getName()
        Returns the name of the package.
        Returns:
        the package name node
      • setName

        public void setName​(Name name)
        Sets the name of the package to the given name.
        Parameters:
        name - the new package name
        Throws:
        IllegalArgumentException - if:
        • the node belongs to a different AST
        • the node already has a parent
      • modules

        public List modules()
        Returns the live ordered list of target modules for this directive.
        Returns:
        the live list of target modules (element type: Name)
      • acceptVisitChildren

        protected void acceptVisitChildren​(boolean visitChildren,
                                           ASTVisitor visitor)