public class ASImportTarget extends Object implements IImportTarget
| Modifier and Type | Method and Description |
|---|---|
static IImportTarget |
buildImportFromPackageName(IWorkspace w,
String packageName)
Create an ASImport from a package name (as it appears in a package definition)
|
static IImportTarget |
buildImportFromXMLNamespace(IWorkspace w,
String xmlNamespace)
Create an ASImport from a package-style XML namespace
|
static ASImportTarget |
get(IWorkspace w,
String target) |
INamespaceDefinition |
getNamespace()
Gets the
INamespaceDefinition for the imported package's public namespace. |
String |
getQualifiedName(String reference)
Interpret the reference based on this import target, and try to build a qualified
class name for it.
|
String |
getTargetName()
Gets the name of the target in our import.
|
String |
getTargetPackage()
Returns the name of the target package we are targeting
|
boolean |
isWildcard()
True if this import is a wild card
|
String |
toString()
Get the import target as a string (as it would appear after the keyword "import").
|
public static ASImportTarget get(IWorkspace w, String target)
public static IImportTarget buildImportFromXMLNamespace(IWorkspace w, String xmlNamespace)
xmlNamespace - package-style XML namespace (e.g. mycontrols.* from xmlns:my="mycontrols.*")public static IImportTarget buildImportFromPackageName(IWorkspace w, String packageName)
packageName - package name (e.g. mx.controls)public String getTargetPackage()
IImportTargetgetTargetPackage in interface IImportTargetpublic boolean isWildcard()
IImportTargetisWildcard in interface IImportTargetpublic String getTargetName()
IImportTargetgetTargetName in interface IImportTargetpublic String getQualifiedName(String reference)
IImportTargetgetQualifiedName in interface IImportTargetreference - the reference as it appears in the documentpublic String toString()
public INamespaceDefinition getNamespace()
IImportTargetINamespaceDefinition for the imported package's public namespace.getNamespace in interface IImportTargetINamespaceDefinition for the imported package's public namespace.Copyright © 2016 The Apache Software Foundation. All rights reserved.