public class SetterNode extends AccessorNode implements ISetterNode
contentsParttypeNode, typeOperatorStartdefinition, nameNodeemptyNodeArray, parent| Constructor and Description |
|---|
SetterNode(IASToken functionKeyword,
IASToken setKeyword,
IdentifierNode nameNode)
Constructor.
|
SetterNode(IdentifierNode node,
IAccessorFunctionContentsPart part)
Constructor from SWC with a custom content part.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
analyze(EnumSet<PostProcessStep> set,
ASScope scope,
Collection<ICompilerProblem> problems) |
protected FunctionDefinition |
createFunctionDefinition(String name)
Method to create the correct Definition class - needed so we can create
different Definition types for getters, setters, and plain old functions
|
IExpressionNode |
getAssignedValueNode() |
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getVariableType()
Returns the type of this variable as it exist in source.
|
IExpressionNode |
getVariableTypeNode()
Returns the
IExpressionNode that corresponds to the type node of
this IVariableNode |
boolean |
isConst()
Returns if this variable is decorated with
const |
createContentsPart, getAccessorKeywordNode, getDeclarationEnd, getReturnType, getVariableClassification, isCastFunction, isConstructor, isImplicit, setChildrenbuildInnerString, containsLocalFunctions, discardFunctionBody, getActualNamespaceNode, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getFunctionKeywordNode, getInitialChildCount, getLocalFunctions, getNamespace, getNamespaceNode, getParameterNodes, getParametersContainerNode, getParsingProblems, getQualifiedName, getReturnTypeNode, getScopedNode, getShortName, getSpanningStart, hasBeenParsed, hasBody, hasNamespace, init, isConstructorOf, isGetter, isPackageLevelFunction, isSetter, normalize, parseFunctionBody, rememberLocalFunction, setDefinition, setEmittingLocalFunctions, setFunctionBodyInfobuildBindableGetter, buildBindableSetter, fillinDefinition, getTypeName, getTypeNode, getTypeOperatorEnd, getTypeOperatorStart, hasExplicitType, hasTypeOperator, isAnyType, isVoidType, setTypeaddDecorationChildren, addModifier, createDecorationPart, fillInMetadata, fillInModifiers, fillInNamespaceAndModifiers, getASDocComment, getDecorationPart, getMetaInfos, getMetaTags, getMetaTagsNode, getModifiers, getModifiersContainer, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNameStart, getNodeStartForTooling, hasExplicitComment, hasModifier, setASDocComment, setMetaTags, setModifiersContainer, setNamespaceaddChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, replaceChild, sortChildren, swapChildrenbuildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getStart, getSucceedingNode, getWorkspace, isTerminal, isTransparent, looselyContains, runPostProcess, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, toString, tryGetOffsetLookup, verifygetColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, spanclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAccessorKeywordNodecontainsLocalFunctions, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getLocalFunctions, getParameterNodes, getParametersContainerNode, getReturnType, getReturnTypeNode, hasBody, isCastFunction, isConstructor, isGetter, isSetter, rememberLocalFunction, setEmittingLocalFunctionsgetScopedNodegetDeclarationEnd, getVariableClassificationgetASDocComment, hasExplicitCommentpublic SetterNode(IASToken functionKeyword, IASToken setKeyword, IdentifierNode nameNode)
nameNode - The node containing the name of the setter.public SetterNode(IdentifierNode node, IAccessorFunctionContentsPart part)
node - An identifier node specifying the name of the setter.part - An object storing the set keyword.public ASTNodeID getNodeID()
IASNodegetNodeID in interface IASNodegetNodeID in class FunctionNodeprotected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
analyze in class FunctionNodeprotected FunctionDefinition createFunctionDefinition(String name)
FunctionNodecreateFunctionDefinition in class FunctionNodepublic IExpressionNode getAssignedValueNode()
getAssignedValueNode in interface IVariableNodegetAssignedValueNode in class AccessorNodepublic IExpressionNode getVariableTypeNode()
IVariableNodeIExpressionNode that corresponds to the type node of
this IVariableNodegetVariableTypeNode in interface IVariableNodeIExpressionNode or nullpublic String getVariableType()
IVariableNode* is returnedgetVariableType in interface IVariableNodepublic boolean isConst()
IVariableNodeconstisConst in interface IVariableNodeconst existsCopyright © 2016 The Apache Software Foundation. All rights reserved.