com.adobe.flexbuilder.codemodel.definitions
Interface IVariable

All Superinterfaces:
IDefinition
All Known Subinterfaces:
IArgument

public interface IVariable
extends IDefinition

Interface for a variable node. Implementers include real variables (VariableNode), getters and setters (GetterNode/SetterNode), and function arguments (ArgumentNode)


Nested Class Summary
static class IVariable.VariableClassification
          Variable classifications (local, argument, class member, interface member, and package member)
 
Method Summary
 IVariable.VariableClassification getVariableClassification()
          Get the classification for this variable (local, argument, class member, etc)
 java.lang.String getVariableType()
          Get the variable type as a string.
 IType resolveVariableType(ASDefinitionCache cache)
          Look up this variable in the given scope and find its definition
 
Methods inherited from interface com.adobe.flexbuilder.codemodel.definitions.IDefinition
getContainingFilePath, getContainingSourceFilePath, getMetaTags, getName, getNameEnd, getNamespace, getNameStart, getPackageName, getQualifiedName, getShortName, hasModifier, hasNamespace, isImplicit, resolveNamespace
 

Method Detail

getVariableType

public java.lang.String getVariableType()
Get the variable type as a string. This provides access to the variable type as it appears in the definition, fully qualified or not (could be "Button" or "mx.controls.Button"). If you want more control over whether the name is fully qualified, use resolveVariableType instead.

Returns:
type of variable

resolveVariableType

public IType resolveVariableType(ASDefinitionCache cache)
Look up this variable in the given scope and find its definition

Parameters:
cache - existing ASDefinitionCache which may contain definitions that can be reused (null is OK)
Returns:
definition node for the variable

getVariableClassification

public IVariable.VariableClassification getVariableClassification()
Get the classification for this variable (local, argument, class member, etc)

Returns:
variable classification