public interface IEffectDefinition extends IMetadataDefinition
[Effect(name="rollOverEffect", event="rollOver")]
.
Use the inherited IDefinition.getBaseName()
() method to get
the effect's name (e.g., "rollOverEffect"
).
Use getEvent()
() to get the name of the effect's trigger event
(e.g., "rollOver"
) as a String, and resolveEvent(org.apache.flex.compiler.projects.ICompilerProject)
()
to resolve it to an event definition.
Modifier and Type | Method and Description |
---|---|
String |
getEvent()
Gets the value of this effect's
event attribute. |
IEffectTagNode |
getNode()
Returns the
IEffectTagNode from which this definition was
created, if the definition came from the AST for a source file. |
IEventDefinition |
resolveEvent(ICompilerProject project)
Resolves the value of this effect's
event attribute
to an event definition. |
getDecoratedDefinition, getDeprecatedMessage, getDeprecatedReplacement, getDeprecatedSince
getExplicitSourceComment, hasExplicitComment
getAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getBaseName, getBindableEventNames, getColumn, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDeprecationInfo, getEnd, getLine, getMetaTagByName, getMetaTagsByName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNameStart, getPackageName, getParent, getQualifiedName, getSourcePath, getStart, getTypeAsDisplayString, getTypeReference, hasMetaTagByName, hasModifier, hasNamespace, isBindable, isBindableStyle, isContingent, isContingentNeeded, isDeprecated, isDynamic, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isStatic, resolveNamespace, resolveType
IEffectTagNode getNode()
IEffectTagNode
from which this definition was
created, if the definition came from the AST for a source file.
This method may require the AST to be reloaded or regenerated and therefore may be slow.
getNode
in interface IDefinition
String getEvent()
event
attribute.
This is the name of the event that will trigger this effect.
IEventDefinition resolveEvent(ICompilerProject project)
event
attribute
to an event definition.
This is the definition of the event that will trigger this effect.
project
- The ICompilerProject
within which references
should be resolved.IEventDefinition
for the triggering event,
or null
.Copyright © 2016 The Apache Software Foundation. All rights reserved.