public class ArrayLiteralNode extends BaseLiteralContainerNode
ILiteralNode.LiteralType
baseTypeNode, contentsNode
flags
emptyNodeArray, parent
UNKNOWN
Modifier | Constructor and Description |
---|---|
|
ArrayLiteralNode()
Constructor.
|
protected |
ArrayLiteralNode(ArrayLiteralNode other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ArrayLiteralNode |
copy()
Copy the ExpressionNodeBase and its subtree.
|
ILiteralNode.LiteralType |
getLiteralType()
Returns the
ILiteralNode.LiteralType that this node represents |
ASTNodeID |
getNodeID()
Get the opcode of this node
|
String |
getValue()
Returns the value of this literal as a String
|
String |
getValue(boolean rawValue)
Returns the value of this literal as a String
|
boolean |
isDynamicExpression(ICompilerProject project)
Does this expression evaluate to a dynamic value
|
ITypeDefinition |
resolveType(ICompilerProject project)
The type of the result of this expression.
|
appendLiteralToken, getBaseTypeNode, getChild, getChildCount, getContentsNode, isTerminal, setChildren
computeNamespaceReference, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isPackageReference, normalize, resolve, setHasParenthesis
analyze, 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, 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
copyForInitializer, hasParenthesis, resolve
contains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public ArrayLiteralNode()
protected ArrayLiteralNode(ArrayLiteralNode other)
other
- The node to copy.public ASTNodeID getNodeID()
IASNode
public ITypeDefinition resolveType(ICompilerProject project)
IExpressionNode
resolveType
in interface IExpressionNode
resolveType
in class ExpressionNodeBase
project
- The ICompilerProject
to use to do lookups.ITypeDefinition
of the type this expression results in.protected ArrayLiteralNode copy()
ExpressionNodeBase
copy
in class ExpressionNodeBase
public boolean isDynamicExpression(ICompilerProject project)
IExpressionNode
isDynamicExpression
in interface IExpressionNode
isDynamicExpression
in class ExpressionNodeBase
project
- The ICompilerProject
to use to do lookups.true
if we evaluate to something dynamicpublic ILiteralNode.LiteralType getLiteralType()
ILiteralNode
ILiteralNode.LiteralType
that this node representspublic String getValue()
ILiteralNode
getValue
in interface ILiteralNode
getValue
in class BaseLiteralContainerNode
public String getValue(boolean rawValue)
ILiteralNode
getValue
in interface ILiteralNode
getValue
in class BaseLiteralContainerNode
rawValue
- True if you want the raw value, otherwise some massaging
of the value will be done before returning the value if it's a String
(enclosing quotes will be removed).Copyright © 2016 The Apache Software Foundation. All rights reserved.