public abstract class AccessorNode extends FunctionNode implements IAccessorNode
contentsParttypeNode, typeOperatorStartdefinition, nameNodeemptyNodeArray, parent| Constructor and Description |
|---|
AccessorNode(IASToken functionKeyword,
IASToken accessorKeyword,
IdentifierNode nameNode)
Constructor.
|
AccessorNode(IdentifierNode node,
IAccessorFunctionContentsPart part)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IFunctionContentsPart |
createContentsPart() |
IKeywordNode |
getAccessorKeywordNode()
Gets the node containing the
get or set keyword. |
IExpressionNode |
getAssignedValueNode() |
int |
getDeclarationEnd()
Get the local end offset of this variable declaration.
|
String |
getReturnType()
Returns the type of this function as it exist in source.
|
IVariableDefinition.VariableClassification |
getVariableClassification()
Get the classification for this variable (local, argument, class member,
etc)
|
boolean |
isCastFunction()
Is this a cast function?
|
boolean |
isConstructor()
Is this a constructor?
|
boolean |
isImplicit()
Is this definition an implicit definition that doesn't actually appear in
the source file?
|
protected void |
setChildren(boolean fillInOffsets)
If this node has custom children (names, arguments, etc), shove them into
the list of children.
|
analyze, buildInnerString, containsLocalFunctions, createFunctionDefinition, discardFunctionBody, getActualNamespaceNode, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getFunctionKeywordNode, getInitialChildCount, getLocalFunctions, getNamespace, getNamespaceNode, getNodeID, 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, waitcontainsLocalFunctions, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getLocalFunctions, getParameterNodes, getParametersContainerNode, getReturnTypeNode, hasBody, isGetter, isSetter, rememberLocalFunction, setEmittingLocalFunctionsgetScopedNodegetVariableType, getVariableTypeNode, isConstgetASDocComment, hasExplicitCommentpublic AccessorNode(IASToken functionKeyword, IASToken accessorKeyword, IdentifierNode nameNode)
nameNode - node containing name of setterpublic AccessorNode(IdentifierNode node, IAccessorFunctionContentsPart part)
node - An identifier node specifying the name of the accessor.part - An object storing the get or set keyword.protected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class FunctionNodepublic boolean isConstructor()
IFunctionNodeisConstructor in interface IFunctionNodeisConstructor in class FunctionNodepublic boolean isCastFunction()
IFunctionNodeisCastFunction in interface IFunctionNodeisCastFunction in class FunctionNodepublic boolean isImplicit()
IDefinitionNodethis, super,
default constructors, and cast functions.isImplicit in interface IDefinitionNodeisImplicit in class FunctionNodepublic String getReturnType()
IFunctionNodevoid is returnedgetReturnType in interface IFunctionNodegetReturnType in class FunctionNodeprotected IFunctionContentsPart createContentsPart()
createContentsPart in class FunctionNodepublic IVariableDefinition.VariableClassification getVariableClassification()
IVariableNodegetVariableClassification in interface IVariableNodepublic IExpressionNode getAssignedValueNode()
getAssignedValueNode in interface IVariableNodepublic int getDeclarationEnd()
IVariableNodegetDeclarationEnd in interface IVariableNodepublic IKeywordNode getAccessorKeywordNode()
IAccessorNodeget or set keyword.getAccessorKeywordNode in interface IAccessorNodeIKeywordNode.Copyright © 2016 The Apache Software Foundation. All rights reserved.