public class SetterNode extends AccessorNode implements ISetterNode
contentsPart
typeNode, typeOperatorStart
definition, nameNode
emptyNodeArray, 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, setChildren
buildInnerString, 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, setFunctionBodyInfo
buildBindableGetter, buildBindableSetter, fillinDefinition, getTypeName, getTypeNode, getTypeOperatorEnd, getTypeOperatorStart, hasExplicitType, hasTypeOperator, isAnyType, isVoidType, setType
addDecorationChildren, addModifier, createDecorationPart, fillInMetadata, fillInModifiers, fillInNamespaceAndModifiers, getASDocComment, getDecorationPart, getMetaInfos, getMetaTags, getMetaTagsNode, getModifiers, getModifiersContainer, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNameStart, getNodeStartForTooling, hasExplicitComment, hasModifier, setASDocComment, setMetaTags, setModifiersContainer, setNamespace
addChild, addChild, addChildInOrder, addChildPostNormalize, addTemporaryChild, getChild, getChildCount, optimizeChildren, removeAllChildren, removeChild, removeTemporaryChild, replaceChild, sortChildren, swapChildren
buildStringRecursive, 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, verify
getColumn, getEndColumn, getEndLine, getLine, getLineColumnString, getOffsetsString, getSourcePath, getSourcePathString, setColumn, setEnd, setEndColumn, setEndLine, setLine, setSourceLocation, setSourcePath, setStart, span, span
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAccessorKeywordNode
containsLocalFunctions, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getLocalFunctions, getParameterNodes, getParametersContainerNode, getReturnType, getReturnTypeNode, hasBody, isCastFunction, isConstructor, isGetter, isSetter, rememberLocalFunction, setEmittingLocalFunctions
getScopedNode
getDeclarationEnd, getVariableClassification
getASDocComment, hasExplicitComment
public 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()
IASNode
getNodeID
in interface IASNode
getNodeID
in class FunctionNode
protected void analyze(EnumSet<PostProcessStep> set, ASScope scope, Collection<ICompilerProblem> problems)
analyze
in class FunctionNode
protected FunctionDefinition createFunctionDefinition(String name)
FunctionNode
createFunctionDefinition
in class FunctionNode
public IExpressionNode getAssignedValueNode()
getAssignedValueNode
in interface IVariableNode
getAssignedValueNode
in class AccessorNode
public IExpressionNode getVariableTypeNode()
IVariableNode
IExpressionNode
that corresponds to the type node of
this IVariableNode
getVariableTypeNode
in interface IVariableNode
IExpressionNode
or nullpublic String getVariableType()
IVariableNode
*
is returnedgetVariableType
in interface IVariableNode
public boolean isConst()
IVariableNode
const
isConst
in interface IVariableNode
const
existsCopyright © 2016 The Apache Software Foundation. All rights reserved.