public abstract class AccessorNode extends FunctionNode implements IAccessorNode
contentsPart
typeNode, typeOperatorStart
definition, nameNode
emptyNodeArray, 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, 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
containsLocalFunctions, getDefinition, getEmittingLocalFunctions, getFunctionClassification, getLocalFunctions, getParameterNodes, getParametersContainerNode, getReturnTypeNode, hasBody, isGetter, isSetter, rememberLocalFunction, setEmittingLocalFunctions
getScopedNode
getVariableType, getVariableTypeNode, isConst
getASDocComment, hasExplicitComment
public 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)
NodeBase
setChildren
in class FunctionNode
public boolean isConstructor()
IFunctionNode
isConstructor
in interface IFunctionNode
isConstructor
in class FunctionNode
public boolean isCastFunction()
IFunctionNode
isCastFunction
in interface IFunctionNode
isCastFunction
in class FunctionNode
public boolean isImplicit()
IDefinitionNode
this
, super
,
default constructors, and cast functions.isImplicit
in interface IDefinitionNode
isImplicit
in class FunctionNode
public String getReturnType()
IFunctionNode
void
is returnedgetReturnType
in interface IFunctionNode
getReturnType
in class FunctionNode
protected IFunctionContentsPart createContentsPart()
createContentsPart
in class FunctionNode
public IVariableDefinition.VariableClassification getVariableClassification()
IVariableNode
getVariableClassification
in interface IVariableNode
public IExpressionNode getAssignedValueNode()
getAssignedValueNode
in interface IVariableNode
public int getDeclarationEnd()
IVariableNode
getDeclarationEnd
in interface IVariableNode
public IKeywordNode getAccessorKeywordNode()
IAccessorNode
get
or set
keyword.getAccessorKeywordNode
in interface IAccessorNode
IKeywordNode
.Copyright © 2016 The Apache Software Foundation. All rights reserved.