public abstract class BaseLiteralContainerNode extends ExpressionNodeBase implements ILiteralContainerNode
ILiteralNode.LiteralType
Modifier and Type | Field and Description |
---|---|
protected LiteralNode |
baseTypeNode |
protected ContainerNode |
contentsNode |
flags
emptyNodeArray, parent
UNKNOWN
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, 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
getLiteralType
copyForInitializer, hasParenthesis, isDynamicExpression, resolve, resolveType
contains, getAncestorOfType, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
protected LiteralNode baseTypeNode
protected ContainerNode contentsNode
public BaseLiteralContainerNode(LiteralNode baseTypeNode)
protected BaseLiteralContainerNode(BaseLiteralContainerNode other)
other
- The node to copy.public int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class NodeBase
public IASNode getChild(int i)
IASNode
protected void setChildren(boolean fillInOffsets)
NodeBase
setChildren
in class NodeBase
public boolean isTerminal()
IASNode
isTerminal
in interface IASNode
isTerminal
in class FixedChildrenNode
public String getValue()
ILiteralNode
getValue
in interface ILiteralNode
public String getValue(boolean rawValue)
ILiteralNode
getValue
in interface ILiteralNode
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).public LiteralNode getBaseTypeNode()
getBaseTypeNode
in interface ILiteralContainerNode
public ContainerNode getContentsNode()
getContentsNode
in interface ILiteralContainerNode
LiteralNode
.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.