public class MXMLRepeaterNode extends MXMLNodeBase implements IMXMLRepeaterNode
IMXMLRepeaterNode
interface.MXMLNodeBase.MXMLNodeInfo
emptyNodeArray, parent
UNKNOWN
Modifier and Type | Method and Description |
---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
protected static org.apache.flex.compiler.internal.tree.mxml.MXMLInstanceNode |
createInstanceNode(MXMLTreeBuilder builder,
String instanceType,
NodeBase parent) |
protected MXMLNodeBase.MXMLNodeInfo |
createNodeInfo(MXMLTreeBuilder builder) |
protected org.apache.flex.compiler.internal.tree.mxml.MXMLSpecifierNodeBase |
createSpecifierNode(MXMLTreeBuilder builder,
String specifierName)
Resolve the specifier name in the class definition to a member
definition, and create a specifier node based on the member type.
|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
IClassDefinition |
getClassReference(ICompilerProject project)
Gets the definition of the ActionScript class corresponding to this MXML
tag.
|
String |
getEffectiveID()
The compile-time identifier used by the compiler for this instance.
|
IMXMLEventSpecifierNode |
getEventSpecifierNode(String name)
Gets the child node specifying a particular event.
|
IMXMLEventSpecifierNode[] |
getEventSpecifierNodes()
Gets all the child nodes that specify events.
|
String[] |
getExcludeFrom()
The states (or state groups) from which this instance is excluded.
|
String |
getID()
The compile-time identifier specified for this instance.
|
String[] |
getIncludeIn()
The states (or state groups) in which this instance is included.
|
String |
getItemCreationPolicy()
The item creation policy for this instance.
|
String |
getItemDestructionPolicy()
The item destruction policy for this instance.
|
String |
getName()
Gets the name of this node.
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
IMXMLPropertySpecifierNode |
getPropertySpecifierNode(String name)
Gets the child node specifying a particular property.
|
IMXMLPropertySpecifierNode[] |
getPropertySpecifierNodes()
Gets all the child nodes that specify properties.
|
IMXMLSpecifierNode[] |
getSpecifierNodesWithSuffix(String suffix)
Gets all the child nodes that represent properties, styles, and events
and which have a particular suffix specifying a state or state group.
|
protected void |
initializationComplete(MXMLTreeBuilder builder,
IMXMLTagData tag,
MXMLNodeBase.MXMLNodeInfo info)
This method gives subclasses a chance to do final processing after
considering each attribute and content unit.
|
boolean |
isContainer()
Does the class referenced by this node implement
mx.core.IContainer ? |
boolean |
isDeferredInstantiationUIComponent()
Does the class referenced by this node implement
mx.core.IDeferredInstantiatonUIComponent ? |
boolean |
isEqual(IMXMLInstanceNode node)
If this node is the same.
|
boolean |
isMXMLObject()
Does the class referenced by this node implement
mx.core.IMXMLObject ? |
boolean |
isVisualElementContainer()
Does the class referenced by this node implement
mx.core.IVisualElementContainer ? |
boolean |
needsDescriptor()
Determines whether this node needs to generate a
UIComponentDescriptor . |
boolean |
needsDocumentDescriptor()
Determines whether this node needs to set its
documentDescriptor property. |
protected void |
processChildNonWhitespaceUnit(MXMLTreeBuilder builder,
IMXMLTagData tag,
IMXMLTextData text,
MXMLNodeBase.MXMLNodeInfo info)
Processes a single child text unit which is not all whitespace.
|
protected void |
processChildTag(MXMLTreeBuilder builder,
IMXMLTagData tag,
IMXMLTagData childTag,
MXMLNodeBase.MXMLNodeInfo info)
Processes a single child tag.
|
protected String |
processItemCreationPolicyAttribute(MXMLTreeBuilder builder,
IMXMLTagAttributeData attribute) |
protected String |
processItemDestructionPolicyAttribute(MXMLTreeBuilder builder,
IMXMLTagAttributeData attribute) |
protected void |
processTagSpecificAttribute(MXMLTreeBuilder builder,
IMXMLTagData tag,
IMXMLTagAttributeData attribute,
MXMLNodeBase.MXMLNodeInfo info)
Processes a single tag-specific attribute (i.e., one that isn't allowed
on every tag, unlike a namespace attribute or a private attribute).
|
IVariableDefinition |
resolveID()
Returns the variable definition that is generated by the id.
|
accumulateTextFragments, adjustOffsets, getClassDefinitionNode, getDocumentNode, getFileNode, initializeFromTag, isValidASIdentifier, isValidForCodeGen, isValidXMLTagName, processChildWhitespaceUnit, processIncludeInOrExcludeFromAttribute, processUnitAsAS, resolveSourceAttributePath, setLocation, setLocation, setLocation, setLocation, setLocation
analyze, buildStringRecursive, canContinueContainmentSearch, collectImportNodes, combineAttributes, connectedToProjectScope, contains, endAfter, endAfter, endBefore, endBefore, fillInOffsets, getAbsoluteEnd, getAbsoluteStart, getAncestorOfType, getASScope, getContainingFilePath, getContainingNode, getContainingScope, getEnd, getFileScope, getFileSpecification, getInnerString, getNodeKind, getPackageName, getParent, getScopeNode, getSpanningStart, getStart, getSucceedingNode, getWorkspace, isTerminal, isTransparent, looselyContains, normalize, replaceChild, runPostProcess, setChildren, 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
getEffectiveID, getExcludeFrom, getID, getIncludeIn, getItemCreationPolicy, getItemDestructionPolicy, isEqual, resolveID
getClassReference, getEventSpecifierNode, getEventSpecifierNodes, getPropertySpecifierNode, getPropertySpecifierNodes, getSpecifierNodesWithSuffix, isContainer, isDeferredInstantiationUIComponent, isMXMLObject, isVisualElementContainer, needsDescriptor, needsDocumentDescriptor
getClassDefinitionNode, getDocumentNode, getFileNode, isValidForCodeGen
contains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminal
getAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStart
public ASTNodeID getNodeID()
IASNode
public String getName()
IMXMLNode
For a node that refers to a class, this is the fully-qualified
ActionScript class name. (For example, for <s:Button>
it would be "spark.components.Button"
.)
For a node that specifies a property, style, or event, this is the name
of the property, style, or event. (For example, for
<s:text>
it would be "text"
.)
For a language node, this is the short name of the tag. (For example, for
<fx:Script>
it would be "Script"
.)
protected static org.apache.flex.compiler.internal.tree.mxml.MXMLInstanceNode createInstanceNode(MXMLTreeBuilder builder, String instanceType, NodeBase parent)
protected void processTagSpecificAttribute(MXMLTreeBuilder builder, IMXMLTagData tag, IMXMLTagAttributeData attribute, MXMLNodeBase.MXMLNodeInfo info)
MXMLNodeBase
The attribute might be specifying a property, event, or style; or it might be a special compile-time attribute such as 'id', 'includeIn', 'excludeFrom', 'source', etc. A property/event/style attribute will cause a child node to be added to this node; a compile-time attribute typically will simply set a property of the node.
The default behavior implemented in this base class is to report each tag-specific attribute as a problem.
Subclasses must override this method in order to allow tag-specific attributes.
attribute
- An MXMLTagAttributeData
object representing the
attribute.protected String processItemCreationPolicyAttribute(MXMLTreeBuilder builder, IMXMLTagAttributeData attribute)
protected String processItemDestructionPolicyAttribute(MXMLTreeBuilder builder, IMXMLTagAttributeData attribute)
protected void initializationComplete(MXMLTreeBuilder builder, IMXMLTagData tag, MXMLNodeBase.MXMLNodeInfo info)
MXMLNodeBase
The base class version calls adjustOffset
to translate the
node start and end offset from local to absolute offsets.
public String getID()
IMXMLInstanceNode
getID
in interface IMXMLInstanceNode
null
if no compile-time
identifier was specified.public String getEffectiveID()
IMXMLInstanceNode
id
is specified, then the compiler generates an identifier
if one is needed.getEffectiveID
in interface IMXMLInstanceNode
null
if the instance does not
have an identifier.public IVariableDefinition resolveID()
IMXMLInstanceNode
resolveID
in interface IMXMLInstanceNode
IVariableDefinition
object representing the variable
definition.public String[] getIncludeIn()
IMXMLInstanceNode
getIncludeIn
in interface IMXMLInstanceNode
public String[] getExcludeFrom()
IMXMLInstanceNode
getExcludeFrom
in interface IMXMLInstanceNode
public String getItemCreationPolicy()
IMXMLInstanceNode
getItemCreationPolicy
in interface IMXMLInstanceNode
"immediate"
or "deferred"
.public String getItemDestructionPolicy()
IMXMLInstanceNode
getItemDestructionPolicy
in interface IMXMLInstanceNode
"auto"
or "never"
.public boolean needsDescriptor()
IMXMLClassReferenceNode
UIComponentDescriptor
.needsDescriptor
in interface IMXMLClassReferenceNode
true
if it needs a descriptor.public boolean needsDocumentDescriptor()
IMXMLClassReferenceNode
documentDescriptor
property.needsDocumentDescriptor
in interface IMXMLClassReferenceNode
true
if it needs a document descriptor.protected boolean buildInnerString(StringBuilder sb)
"spark.components.Button" id="b1"
from the qualified name of
the class reference for the node and its id, if present.public boolean isEqual(IMXMLInstanceNode node)
IMXMLInstanceNode
isEqual
in interface IMXMLInstanceNode
true
if node has same line number.public IASNode getChild(int i)
IASNode
getChild
in interface IASNode
getChild
in class MXMLNodeBase
i
- the child's indexpublic int getChildCount()
IASNode
getChildCount
in interface IASNode
getChildCount
in class MXMLNodeBase
public IClassDefinition getClassReference(ICompilerProject project)
IMXMLClassReferenceNode
getClassReference
in interface IMXMLClassReferenceNode
IClassDefinition
for the ActionScript class.public boolean isMXMLObject()
IMXMLClassReferenceNode
mx.core.IMXMLObject
?isMXMLObject
in interface IMXMLClassReferenceNode
true
if it does.public boolean isContainer()
IMXMLClassReferenceNode
mx.core.IContainer
?isContainer
in interface IMXMLClassReferenceNode
true
if it does.public boolean isVisualElementContainer()
IMXMLClassReferenceNode
mx.core.IVisualElementContainer
?isVisualElementContainer
in interface IMXMLClassReferenceNode
true
if it does.public boolean isDeferredInstantiationUIComponent()
IMXMLClassReferenceNode
mx.core.IDeferredInstantiatonUIComponent
?isDeferredInstantiationUIComponent
in interface IMXMLClassReferenceNode
true
if it does.public IMXMLPropertySpecifierNode getPropertySpecifierNode(String name)
IMXMLClassReferenceNode
getPropertySpecifierNode
in interface IMXMLClassReferenceNode
name
- The name of the property.IMXMLPropertySpecifierNode
specifying that property.public IMXMLPropertySpecifierNode[] getPropertySpecifierNodes()
IMXMLClassReferenceNode
getPropertySpecifierNodes
in interface IMXMLClassReferenceNode
IMXMLPropertySpecifierNode
objects.public IMXMLEventSpecifierNode getEventSpecifierNode(String name)
IMXMLClassReferenceNode
getEventSpecifierNode
in interface IMXMLClassReferenceNode
name
- The name of the event.IMXMLEventSpecifierNode
specifying that event.public IMXMLEventSpecifierNode[] getEventSpecifierNodes()
IMXMLClassReferenceNode
getEventSpecifierNodes
in interface IMXMLClassReferenceNode
IMXMLEventSpecifierNode
objects.public IMXMLSpecifierNode[] getSpecifierNodesWithSuffix(String suffix)
IMXMLClassReferenceNode
getSpecifierNodesWithSuffix
in interface IMXMLClassReferenceNode
suffix
- The name of a state or state group.IMXMLSpecifierNode
objects.protected MXMLNodeBase.MXMLNodeInfo createNodeInfo(MXMLTreeBuilder builder)
createNodeInfo
in class MXMLNodeBase
protected void processChildTag(MXMLTreeBuilder builder, IMXMLTagData tag, IMXMLTagData childTag, MXMLNodeBase.MXMLNodeInfo info)
MXMLNodeBase
processChildTag
in class MXMLNodeBase
tag
- An MXMLTagData
object representing the child tag.
The default behavior implemented in this base class is to report each child tag as a problem.
Subclasses must override this method in order to allow the child tags that they recognize.
protected void processChildNonWhitespaceUnit(MXMLTreeBuilder builder, IMXMLTagData tag, IMXMLTextData text, MXMLNodeBase.MXMLNodeInfo info)
MXMLNodeBase
The default behavior implemented in this base class is to report each unit of non-whitespace as a problem.
Subclasses must override this method in order to allow the non-whitespace text unit.
processChildNonWhitespaceUnit
in class MXMLNodeBase
text
- An MXMLTextData
object representing the child text
unit.protected org.apache.flex.compiler.internal.tree.mxml.MXMLSpecifierNodeBase createSpecifierNode(MXMLTreeBuilder builder, String specifierName)
builder
- MXML tree builder.specifierName
- Specifier name.Copyright © 2016 The Apache Software Foundation. All rights reserved.