public final class ObjectLiteralValuePairNode extends ExpressionNodeBase implements IObjectLiteralValuePairNode
flagsemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
|
ObjectLiteralValuePairNode(IASToken pos,
ExpressionNodeBase nameNode,
ExpressionNodeBase valueNode)
Constructor.
|
protected |
ObjectLiteralValuePairNode(ObjectLiteralValuePairNode other)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected ObjectLiteralValuePairNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
IExpressionNode |
getNameNode()
Represents the name part of a ObjectLiteralValuePair.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IExpressionNode |
getValueNode()
Represents the value part of a ObjectLiteralValuePair
|
boolean |
isDynamicExpression(ICompilerProject project)
Does this expression evaluate to a dynamic value
|
protected void |
setChildren(boolean fillInOffsets)
If this node has custom children (names, arguments, etc), shove them into
the list of children.
|
computeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, normalize, resolve, resolveType, setHasParenthesisisTerminalanalyze, buildInnerString, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTransparent, looselyContains, replaceChild, runPostProcess, setParent, span, span, span, startAfter, startAfter, startBefore, startBefore, swapChildren, 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, waitcontains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic ObjectLiteralValuePairNode(IASToken pos, ExpressionNodeBase nameNode, ExpressionNodeBase valueNode)
protected ObjectLiteralValuePairNode(ObjectLiteralValuePairNode other)
other - The node to copy.public final ASTNodeID getNodeID()
IASNodepublic final int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getChild(int i)
IASNodeprotected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class NodeBaseprotected ObjectLiteralValuePairNode copy()
ExpressionNodeBasecopy in class ExpressionNodeBasepublic boolean isDynamicExpression(ICompilerProject project)
IExpressionNodeisDynamicExpression in interface IExpressionNodeisDynamicExpression in class ExpressionNodeBaseproject - The ICompilerProject to use to do lookups.true if we evaluate to something dynamicpublic IExpressionNode getNameNode()
IObjectLiteralValuePairNodegetNameNode in interface IObjectLiteralValuePairNodeIExpressionNode or nullpublic IExpressionNode getValueNode()
IObjectLiteralValuePairNodegetValueNode in interface IObjectLiteralValuePairNodeIExpressionNode or nullCopyright © 2016 The Apache Software Foundation. All rights reserved.