public interface IParameterDefinition extends IVariableDefinition
An IParameterDefinition is created from an IParameterNode.
For example, the function declaration
public function f(i:int):void;creates one parameter definition whose base name is
"i",
whose namespace reference is to the public namespace,
and whose type reference is named "int".IVariableDefinition.VariableClassification| Modifier and Type | Method and Description |
|---|---|
IParameterNode |
getNode()
Returns the
IParameterNode from which this definition was
created, if the definition came from the AST for a source file. |
boolean |
hasDefaultValue() |
boolean |
isRest()
Returns true if this argument is a rest-style argument, signified by ...
|
Object |
resolveDefaultValue(ICompilerProject project)
Attempt to resolve the default value assigned to this parameter.
|
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, 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, resolveTypeboolean isRest()
boolean hasDefaultValue()
Object resolveDefaultValue(ICompilerProject project)
project - the Project to resolve things inIParameterNode getNode()
IParameterNode from which this definition was
created, if the definition came from the AST for a source file.
This method may require the AST to be reloaded or regenerated and therefore may be slow.
getNode in interface IDefinitionCopyright © 2016 The Apache Software Foundation. All rights reserved.