public static final class ASProjectScope.DefinitionPromise extends DefinitionBase
IDefinition
in the future.FLAG_CAST_FUNCTION, FLAG_CONSTRUCTOR, FLAG_CONTINGENT, FLAG_DECLARED_IN_CONTROL_FLOW, FLAG_DEFAULT, FLAG_DEPRECATED, FLAG_DYNAMIC, FLAG_FINAL, FLAG_GENERATED_EMBED_CLASS, FLAG_HAS_INIT, FLAG_IMPLICIT, FLAG_NATIVE, FLAG_OVERRIDE, FLAG_REST, FLAG_STATIC, flags, nodeRef, singletonEmptyMetaTags
Modifier and Type | Method and Description |
---|---|
void |
clean()
Resets the DefinitionPromise to it's original state
|
IDefinition |
getActualDefinition() |
String |
getBaseName()
Gets the base (i.e., unqualified) name of this definition.
|
ICompilationUnit |
getCompilationUnit()
Gets the
ICompilationUnit that can satisfy this promise. |
String |
getPackageName()
Gets the fully-qualified package name for this definition.
|
String |
getQualifiedName()
Gets the fully-qualified name of this definition.
|
boolean |
isInProject(ICompilerProject project)
Debugging method that can be used to assert that a definition is a specified project.
|
protected String |
toStorageName(String name) |
String |
toString()
Used only for debugging.
|
addMetaTag, buildInnerString, buildString, getAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getArrayElementType, getBindableEventNames, getColumn, getContainingASScope, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDefinition, getDeprecationInfo, getEnd, getExplicitSourceComment, getFileScope, getFileSpecification, getInstanceType, getLine, getLocationString, getMaxSize, getMetaTagByName, getMetaTagsByName, getMName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNamespaceReferenceAsString, getNameStart, getNode, getParent, getPercentProxy, getSize, getSkinPart, getSourcePath, getStart, getStorageName, getTypeAsDisplayString, getTypeDependencyType, getTypeReference, hasCollapseWhiteSpace, hasExplicitComment, hasMetaTagByName, hasModifier, hasNamespace, hasRichTextContent, inPackageNamespace, isBindable, isBindableStyle, isColor, isContingent, isContingentNeeded, isDeprecated, isDynamic, isEmpty, isFinal, isGeneratedEmbedClass, isImplicit, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isRequiredSkinPart, isStatic, isTopLevelDefinition, matches, resolveNamespace, resolveType, resolveType, resolveType, resolveType, resolveType, setBindable, setContainingScope, setContingent, setDynamic, setFinal, setGeneratedEmbedClass, setImplicit, setLocation, setMetaTags, setModifier, setNameLocation, setNamespaceReference, setNative, setNode, setOverride, setPublic, setStatic, setTypeReference, unsetOverride, verify
public IDefinition getActualDefinition()
public ICompilationUnit getCompilationUnit()
ICompilationUnit
that can satisfy this promise.ICompilationUnit
that can satisfy this promise.public void clean()
public String toString()
DefinitionBase
toString
in class DefinitionBase
protected String toStorageName(String name)
toStorageName
in class DefinitionBase
public final String getPackageName()
IDefinition
For example, the backage name of the class definition
for the class flash.display.Sprite
is "flash.display"
getPackageName
in interface IDefinition
getPackageName
in class DefinitionBase
public final String getQualifiedName()
IDefinition
For example, the fully-qualified name of the class definition
for the class flash.display.Sprite
is
"flash.display.Sprite"
.
getQualifiedName
in interface IDefinition
getQualifiedName
in class DefinitionBase
public final String getBaseName()
IDefinition
For example, the base name of the class definition
for the class flash.display.Sprite
is "Sprite"
.
getBaseName
in interface IDefinition
getBaseName
in class DefinitionBase
public boolean isInProject(ICompilerProject project)
IDefinition
isInProject
in interface IDefinition
isInProject
in class DefinitionBase
Copyright © 2016 The Apache Software Foundation. All rights reserved.