public class VariableNode extends BaseVariableNode
equalsOperatorStart, isConst
typeNode, typeOperatorStart
definition, nameNode
emptyNodeArray, parent
UNKNOWN
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, setKeyword
buildBindableGetter, buildBindableSetter, fillinDefinition, getTypeName, getTypeNode, getTypeOperatorEnd, getTypeOperatorStart, hasExplicitType, hasTypeOperator, isAnyType, isVoidType, setType
addDecorationChildren, 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, 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
getASDocComment, hasExplicitComment
getContainingFilePath, getMetaInfos, getMetaTags, getName, getNameAbsoluteEnd, getNameAbsoluteStart, getNameEnd, getNameExpressionNode, getNamespace, getNameStart, getPackageName, hasModifier, hasNamespace
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getParent, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public 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()
IASNode
public int getSpanningStart()
IASNode
getSpanningStart
in interface IASNode
getSpanningStart
in class BaseDefinitionNode
protected void setChildren(boolean fillInOffsets)
NodeBase
setChildren
in class BaseVariableNode
protected int getInitialChildCount()
TreeNode
getInitialChildCount
in class TreeNode
public String getVariableType()
IVariableNode
*
is returnedgetVariableType
in interface IVariableNode
getVariableType
in class BaseVariableNode
public boolean isImplicit()
IDefinitionNode
this
, super
,
default constructors, and cast functions.public String getQualifiedName()
IDefinitionNode
public String getShortName()
IDefinitionNode
public IVariableDefinition.VariableClassification getVariableClassification()
IVariableNode
public int getDeclarationEnd()
IVariableNode
getDeclarationEnd
in interface IVariableNode
getDeclarationEnd
in class BaseVariableNode
public void addChainedVariableNode(ChainedVariableNode node)
Copyright © 2016 The Apache Software Foundation. All rights reserved.