Class ModuleQualifiedName

  • All Implemented Interfaces:
    IDocElement

    public class ModuleQualifiedName
    extends Name
    AST node for a module qualified name. A module qualified name is defined as a qualified/simple name preceded by a module name, which qualifies it. Expressing it this way means that the module qualifier and the qualified name get their own AST nodes.
     ModuleQualifiedName:
        Name . Name
     
    Since:
    3.24
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Detail

      • MODULE_QUALIFIER_PROPERTY

        public static final ChildPropertyDescriptor MODULE_QUALIFIER_PROPERTY
        The "qualifier" structural property of this node type (child type: Name). *
    • Method Detail

      • propertyDescriptors

        public static List propertyDescriptors​(int apiLevel)
        Returns a list of structural property descriptors for this node type. Clients must not modify the result.
        Parameters:
        apiLevel - the API level; one of the AST.JLS* constants
        Returns:
        a list of property descriptors (element type: StructuralPropertyDescriptor)
      • getModuleQualifier

        public Name getModuleQualifier()
        Returns the qualifier part of this qualified name.
        Returns:
        the qualifier part of this qualified name
      • setModuleQualifier

        public void setModuleQualifier​(Name moduleQualifier)
        Sets the qualifier of this qualified name to the given name.
        Parameters:
        moduleQualifier - the qualifier of this qualified name
        Throws:
        IllegalArgumentException - if:
        • the node belongs to a different AST
        • the node already has a parent
        • a cycle in would be created
      • getName

        public Name getName()
        Returns the name part of this qualified name.
        Returns:
        the name being qualified
      • setName

        public void setName​(Name name)
        Sets the name part of this qualified name to the given simple name.
        Parameters:
        name - the identifier of this qualified name
        Throws:
        IllegalArgumentException - if:
        • the node belongs to a different AST
        • the node already has a parent