protected static class MXMLNodeBase.MXMLNodeInfo extends Object
createNodeInfo()
. It then gets passed to the various methods
involved in initializing one node, so that state can be conveyed between
these methods, rather than having this state stored in fields of the node
which would take up space after the node is completely initialized.
It is currently used accumulate child nodes and source fragments.
Modifier and Type | Field and Description |
---|---|
boolean |
hasDualContent
A flag that keeps track of whether the tag had content that would
conflict with the
source attribute. |
boolean |
hasSourceAttribute
A flag that keeps track of whether the tag had a
source
attribute. |
protected Set<String> |
specifierSet
Set of specifiers
|
Constructor and Description |
---|
MXMLNodeBase.MXMLNodeInfo(MXMLTreeBuilder builder) |
Modifier and Type | Method and Description |
---|---|
void |
addChildNode(IMXMLNode childNode) |
void |
addSourceFragments(String sourcePath,
ISourceFragment[] sourceFragments) |
void |
clearFragments() |
List<IMXMLNode> |
getChildNodeList() |
ISourceFragment[] |
getSourceFragments() |
SourceLocation |
getSourceLocation() |
String |
getSourcePath() |
boolean |
hasSpecifierWithName(String name,
String stateName)
Check whether a specifier (attribute or child tag) with the same name and state already exist
|
public boolean hasSourceAttribute
source
attribute.public boolean hasDualContent
source
attribute. For a Script, Style,
or String tag, this is non-whitespace text content. For an XML or
Model tag, this is a child tag.public MXMLNodeBase.MXMLNodeInfo(MXMLTreeBuilder builder)
public void addChildNode(IMXMLNode childNode)
public void addSourceFragments(String sourcePath, ISourceFragment[] sourceFragments)
public void clearFragments()
public String getSourcePath()
public ISourceFragment[] getSourceFragments()
public SourceLocation getSourceLocation()
public boolean hasSpecifierWithName(String name, String stateName)
name
- name of the specifier (attribute or child tag)stateName
- name of the stateCopyright © 2016 The Apache Software Foundation. All rights reserved.