public interface IParameterNode extends IVariableNode
function
declaration.
The typical shape of this node is:
IParameterNode IExpressionNode <-- getNameExpressionNode() IExpressionNode <-- getVariableTypeNode() IExpressionNode <-- getAssignedValueNode()If there is no type annotation, an implicit
IIdentifierNode
for type "*"
is present.
If there is no initial value, then the corresponding child node is not present.
For example,
public function f(a, b:int = 0):void { }is represented as
IFunctionNode IIdentifierNode "f" IContainerNode IParameterNode IIdentifierNode "a" IIdentifierNode "*" IParameterNode IIdentifierNode "b" IIdentifierNode "int" INumericLiteralNode 0 IIdentiferNode "void"
UNKNOWN
Modifier and Type | Method and Description |
---|---|
String |
getDefaultValue()
Returns the optional default value specified by the default value passed
into an argument
|
boolean |
hasDefaultValue() |
boolean |
isRest()
Returns true if this argument is a rest-style argument, signified by ...
|
getAssignedValueNode, getDeclarationEnd, getVariableClassification, getVariableType, getVariableTypeNode, isConst
getASDocComment, hasExplicitComment
getContainingFilePath, getDefinition, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, getQualifiedName, getShortName, hasModifier, hasNamespace, isImplicit
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
String getDefaultValue()
boolean isRest()
boolean hasDefaultValue()
Copyright © 2016 The Apache Software Foundation. All rights reserved.