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).
        the property descriptor
      • getName

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

        public void setName​(Name name)
        Sets the name of the package to the given name.
        name - the new package name
        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.
        the live list of target modules (element type: Name)
      • acceptVisitChildren

        protected void acceptVisitChildren​(boolean visitChildren,
                                           ASTVisitor visitor)