public interface IFileNode extends IScopedNode
An IFileNode is the root of the AST (abstract syntax tree)
produced for a file.
If the file includes other files, a single IFileNode
is produced.
The shape of this node is
IFileNode IASNode <-- getChild(0) IASNode <-- getChild(1) ...
UNKNOWN| Modifier and Type | Method and Description |
|---|---|
long |
getIncludeTreeLastModified()
Returns a last modification timestamp of the current include file tree
|
OffsetLookup |
getOffsetLookup() |
Collection<ICompilerProblem> |
getProblems()
Returns the problems that are contained in this file.
|
ITargetAttributes |
getTargetAttributes(ICompilerProject project)
If this
IFileNode can be used as the MXML main application or
ActionScript main class, it returns attributes related to SWF target. |
IDefinitionNode[] |
getTopLevelDefinitionNodes(boolean includeDefinitionsOutsideOfPackage,
boolean includeNonPublicDefinitions)
Gets definition nodes within this file node that are children
of the file node or children of a package block node.
|
IDefinition[] |
getTopLevelDefinitions(boolean includeDefinitionsOutsideOfPackage,
boolean includeNonPublicDefinitions)
Gets the definitions corresponding to the definitions nodes
within this file node that are children of the file node
or children of a package block node.
|
boolean |
hasIncludes() |
void |
populateFunctionNodes()
Rebuild function body nodes.
|
getAllImportNodes, getAllImports, getScopecontains, getAncestorOfType, getChild, getChildCount, getContainingNode, getContainingScope, getFileSpecification, getNodeID, getPackageName, getParent, getSpanningStart, getSucceedingNode, isTerminalgetAbsoluteEnd, getAbsoluteStart, getColumn, getEnd, getEndColumn, getEndLine, getLine, getSourcePath, getStartlong getIncludeTreeLastModified()
boolean hasIncludes()
OffsetLookup getOffsetLookup()
ITargetAttributes getTargetAttributes(ICompilerProject project)
IFileNode can be used as the MXML main application or
ActionScript main class, it returns attributes related to SWF target.
Otherwise, this method returns null.project - Context project.IDefinitionNode[] getTopLevelDefinitionNodes(boolean includeDefinitionsOutsideOfPackage, boolean includeNonPublicDefinitions)
includeDefinitionsOutsideOfPackage - A flag indicating whether
definition nodes that aren't in a package should be included.includeNonPublicDefinitions - A flag indicating whether
definition nodes that don't have a public keyword should be included.IDefinitionNode objects.IDefinition[] getTopLevelDefinitions(boolean includeDefinitionsOutsideOfPackage, boolean includeNonPublicDefinitions)
includeDefinitionsOutsideOfPackage - A flag indicating whether
definitions that aren't in a package should be included.includeNonPublicDefinitions - A flag indicating whether definitions
that don't have a public keyword should be included.IDefinition objects.Collection<ICompilerProblem> getProblems()
ICompilerProblem objectsvoid populateFunctionNodes()
Copyright © 2016 The Apache Software Foundation. All rights reserved.