Schnittstelle IPackageBinding
- Alle Superschnittstellen:
IBinding
A package binding represents a named or unnamed package.
- Seit:
- 2.0
-
Feldübersicht
Von Schnittstelle geerbte Felder org.aspectj.org.eclipse.jdt.core.dom.IBinding
ANNOTATION, MEMBER_VALUE_PAIR, METHOD, MODULE, PACKAGE, TYPE, VARIABLE
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungdefault IModuleBinding
Returns the binding of the module associated with this package binding.getName()
Returns the name of the package represented by this binding.String[]
Returns the list of name component making up the name of the package represented by this binding.boolean
Returns whether this package is an unnamed package.Von Schnittstelle geerbte Methoden org.aspectj.org.eclipse.jdt.core.dom.IBinding
equals, getAnnotations, getJavaElement, getKey, getKind, getModifiers, isDeprecated, isEqualTo, isRecovered, isSynthetic, toString
-
Methodendetails
-
getName
String getName()Returns the name of the package represented by this binding. For named packages, this is the fully qualified package name (using "." for separators). For unnamed packages, this is an empty string. -
isUnnamed
boolean isUnnamed()Returns whether this package is an unnamed package. See The Java Language Specification section 7.4.2 for details.- Gibt zurück:
true
if this is an unnamed package, andfalse
otherwise
-
getNameComponents
String[] getNameComponents()Returns the list of name component making up the name of the package represented by this binding. For example, for the package named "com.example.tool", this method returns {"com", "example", "tool"}. Returns the empty list for unnamed packages.- Gibt zurück:
- the name of the package represented by this binding, or the empty list for unnamed packages
-
getModule
Returns the binding of the module associated with this package binding.- Gibt zurück:
- the binding of the module associated with this package, or
null
if none - Seit:
- 3.14
-