public class GetterNode extends AccessorNode implements IGetterNode
contentsPart
typeNode, typeOperatorStart
definition, nameNode
emptyNodeArray, parent
Constructor and Description |
---|
GetterNode(IASToken functionKeyword,
IASToken getKeyword,
IdentifierNode nameNode)
Constructor.
|
GetterNode(IdentifierNode node,
IAccessorFunctionContentsPart part)
Constructor from SWC with a custom content part.
|
Modifier and Type | Method and Description |
---|---|
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
analyze, 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 GetterNode(IASToken functionKeyword, IASToken getKeyword, IdentifierNode nameNode)
nameNode
- The node holding name of getter.public GetterNode(IdentifierNode node, IAccessorFunctionContentsPart part)
node
- An identifier node specifying the name of the getter.part
- An object storing the get
keyword.public ASTNodeID getNodeID()
IASNode
getNodeID
in interface IASNode
getNodeID
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.