# Uses of Class
org.eclipse.jdt.core.dom.Name

Packages that use Name
Package
Description
org.eclipse.jdt.core.dom
The Java DOM/AST is the set of classes that model the source code of a Java program as a structured document.

## Uses of Name in org.eclipse.jdt.core.dom

Subclasses of Name in org.eclipse.jdt.core.dom
Modifier and Type
Class
Description
`class`
`ModuleQualifiedName`
AST node for a module qualified name.
`class`
`QualifiedName`
AST node for a qualified name.
`class`
`SimpleName`
AST node for a simple name.
Fields in org.eclipse.jdt.core.dom declared as Name
Modifier and Type
Field
Description
`protected Name`
ModulePackageAccess.`name`
The package name; lazily initialized; defaults to a unspecified, legal Java identifier.
Methods in org.eclipse.jdt.core.dom that return Name
Modifier and Type
Method
Description
`Name`
ModuleQualifiedName.`getModuleQualifier()`
Returns the qualifier part of this qualified name.
`Name`
ClassInstanceCreation.`getName()`
Deprecated.
In the JLS3 API, this method is replaced by `ClassInstanceCreation.getType()`, which returns a `Type` instead of a `Name`.
`Name`
ImportDeclaration.`getName()`
Returns the name imported by this declaration.
`Name`
ModuleDeclaration.`getName()`
Returns the name of this module declaration.
`Name`
ModulePackageAccess.`getName()`
Returns the name of the package.
`Name`
ModuleQualifiedName.`getName()`
Returns the name part of this qualified name.
`Name`
PackageDeclaration.`getName()`
Returns the package name of this package declaration.
`Name`
ProvidesDirective.`getName()`
Returns the name of the service in this directive.
`Name`
RequiresDirective.`getName()`
Returns the module name referenced by this declaration.
`Name`
SimpleType.`getName()`
Returns the name of this simple type.
`Name`
UsesDirective.`getName()`
Returns the name of the service in this directive.
`Name`
MemberRef.`getQualifier()`
Returns the qualifier of this member reference, or `null` if there is none.
`Name`
MethodRef.`getQualifier()`
Returns the qualifier of this method reference, or `null` if there is none.
`Name`
NameQualifiedType.`getQualifier()`
Returns the qualifier of this name-qualified type.
`Name`
QualifiedName.`getQualifier()`
Returns the qualifier part of this qualified name.
`Name`
SuperFieldAccess.`getQualifier()`
Returns the qualifier of this "super" field access expression, or `null` if there is none.
`Name`
SuperMethodInvocation.`getQualifier()`
Returns the qualifier of this "super" method invocation expression, or `null` if there is none.
`Name`
SuperMethodReference.`getQualifier()`
Returns the qualifier of this "super" method reference, or `null` if there is none.
`Name`
ThisExpression.`getQualifier()`
Returns the qualifier of this "this" expression, or `null` if there is none.
`Name`
TypeDeclaration.`getSuperclass()`
Deprecated.
In the JLS3 API, this method is replaced by `TypeDeclaration.getSuperclassType()`, which returns a `Type` instead of a `Name`.
`Name`
Annotation.`getTypeName()`
Returns the annotation type name of this annotation.
`Name`
AST.`newName(String qualifiedName)`
Creates and returns a new unparented name node for the given name.
`Name`
AST.`newName(String[] identifiers)`
Creates and returns a new unparented name node for the given name segments.
Methods in org.eclipse.jdt.core.dom with parameters of type Name
Modifier and Type
Method
Description
`NameQualifiedType`
AST.`newNameQualifiedType(Name qualifier, SimpleName name)`
Creates and returns a new unparented name qualified type node with the given qualifier and name.
`QualifiedName`
AST.`newQualifiedName(Name qualifier, SimpleName name)`
Creates and returns a new unparented qualified name node for the given qualifier and simple name child node.
`SimpleType`
AST.`newSimpleType(Name typeName)`
Creates and returns a new unparented simple type node with the given type name.
`void`
ModuleQualifiedName.`setModuleQualifier(Name moduleQualifier)`
Sets the qualifier of this qualified name to the given name.
`void`
ClassInstanceCreation.`setName(Name name)`
Deprecated.
In the JLS3 API, this method is replaced by `ClassInstanceCreation.setType(Type)`, which expects a `Type` instead of a `Name`.
`void`
ImportDeclaration.`setName(Name name)`
Sets the name of this import declaration to the given name.
`void`
ModuleDeclaration.`setName(Name name)`
Sets the module name in to the given name.
`void`
ModulePackageAccess.`setName(Name name)`
Sets the name of the package to the given name.
`void`
ModuleQualifiedName.`setName(Name name)`
Sets the name part of this qualified name to the given simple name.
`void`
PackageDeclaration.`setName(Name name)`
Sets the package name of this package declaration to the given name.
`void`
ProvidesDirective.`setName(Name name)`
Sets the name of the service.
`void`
RequiresDirective.`setName(Name name)`
Sets the module name in requires directive to the given name.
`void`
SimpleType.`setName(Name typeName)`
Sets the name of this simple type to the given name.
`void`
UsesDirective.`setName(Name name)`
Sets the name of the service in this directive.
`void`
MemberRef.`setQualifier(Name name)`
Sets or clears the qualifier of this member reference.
`void`
MethodRef.`setQualifier(Name name)`
Sets or clears the qualifier of this method reference.
`void`
NameQualifiedType.`setQualifier(Name name)`
Sets the qualifier of this name-qualified type to the given name.
`void`
QualifiedName.`setQualifier(Name qualifier)`
Sets the qualifier of this qualified name to the given name.
`void`
SuperFieldAccess.`setQualifier(Name name)`
Sets or clears the qualifier of this "super" field access expression.
`void`
SuperMethodInvocation.`setQualifier(Name name)`
Sets or clears the qualifier of this "super" method invocation expression.
`void`
SuperMethodReference.`setQualifier(Name name)`
Sets the qualifier of this "super" method reference expression.
`void`
ThisExpression.`setQualifier(Name name)`
Sets or clears the qualifier of this "this" expression.
`void`
TypeDeclaration.`setSuperclass(Name superclassName)`
Deprecated.
In the JLS3 API, this method is replaced by `TypeDeclaration.setSuperclassType(Type)`, which expects a `Type` instead of a `Name`.
`void`
Annotation.`setTypeName(Name typeName)`
Sets the annotation type name of this annotation.