public class VariableNode extends BaseVariableNode
equalsOperatorStart, isConsttypeNode, typeOperatorStartdefinition, nameNodeemptyNodeArray, parentUNKNOWN| Constructor and Description |
|---|
VariableNode(IdentifierNode nameNode)
Constructor.
|
VariableNode(IdentifierNode nameNode,
ExpressionNodeBase typeNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChainedVariableNode(ChainedVariableNode node) |
int |
getDeclarationEnd()
Get the local end offset of this variable declaration.
|
protected int |
getInitialChildCount()
Take a guess as to an efficient initial child count.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getQualifiedName()
Get the qualified name of this type
|
String |
getShortName()
Get the short name of this type (without any package information)
|
int |
getSpanningStart()
Gets the local offset where the node starts, including any extra items that may
change the appearance of the node's start.
|
IVariableDefinition.VariableClassification |
getVariableClassification()
Get the classification for this variable (local, argument, class member,
etc)
|
String |
getVariableType()
Returns the type of this variable as it exist in source.
|
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, createDecorationPart, ensureTypeNode, getAssignedValueNode, getDefinition, getEqualsOperatorEnd, getEqualsOperatorStart, getKeywordNode, getVariableTypeNode, hasEqualsOperator, init, isConst, setAssignedValue, setIsConst, setKeyword, setKeywordbuildBindableGetter, buildBindableSetter, fillinDefinition, getTypeName, getTypeNode, getTypeOperatorEnd, getTypeOperatorStart, hasExplicitType, hasTypeOperator, isAnyType, isVoidType, setTypeaddDecorationChildren, addModifier, fillInMetadata, fillInModifiers, fillInNamespaceAndModifiers, getASDocComment, getDecorationPart, getMetaInfos, getMetaTags, getMetaTagsNode, getModifiers, getModifiersContainer, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNamespaceNode, getNameStart, getNodeStartForTooling, hasExplicitComment, hasModifier, hasNamespace, normalize, setASDocComment, setDefinition, 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, waitgetASDocComment, hasExplicitCommentgetContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, hasModifier, hasNamespacecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getParent, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic VariableNode(IdentifierNode nameNode, ExpressionNodeBase typeNode)
nameNode - The identifier node representing the name of the variable.typeNode - The expression node representing the type of the variable.public VariableNode(IdentifierNode nameNode)
nameNode - The identifier node representing the name of the variable.public ASTNodeID getNodeID()
IASNodepublic int getSpanningStart()
IASNodegetSpanningStart in interface IASNodegetSpanningStart in class BaseDefinitionNodeprotected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class BaseVariableNodeprotected int getInitialChildCount()
TreeNodegetInitialChildCount in class TreeNodepublic String getVariableType()
IVariableNode* is returnedgetVariableType in interface IVariableNodegetVariableType in class BaseVariableNodepublic boolean isImplicit()
IDefinitionNodethis, super,
default constructors, and cast functions.public String getQualifiedName()
IDefinitionNodepublic String getShortName()
IDefinitionNodepublic IVariableDefinition.VariableClassification getVariableClassification()
IVariableNodepublic int getDeclarationEnd()
IVariableNodegetDeclarationEnd in interface IVariableNodegetDeclarationEnd in class BaseVariableNodepublic void addChainedVariableNode(ChainedVariableNode node)
Copyright © 2016 The Apache Software Foundation. All rights reserved.