public class GetterNode extends AccessorNode implements IGetterNode
contentsParttypeNode, typeOperatorStartdefinition, nameNodeemptyNodeArray, 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, setChildrenanalyze, 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, 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 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()
IASNodegetNodeID in interface IASNodegetNodeID 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.