public interface IConstantDefinition extends IVariableDefinition
const declaration.
An IConstantDefinitionIVariableNode
for which isConst() is true.
For example, the declaration
public const N:int = 1;creates a constant definition whose base name is
"N",
whose namespace reference is to the public namespace,
and whose type reference is named "int".
A constant definition is contained within a file scope, a package scope, a class scope, an interface scope, or a function scope; it does not contain a scope.
IVariableDefinition.VariableClassification| Modifier and Type | Method and Description |
|---|---|
Object |
resolveValue(ICompilerProject project)
Try to calculate the constant value for this ConstantDefinition.
|
getArrayElementType, getInstanceType, getPercentProxy, getVariableClassification, getVariableNode, hasCollapseWhiteSpace, hasRichTextContent, isColor, isRequiredSkinPart, isSkinPart, resolveInitialValuegetExplicitSourceComment, hasExplicitCommentgetAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getBaseName, getBindableEventNames, getColumn, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDeprecationInfo, getEnd, getLine, getMetaTagByName, getMetaTagsByName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNameStart, getNode, getPackageName, getParent, getQualifiedName, getSourcePath, getStart, getTypeAsDisplayString, getTypeReference, hasMetaTagByName, hasModifier, hasNamespace, isBindable, isBindableStyle, isContingent, isContingentNeeded, isDeprecated, isDynamic, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isStatic, resolveNamespace, resolveTypeObject resolveValue(ICompilerProject project)
project - the project to use to resolve the intializerCopyright © 2016 The Apache Software Foundation. All rights reserved.