public class MXMLRepeaterNode extends MXMLNodeBase implements IMXMLRepeaterNode
IMXMLRepeaterNode interface.MXMLNodeBase.MXMLNodeInfoemptyNodeArray, parentUNKNOWN| 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, setLocationanalyze, 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, 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, waitgetEffectiveID, getExcludeFrom, getID, getIncludeIn, getItemCreationPolicy, getItemDestructionPolicy, isEqual, resolveIDgetClassReference, getEventSpecifierNode, getEventSpecifierNodes, getPropertySpecifierNode, getPropertySpecifierNodes, getSpecifierNodesWithSuffix, isContainer, isDeferredInstantiationUIComponent, isMXMLObject, isVisualElementContainer, needsDescriptor, needsDocumentDescriptorgetClassDefinitionNode, getDocumentNode, getFileNode, isValidForCodeGencontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartpublic ASTNodeID getNodeID()
IASNodepublic 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)
MXMLNodeBaseThe 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()
IMXMLInstanceNodegetID in interface IMXMLInstanceNodenull if no compile-time
identifier was specified.public String getEffectiveID()
IMXMLInstanceNodeid is specified, then the compiler generates an identifier
if one is needed.getEffectiveID in interface IMXMLInstanceNodenull if the instance does not
have an identifier.public IVariableDefinition resolveID()
IMXMLInstanceNoderesolveID in interface IMXMLInstanceNodeIVariableDefinition object representing the variable
definition.public String[] getIncludeIn()
IMXMLInstanceNodegetIncludeIn in interface IMXMLInstanceNodepublic String[] getExcludeFrom()
IMXMLInstanceNodegetExcludeFrom in interface IMXMLInstanceNodepublic String getItemCreationPolicy()
IMXMLInstanceNodegetItemCreationPolicy in interface IMXMLInstanceNode"immediate" or "deferred".public String getItemDestructionPolicy()
IMXMLInstanceNodegetItemDestructionPolicy in interface IMXMLInstanceNode"auto" or "never".public boolean needsDescriptor()
IMXMLClassReferenceNodeUIComponentDescriptor.needsDescriptor in interface IMXMLClassReferenceNodetrue if it needs a descriptor.public boolean needsDocumentDescriptor()
IMXMLClassReferenceNodedocumentDescriptor property.needsDocumentDescriptor in interface IMXMLClassReferenceNodetrue 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)
IMXMLInstanceNodeisEqual in interface IMXMLInstanceNodetrue if node has same line number.public IASNode getChild(int i)
IASNodegetChild in interface IASNodegetChild in class MXMLNodeBasei - the child's indexpublic int getChildCount()
IASNodegetChildCount in interface IASNodegetChildCount in class MXMLNodeBasepublic IClassDefinition getClassReference(ICompilerProject project)
IMXMLClassReferenceNodegetClassReference in interface IMXMLClassReferenceNodeIClassDefinition for the ActionScript class.public boolean isMXMLObject()
IMXMLClassReferenceNodemx.core.IMXMLObject?isMXMLObject in interface IMXMLClassReferenceNodetrue if it does.public boolean isContainer()
IMXMLClassReferenceNodemx.core.IContainer?isContainer in interface IMXMLClassReferenceNodetrue if it does.public boolean isVisualElementContainer()
IMXMLClassReferenceNodemx.core.IVisualElementContainer?isVisualElementContainer in interface IMXMLClassReferenceNodetrue if it does.public boolean isDeferredInstantiationUIComponent()
IMXMLClassReferenceNodemx.core.IDeferredInstantiatonUIComponent?isDeferredInstantiationUIComponent in interface IMXMLClassReferenceNodetrue if it does.public IMXMLPropertySpecifierNode getPropertySpecifierNode(String name)
IMXMLClassReferenceNodegetPropertySpecifierNode in interface IMXMLClassReferenceNodename - The name of the property.IMXMLPropertySpecifierNode specifying that property.public IMXMLPropertySpecifierNode[] getPropertySpecifierNodes()
IMXMLClassReferenceNodegetPropertySpecifierNodes in interface IMXMLClassReferenceNodeIMXMLPropertySpecifierNode objects.public IMXMLEventSpecifierNode getEventSpecifierNode(String name)
IMXMLClassReferenceNodegetEventSpecifierNode in interface IMXMLClassReferenceNodename - The name of the event.IMXMLEventSpecifierNode specifying that event.public IMXMLEventSpecifierNode[] getEventSpecifierNodes()
IMXMLClassReferenceNodegetEventSpecifierNodes in interface IMXMLClassReferenceNodeIMXMLEventSpecifierNode objects.public IMXMLSpecifierNode[] getSpecifierNodesWithSuffix(String suffix)
IMXMLClassReferenceNodegetSpecifierNodesWithSuffix in interface IMXMLClassReferenceNodesuffix - The name of a state or state group.IMXMLSpecifierNode objects.protected MXMLNodeBase.MXMLNodeInfo createNodeInfo(MXMLTreeBuilder builder)
createNodeInfo in class MXMLNodeBaseprotected void processChildTag(MXMLTreeBuilder builder, IMXMLTagData tag, IMXMLTagData childTag, MXMLNodeBase.MXMLNodeInfo info)
MXMLNodeBaseprocessChildTag in class MXMLNodeBasetag - 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)
MXMLNodeBaseThe 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 MXMLNodeBasetext - 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.