public class MXMLClassDefinitionNode extends MXMLNodeBase implements IMXMLClassDefinitionNode, IScopedNode
MXMLClassDefinitionNode
represents an MXML tag which defines a new
class. It might be the document tag, or the tag inside a <Component>
tag, or the tag inside a <Definition> tag.MXMLNodeBase.MXMLNodeInfo
emptyNodeArray, parent
UNKNOWN
Modifier and Type | Method and Description |
---|---|
protected boolean |
buildInnerString(StringBuilder sb)
For debugging only.
|
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.
|
void |
generateID(IMXMLInstanceNode instanceNode) |
void |
getAllImportNodes(Collection<IImportNode> imports)
Returns all the imports that are relevant in the current scope.
|
void |
getAllImports(Collection<String> imports)
Returns all the imports that are relevant in the current scope.
|
List<IMXMLNode> |
getAllStateDependentNodes()
Gets the set of nodes in this class that are dependent on a state, either
through an
includeIn or excludeFrom attribute
or through a suffix. |
IASDocComment |
getASDocComment()
Gets the
IASDocComment attached to this IDocumentableDefinitionNode . |
String |
getBaseClassName()
Returns the name of this class' base class, if it exists.
|
IASNode |
getChild(int i)
Get a particular child of this node
|
int |
getChildCount()
Get the number of children
|
IClassDefinition.ClassClassification |
getClassClassification()
Returns the classification of this ActionScript class
|
IClassDefinition |
getClassDefinition()
Gets the definition of the class defined by this node.
|
IClassDefinition |
getClassReference(ICompilerProject project)
Gets the definition of the ActionScript class corresponding to this MXML
tag.
|
IMXMLDeclarationsNode[] |
getDeclarationsNodes()
Gets an array of all the child nodes that represent
|
IClassDefinition |
getDefinition()
Returns the class definition corresponding to this class node.
|
IMXMLEventSpecifierNode |
getEventSpecifierNode(String name)
Gets the child node specifying a particular event.
|
IMXMLEventSpecifierNode[] |
getEventSpecifierNodes()
Gets all the child nodes that specify events.
|
String |
getGeneratedID(IMXMLInstanceNode instanceNode)
Gets the compiler-generated id, if one is necessary, for a specified
instance tag that doesn't have a specified id.
|
boolean |
getHasDataBindings()
Determines whether this class contains data binding nodes
|
String[] |
getImplementedInterfaces()
Returns the names of any interfaces that this class declares it
implements.
|
String |
getInitialState()
Gets the name of the state to which the
currentState
property should be initialized. |
IMXMLMetadataNode[] |
getMetadataNodes()
Gets an array of all the child nodes that represent
|
IMetaInfo[] |
getMetaInfos()
Get the
IMetaInfo s for all the metadat tags of this node. |
IMetaTagsNode |
getMetaTags()
Get the metadata tags of this node.
|
IMetaTag[] |
getMetaTagsByName(String name)
Retrieve all of the meta attributes (e.g.
|
String |
getName()
Gets the name of this node.
|
int |
getNameAbsoluteEnd()
Get the absolute end offset of the name
|
int |
getNameAbsoluteStart()
Get the absolute start offset of the name
|
int |
getNameEnd()
Get the local end offset of the name
|
IExpressionNode |
getNameExpressionNode()
Gets the expression that represents the name of this
IDefinitionNode |
String |
getNamespace()
Returns the namespace that this member belongs to
|
int |
getNameStart()
Get the local start offset of the name
|
ASTNodeID |
getNodeID()
Get the opcode of this node
|
List<IMXMLNode> |
getNodesDependentOnState(String stateName)
Gets the list of nodes in this class (in tree order) that are dependent
on a specified state, either through an
includeIn or
excludeFrom attribute or through a suffix. |
IMXMLInstanceNode |
getNodeWithID(String id)
Gets the instance node with a specified id.
|
String |
getPackageName()
Get package name that applies to this node.
|
IMXMLPropertySpecifierNode |
getPropertySpecifierNode(String name)
Gets the child node specifying a particular property.
|
IMXMLPropertySpecifierNode[] |
getPropertySpecifierNodes()
Gets all the child nodes that specify properties.
|
String |
getQualifiedName()
Get the qualified name of this type
|
IASScope |
getScope()
Get the scope associated with this node as an IASScope
|
IScopedNode |
getScopedNode()
Returns the scope that is contained with this definition.
|
IMXMLScriptNode[] |
getScriptNodes()
Gets an array of all the child nodes that represent
Copyright © 2016 The Apache Software Foundation. All rights reserved. |