public abstract class BaseLiteralContainerNode extends ExpressionNodeBase implements ILiteralContainerNode
ILiteralNode.LiteralType| Modifier and Type | Field and Description |
|---|---|
protected LiteralNode |
baseTypeNode |
protected ContainerNode |
contentsNode |
flagsemptyNodeArray, parentUNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
BaseLiteralContainerNode(BaseLiteralContainerNode other)
Copy constructor.
|
|
BaseLiteralContainerNode(LiteralNode baseTypeNode)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendLiteralToken(ASToken token)
Append XML literal token to the contents of this node.
|
LiteralNode |
getBaseTypeNode() |
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
ContainerNode |
getContentsNode() |
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 |
isTerminal()
Determines if this node is a terminal node, meaning it cannot have
children
|
protected void |
setChildren(boolean fillInOffsets)
If this node has custom children (names, arguments, etc), shove them into
the list of children.
|
computeNamespaceReference, copy, copyForInitializer, getASScope, getBaseExpression, getDecorationNode, getDependencyType, getMName, getParentExpression, hasParenthesis, inFilter, inWith, isDynamicExpression, isPackageReference, normalize, resolve, resolveType, setHasParenthesisanalyze, 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, waitgetLiteralTypecopyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveTypecontains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNodegetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartprotected LiteralNode baseTypeNode
protected ContainerNode contentsNode
public BaseLiteralContainerNode(LiteralNode baseTypeNode)
protected BaseLiteralContainerNode(BaseLiteralContainerNode other)
other - The node to copy.public int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class NodeBasepublic IASNode getChild(int i)
IASNodeprotected void setChildren(boolean fillInOffsets)
NodeBasesetChildren in class NodeBasepublic boolean isTerminal()
IASNodeisTerminal in interface IASNodeisTerminal in class FixedChildrenNodepublic String getValue()
ILiteralNodegetValue in interface ILiteralNodepublic String getValue(boolean rawValue)
ILiteralNodegetValue in interface ILiteralNoderawValue - 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).public LiteralNode getBaseTypeNode()
getBaseTypeNode in interface ILiteralContainerNodepublic ContainerNode getContentsNode()
getContentsNode in interface ILiteralContainerNodeLiteralNode.public final void appendLiteralToken(ASToken token)
<>), the
token is appended to the last literal node. Otherwise, a new
LiteralNode is added.token - XML literal token.Copyright © 2016 The Apache Software Foundation. All rights reserved.